Releases: snowplow/snowplow-javascript-tracker
Version 2.18.0
Version 2.18.0
Version 3.0.3
Version 3.0.2
Version 3.0.1
3.0.1 (2021-04-14)
Updates
Fix types on buildPageView in tracker-core (#947)
Fix typo in link-click-tracking plugin (#946)
Mark packages as sideEffect: false (#951)
Add peerDependencies to plugins (#950)
Under the hood
Fix GitHub Action not tagging the Rush commits (#944)
Add unit tests to plugin track* functions (#954)
Fix link to documentation in README.md (#949)
Bump lodash to 4.17.21 (#953)
Bump rush to 5.43 (#952)
Version 3.0.1-beta.1
3.0.1-beta.1 (2021-04-14)
Version 3.0.0
3.0.0 (2021-03-31)
This release introduces Version 3.0 of our JavaScript trackers which includes an updated sp.js tag based JavaScript tracker
and @snowplow/node-tracker
as well as our long awaited @snoplow/browser-tracker
, available on npm.
This means we now have a number of options when it comes to capturing behavioural data from the web. You can continue to use our tag based solution, by either embedding the tag in your website or from a tool such as Google Tag Manager. Alternatively, you can now install the tracker directly from npm and embed the tracker directly into your web app (npm install @snowplow/browser-tracker
). This is a great option for those building modern web apps in technologies such as React, Angular and Vue.
Whats new?
There is quite a lot going on in this release but the main features are:
- Available on NPM as
@snowplow/browser-tracker
. Install withnpm install @snowplow/browser-tracker
. - Now with configurable (and extendable) plugin architecture. These plugins are also published on NPM (e.g.
@snowplow/browser-plugin-ad-tracking
and@snowplow/browser-plugin-consent
). - New API, you should now pass objects rather than parameter lists (e.g.
window.snowplow('trackPageView', { title: 'My Website', contexts: [ ... ] });
) - Introducing a new smaller asset. We're publishing as traditional
sp.js
(69.64 KB - 22.14 KB gzipped) and newsp.lite.js
(37.85 KB - 13.08 KB gzipped).sp.lite.js
has no Plugins included but does include Page View, Self Describing and Structured Events as well as Activity Tracking and Anonymous Tracking.
- Build your own
sp.js
by following these instructions. - Completely rewritten in TypeScript, shipped with full type support.
Getting started
Migration Guide
If you're using the current tag based solution and you'd like to upgrade, you can take a look at the migration guide here: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-trackers/javascript-tracker/v2-to-v3-migration-guide/
Installing from npm
To get started with installing from NPM, you can follow our setup guide here: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-trackers/browser-tracker/browser-tracker-v3-reference/tracker-setup/
Documentation
You'll find more updated documentation here: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-trackers/
v3.0.0-beta.5
Version 3.0.0-beta.5
v3.0.0-beta.4
Version 3.0.0-beta.4
v3.0.0-beta.3
Version 3.0.0-beta.3
v3.0.0-beta.2
Version 3.0.0-beta.2