Enhanced Ecommerce
caution
You are reading documentation for an outdated version. Hereβs the latest one!
Installationβ
npm install @snowplow/browser-plugin-enhanced-ecommerce
yarn add @snowplow/browser-plugin-enhanced-ecommerce
pnpm add @snowplow/browser-plugin-enhanced-ecommerce
Initializationβ
import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { EnhancedEcommercePlugin, trackEnhancedEcommerceAction } from '@snowplow/browser-plugin-enhanced-ecommerce';
newTracker('sp1', '{{collector_url}}', {
appId: 'my-app-id',
plugins: [ EnhancedEcommercePlugin() ],
});
Functionsβ
trackEnhancedEcommerceAction | Documentation |
addEnhancedEcommerceActionContext | Documentation |
addEnhancedEcommerceImpressionContext | Documentation |
addEnhancedEcommerceProductContext | Documentation |
addEnhancedEcommercePromoContext | Documentation |
Contextβ
This plugin does not add any additional data to context of an event.