Skip to main content

Performance Navigation Timing

Tracker DistributionIncluded
sp.jsโŒ
sp.lite.jsโŒ

Adds Performance Navigation Timing contexts to your Snowplow tracking. To learn more about the properties tracked, you can visit the specification or MDN documentation site.

The following diagram shows the ResourceTiming and PerformanceNavigationTiming properties and how they connect to the navigation of the page main document.

performance navigation timeline

Performance navigation timeline from the W3C specification.

note

The plugin is available since version 3.10 of the tracker.

Downloadโ€‹

Download from GitHub Releases (Recommended)Github Releases (plugins.umd.zip)
Available on jsDelivrjsDelivr (latest)
Available on unpkgunpkg (latest)

Note: The links to the CDNs above point to the current latest version. You should pin to a specific version when integrating this plugin on your website if you are using a third party CDN in production.

Initializationโ€‹

window.snowplow('addPlugin', 
"https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-performance-navigation-timing@latest/dist/index.umd.min.js",
["snowplowPerformanceNavigationTiming", "PerformanceNavigationTimingPlugin"]
);

Contextโ€‹

Adding this plugin will automatically capture the following context:

Context
iglu:org.w3/PerformanceNavigationTiming/jsonschema/1-0-0
Was this page helpful?