Enhanced Ecommerce
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.