Skip to content

New on_track hook and various fixes

Choose a tag to compare

@jakewski jakewski released this 06 Oct 14:50
· 22 commits to master since this release
Immutable release. Only release title and notes can be modified.
  • Adds an on_track hook that is called for every tracked event with its merged properties. It can modify the event or return null to drop it.
  • Fixes people.set mutating the object passed to it when the object contains Date values (thanks @sarmah-rup!).
  • Fixes $browser_version being null on Android Mobile browsers (thanks @sarmah-rup!).
  • Fixes opt-out tracking not being honored when localStorage is unavailable and the opt-out flag was stored in a cookie.
  • Fixes session recording dropping a batch when gzip compression fails. It now sends the batch uncompressed (thanks @pkuczynski!).
  • Reports an error when clearing the persisted request queue fails, instead of leaving the promise rejected (thanks @pkuczynski!).
  • Moves the API reference docs to TypeDoc.