Site Tracking
caution
You are reading documentation for an outdated version. Hereβs the latest one!
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β
trackSocialInteraction | Documentation |
trackSiteSearch | Documentation |
trackTiming | Documentation |
Contextβ
This plugin does not add any additional data to context of an event.