Collecting data with Trackers and Webhooks

  1. Home
  2. Docs
  3. Collecting data with Trackers and Webhooks
  4. Trackers – collecting data from your own applications
  5. JavaScript Trackers (Web and Node.js)
  6. JavaScript Tracker
  7. Snowplow Plugin for

Snowplow Plugin for

The Snowplow JavaScript Tracker can now be deployed directly into your web and node applications using the analytics and @analytics/snowplow NPM packages.


Snowplow recommends using the official @snowplow/browser-tracker or @snowplow/node-tracker instead of this package as you will receive updates faster and install a smaller dependency into your application, unless you wish to send your events to multiple providers which is where the @analytics packages are particularly useful.

Quick Start

npm install analytics npm install @analytics/snowplow
Code language: CSS (css)

Initialise the plugin:

import Analytics from 'analytics' import snowplowPlugin from '@analytics/snowplow' const analytics = Analytics({ app: 'awesome-app', plugins: [ // Minimal recommended configuration snowplowPlugin({ name: 'snowplow', collectorUrl: '', trackerSettings: { appId: 'myApp', contexts: { webPage: true } } }) ] })
Code language: JavaScript (javascript)

Then track a page view event:
Code language: CSS (css)

Full documentation

Snowplow Plugin documentation (

Analytics package documentation (

If you’d like to learn more about Snowplow BDP you can book a demo with our team, or if you’d prefer, you can try Snowplow technology for yourself quickly and easily.