
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@coveops/add-meta-analytics
Advanced tools
Add additional Analytics metadata based upon metadata from the current result
Add additional Analytics metadata based upon metadata from the current result. For example: you want to sent the Author or Accountname to a custom analytics event for use in a ML model.
** Make sure that all the analyticsFields defined are created as Dimensions in your Coveo Cloud Organization. **
There are two components:
To define the metadata and fields which you want to sent.
This component will gather all the AddMetaAnalytics definitions and will send them to the Analytics.
** So without CoveoSendMetaAnalytics nothing will happen!!! **
Disclaimer: This component was built by the community at large and is not an official Coveo JSUI Component. Use this component at your own risk.
npm i @coveops/add-meta-analytics
Typescript:
import { AddMetaAnalytics, IAddMetaAnalyticsOptions } from '@coveops/add-meta-analytics';
import { SendMetaAnalytics, ISendMetaAnalyticsOptions } from '@coveops/add-meta-analytics';
Javascript
const add-meta-analytics = require('@coveops/add-meta-analytics').AddMetaAnalytics;
const send-meta-analytics = require('@coveops/add-meta-analytics').SendMetaAnalytics;
export * from '@coveops/add-meta-analytics'
Place the component after your CoveoSearchInterface
<div
class="CoveoAddMetaAnalytics"
data-result-field="jifieldsprojectname"
data-result-field-uri=""
data-analytics-field="c_wpprojectname"
></div>
<div
class="CoveoAddMetaAnalytics"
data-result-field="displayname"
data-check-field="worktitle"
data-use-parent="false"
data-analytics-field="c_wpauthordisplay"
></div>
<div class="CoveoSendMetaAnalytics"></div>
The following options can be configured:
| Option | Required | Type | Default | Notes |
|---|---|---|---|---|
checkField | No | string | | This field must exists on the result, if it does not, nothing will be send. Use this when you want to sent a resultField with a condition. |
resultField | Yes | string | | Which field to use from the result, if the field is empty it will not be send |
resultFieldUri | No | string | | Which field to use from the result for a possible URI. If this one is present the analyticsfield will get Uri added. (Like c_wpauthordisplayUri) |
useParent | No | boolean | false | Whether to use the parents to find the folder. |
analyticsField | Yes | string | | Dimension to use to store the value. Must exists!!! |
The following options can be configured:
| Option | Required | Type | Default | Notes |
|---|---|---|---|---|
name | No | string | Workplace | Name to use for the Custom Event |
.env.dist to .env and update the COVEO_ORG_ID and COVEO_TOKEN fields in the .env file to use your Coveo credentials and SERVER_PORT to configure the port of the sandbox - it will use 8080 by default.npm run buildnpm run serveFAQs
Add additional Analytics metadata based upon metadata from the current result
The npm package @coveops/add-meta-analytics receives a total of 6 weekly downloads. As such, @coveops/add-meta-analytics popularity was classified as not popular.
We found that @coveops/add-meta-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies