Skip to main content

For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/sources/web-trackers/previous-versions/browser-tracker-v3-reference/plugins/enhanced-ecommerce.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/api-reference/llms.txt.

Enhanced Ecommerce

caution
You are reading documentation for an outdated version. Here's the latest one!

Latest release version badge for the Snowplow JavaScript Tracker

Installation​

  • npm install @snowplow/browser-plugin-enhanced-ecommerce
  • yarn add @snowplow/browser-plugin-enhanced-ecommerce
  • pnpm add @snowplow/browser-plugin-enhanced-ecommerce

Initialization​

javascript
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?