Optimizely X
caution
You are reading documentation for an outdated version. Hereβs the latest one!
Installationβ
npm install @snowplow/browser-plugin-optimizely-x
yarn add @snowplow/browser-plugin-optimizely-x
pnpm add @snowplow/browser-plugin-optimizely-x
Initializationβ
import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { OptimizelyXPlugin } from '@snowplow/browser-plugin-optimizely-x';
newTracker('sp1', '{{collector_url}}', {
appId: 'my-app-id',
plugins: [ OptimizelyXPlugin() ],
});
Contextβ
Adding this plugin will automatically capture the following context:
Context |
---|
iglu:com.optimizely.optimizelyx/summary/jsonschema/1-0-0 |