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
AdsEventsManualβœ…βŒbrowser-plugin-ad-tracking
Button clickEventsAutomatic❌❌browser-plugin-button-click-tracking
Client HintsEntitiesAutomaticβœ…βŒbrowser-plugin-client-hints
Consent (Enhanced)Events and entitiesManual❌❌browser-plugin-enhanced-consent
Consent (original)Events and entitiesManual and automaticβœ…βŒbrowser-plugin-consent
DebuggerOthern/a❌❌browser-plugin-debugger
Ecommerce (Snowplow)Events and entitiesManual❌❌browser-plugin-snowplow-ecommerce
Ecommerce (Enhanced)EventsManualβœ…βŒbrowser-plugin-enhanced-ecommerce
Ecommerce (original)EventsManualβœ…βŒbrowser-plugin-ecommerce
ErrorsEventsManual and automaticβœ…βŒbrowser-plugin-error-tracking
Event SpecificationsEntitiesAutomatic❌❌browser-plugin-event-specifications
FormsEventsAutomaticβœ…βŒbrowser-plugin-form-tracking
GA cookiesEntitiesAutomaticβœ…βŒbrowser-plugin-ga-cookies
GeolocationEntitiesAutomaticβœ…βŒbrowser-plugin-geolocation
Kantar Focal MeterOthern/a❌❌browser-plugin-focalmeter@focalmeter_plugin
Link clickEventsAutomaticβœ…βŒbrowser-plugin-link-click-tracking
Media (Snowplow)Events and entitiesManual❌❌browser-plugin-media
Media (HTML)Events and entitiesAutomatic❌❌browser-plugin-media-tracking
Media (Vimeo)Events and entitiesAutomatic❌❌browser-plugin-vimeo-tracking
Media (Youtube)Events and entitiesAutomatic❌❌browser-plugin-youtube-tracking
Optimizely XEntitiesAutomaticβœ…βŒbrowser-plugin-optimizely-x
Performance navigation timingEntitiesAutomatic❌❌browser-plugin-performance-navigation-timing
Performance timing (original)EntitiesAutomaticβœ…βŒbrowser-plugin-performance-timing
Privacy SandboxEntitiesAutomatic❌❌browser-plugin-privacy-sandbox
Site*EventsManualβœ…βŒbrowser-plugin-site-tracking
TimezoneOtherAutomatic❌❌browser-plugin-timezone
Web vitalsEventsAutomatic❌❌browser-plugin-web-vitals
Browser features deprecatedEventsAutomatic❌❌browser-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.