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/performance-timing.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.
Performance Timing
caution
You are reading documentation for an outdated version. Here's the latest one!
Installation
npm install @snowplow/browser-plugin-performance-timingyarn add @snowplow/browser-plugin-performance-timingpnpm add @snowplow/browser-plugin-performance-timing
Initialization
javascript
import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { PerformanceTimingPlugin } from '@snowplow/browser-plugin-performance-timing';
newTracker('sp1', '{{collector_url}}', {
appId: 'my-app-id',
plugins: [ PerformanceTimingPlugin() ],
});
Context
Adding this plugin will automatically capture the following context:
| Context |
|---|
| iglu:org.w3/PerformanceTiming/jsonschema/1-0-0 |