Add analytics to your websites and web apps with the Snowplow event tracker for JavaScript.
With this tracker you can collect user event data (page views, e-commerce transactions etc) from the client-side tier of your websites and web apps.
Technical Docs | Setup Guide | Contributing |
---|---|---|
Technical Docs | Setup Guide | Contributing |
Assuming git and Docker installed:
host$ git clone https://github.com/snowplow/snowplow-javascript-tracker.git
host$ cd snowplow-javascript-tracker/core
host$ docker build -t core .
host$ docker run -v "$(pwd)":"/code" core npm run build
From the /core
folder, build the core library using npm run build
and run unit tests with npm run test
.
host$ cd snowplow-javascript-tracker
host$ docker build -t tracker .
host$ docker run -v "$(pwd)":"/code" tracker npm run build
Build the tracker using npm run build
and run unit tests with npm run test:unit
.
The Snowplow JavaScript Tracker is based on Anthon Pang's piwik.js
, the JavaScript
tracker for the open-source Piwik project, and is distributed under the same license
(Simplified BSD).
Significant portions of the Snowplow JavaScript Tracker copyright 2010 Anthon Pang. Remainder copyright 2012-2020 Snowplow Analytics Ltd.
Licensed under the Simplified BSD license.