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?