Skip to main content

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โ€‹

trackEnhancedEcommerceActionDocumentation
addEnhancedEcommerceActionContextDocumentation
addEnhancedEcommerceImpressionContextDocumentation
addEnhancedEcommerceProductContextDocumentation
addEnhancedEcommercePromoContextDocumentation

Contextโ€‹

This plugin does not add any additional data to context of an event.

Was this page helpful?