For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/sources/web-trackers/previous-versions/browser-tracker-v3-reference/plugins/timezone.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/api-reference/llms.txt.
Timezone
caution
You are reading documentation for an outdated version. Here's the latest one!
Installation
npm install @snowplow/browser-plugin-timezoneyarn add @snowplow/browser-plugin-timezonepnpm add @snowplow/browser-plugin-timezone
Initialization
javascript
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.