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?