Performance Timing
caution
You are reading documentation for an outdated version. Hereβs the latest one!
Installationβ
npm install @snowplow/browser-plugin-performance-timing
yarn add @snowplow/browser-plugin-performance-timing
pnpm add @snowplow/browser-plugin-performance-timing
Initializationβ
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 |