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.