Skip to main content

Timezone

Installationโ€‹

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

Initializationโ€‹

import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { TimezonePlugin } from '@snowplow/browser-plugin-timezone';

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

Propertiesโ€‹

This plugin will add Timezone tracking. This allows the tracker to populate the `os_timezone` field within the canonical event model.

Was this page helpful?