Skip to main content

Plugins

caution
You are reading documentation for an outdated version. Here’s the latest one!

The Javascript Tracker is based around a plugin architecture which allows new functionality to be added to the tracker. There are a number of Snowplow maintained plugins, however you are also free to build your own or leverage community plugins too.

All plugins

The following table lists the Snowplow plugins (alphabetical order), what kinds of data are created using them, and their distribution for the JavaScript (sp.js file or minimal version) and Browser (npm etc. package) trackers. Read more about configuring plugins here or on the individual pages.

If you are using the JavaScript tracker with the full sp.js and your plugin is included, no further installation or initialization is required. You can use it straight away.

PluginCreatesTrackedsp.jssp.lite.jsPackage name
AdsEventsManualbrowser-plugin-ad-tracking
Button clickEventsAutomaticbrowser-plugin-button-click-tracking
Client HintsEntitiesAutomaticbrowser-plugin-client-hints
Consent (Enhanced)Events and entitiesManualbrowser-plugin-enhanced-consent
Consent (original)Events and entitiesManual and automaticbrowser-plugin-consent
DebuggerOthern/abrowser-plugin-debugger
Ecommerce (Snowplow)Events and entitiesManualbrowser-plugin-snowplow-ecommerce
Ecommerce (Enhanced)EventsManualbrowser-plugin-enhanced-ecommerce
Ecommerce (original)EventsManualbrowser-plugin-ecommerce
ErrorsEventsManual and automaticbrowser-plugin-error-tracking
Event SpecificationsEntitiesAutomaticbrowser-plugin-event-specifications
FormsEventsAutomaticbrowser-plugin-form-tracking
GA cookiesEntitiesAutomaticbrowser-plugin-ga-cookies
GeolocationEntitiesAutomaticbrowser-plugin-geolocation
Kantar Focal MeterOthern/abrowser-plugin-focalmeter@focalmeter_plugin
Link clickEventsAutomaticbrowser-plugin-link-click-tracking
Media (Snowplow)Events and entitiesManualbrowser-plugin-media
Media (HTML)Events and entitiesAutomaticbrowser-plugin-media-tracking
Media (Vimeo)Events and entitiesAutomaticbrowser-plugin-vimeo-tracking
Media (Youtube)Events and entitiesAutomaticbrowser-plugin-youtube-tracking
Optimizely XEntitiesAutomaticbrowser-plugin-optimizely-x
Performance navigation timingEntitiesAutomaticbrowser-plugin-performance-navigation-timing
Performance timing (original)EntitiesAutomaticbrowser-plugin-performance-timing
Privacy SandboxEntitiesAutomaticbrowser-plugin-privacy-sandbox
Site*EventsManualbrowser-plugin-site-tracking
TimezoneOtherAutomaticbrowser-plugin-timezone
Web vitalsEventsAutomaticbrowser-plugin-web-vitals
Browser features deprecatedEventsAutomaticbrowser-plugin-browser-features

*The site tracking plugin provides events for site search, social media interactions, and timing.

You can find the plugins code here and also search for them on npmjs.com.

Browser features plugin (deprecated)

caution

Deprecated: This plugin is deprecated. The navigator.mimeTypes API which this tracker uses is now deprecated and modern browsers may no longer populate these values.

Install plugin

Tracker DistributionIncluded
sp.js
sp.lite.js

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.

window.snowplow('addPlugin',
"https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-browser-features@3/dist/index.umd.min.js",
["snowplowBrowserFeatures", "BrowserFeaturesPlugin"]
);

Tracked data

This plugin will add MIME Type tracking. This allows the tracker to populate the f_* fields within the canonical event model.