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?