Skip to main content

Timezone

caution
You are reading documentation for an outdated version. Here’s the latest one!

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.