Performance Navigation Timing
Tracker Distribution | Included |
---|---|
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 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 jsDelivr | jsDelivr (latest) |
Available on unpkg | unpkg (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 |