Skip to main content

Event Specifications integration

The plugin allows you to integrate with Event Specifications for a selected set of plugins. The configuration for the plugin should be retrieved directly from your Data Product in the Snowplow BDP Console.

The plugin will automatically add an Event Specification context to the events matching the configuration added.

note

The plugin is available since version 3.23 of the tracker.

Install pluginโ€‹

  • npm install @snowplow/browser-plugin-event-specifications
  • yarn add @snowplow/browser-plugin-event-specifications
  • pnpm add @snowplow/browser-plugin-event-specifications
import { newTracker } from '@snowplow/browser-tracker';
import { WebVitalsPlugin } from '@snowplow/browser-plugin-event-specifications';

newTracker('sp1', '{{collector_url}}', {
appId: 'my-app-id',
plugins: [ EventSpecificationsPlugin(/* plugin configuration */) ],
});

Configurationโ€‹

The configuration of the plugin would be in the form of:

EventSpecificationsPlugin({
[Plugin integration name]: {
/* Key value pairs of event names and event specification ids */
},
/* More integrations */
});

You can retrieve the configuration for your Event Specifications directly from your Data Product after clicking on the Implement tracking button.

implement tracking button

Was this page helpful?