Skip to content

Snowplow JavaScript Tracker v2.0.0

Compare
Choose a tag to compare
@alexanderdean alexanderdean released this 03 Jul 12:22
· 1039 commits to master since this release

A major upgrade, with an all-new API, new functionality and new Iglu-based functionality.

API updates

  • Added new tag which allows queue to be renamed (#130)
  • Moved to argmap-style tracker creation with 'newTracker' (#132)
  • Passed tracker namespace through to collector in Tracker Protocol (#126)
  • Added pageUnloadTimer option to argmap (#171)

New functionality

  • Added support for namespacing (#4)
  • Added initial localStorage support for intermittent offline beacons, thanks @rcs! (#24)
  • Added new trackAdImpression, mapping to unstructured event (#13)
  • Added ad conversion tracking (#60)
  • Added ad click tracking (#59)
  • Implemented enableLinkTracking support (#51)
  • Started rigorously checking whether a page is cached by Yahoo (#142)
  • Added support for cookie namespacing (#131)

Iglu-related changes

  • Removed type hints from unstructured events and custom contexts (#163)
  • Added hardcoded schema to custom context arrays (#199)
  • Added hardcoded schema to unstructured events (#196)
  • Changed trackUnstructEvent to take a JSON containing schema and data fields (#197)

Internal changes

  • Moved fixUpUrl into its own file, called lib/proxies.js (#112)
  • Fixed duplication of querystring parameter lookup (#111)
  • Replaced cookie.js with browser-cookie-lite (#88)
  • Removed references to referral cookie (#118)
  • Added untracked files which should be ignored to .gitignore (#173)
  • Replaced hard-coded version with template value (#120)

Testing and building

  • Added tests for helpers.js (#96)
  • Added tests for detectors.js (#95)
  • Added Sauce Labs small button at top of README (#123)
  • Added Sauce full test summary widget (long bar) at bottom of README (#124)
  • Upgraded Intern to 1.5.0 (#119)
  • Fixed link to code climate button in README.md (#149)
  • Made JS invocation tag part of the build process (#158)
  • Fixed warnings generated by the Closure Compiler, thanks @steve-gh! (#170)

Documentation and examples

  • Added examples of tracker namespacing (#159)
  • Split async.html into async-small.html, async-medium.html (#160)
  • Removed ads/sync.html (#182)
  • Updated ads/async.html (#183)
  • Linked the Technical Docs and Setup Guide images to the appropriate pages (#164)