Skip to main content

Site Tracking

Installationโ€‹

  • npm install @snowplow/browser-plugin-site-tracking
  • yarn add @snowplow/browser-plugin-site-tracking
  • pnpm add @snowplow/browser-plugin-site-tracking

Initializationโ€‹

import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { SiteTrackingPlugin, trackSiteSearch } from '@snowplow/browser-plugin-site-tracking';

newTracker('sp1', '{{collector_url}}', {
appId: 'my-app-id',
plugins: [ SiteTrackingPlugin() ],
});

Functionsโ€‹

trackSocialInteractionDocumentation
trackSiteSearchDocumentation
trackTimingDocumentation

Contextโ€‹

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

Was this page helpful?