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.