Skip to content

Releases: keen/keen-tracking.js

v1.3.0 Automated Event Tracking (browser)

02 Oct 17:09
Compare
Choose a tag to compare

NEW:

  • Ported functionality from the Web Auto Collector into this SDK: The interface and behaviors of this feature are a little different, but the data models produced are backward compatible (#83)
  • New helper: Keen.helpers.getScrollState(): Return an object of properties profiling the current scroll state, and optionally pass this object back into the helper again to receive a new object with updated pixel_max and ratio_max values
  • New helper: Keen.helper.getDomNodeProfile(<ELEMENT>): Return an object containing properties profiling a given DOM node
  • New utility: Keen.utils.serializeForm(<FORM>, OPTIONS): Serialize the data of a form, with the option to ignore certain input types by passing in a { ignoreTypes: ['password'] } option

FIXED:

  • Wrap JSON.parse() in a try/catch block to mitigate error impact when the API returns un-parsable contents (#88)

UPDATED:

  • Description meta tag content is now part of the Keen.helpers.getBrowserProfile() output when present

v1.2.1 Fix queue polling

18 Sep 21:39
Compare
Choose a tag to compare
  • Fixed a queue polling issue (#84) to prevent queue from polling until events are added to the queue, allowing scripts to close properly when queues are not used
  • Clear polling loop prior to replacing queue with a new one

Global Namespace Fix

22 Dec 10:48
Compare
Choose a tag to compare

FIXED:

  • This library will now coalesce into a shared global Keen namespace, rather than colliding and overwriting other modular SDKs. Check out [email protected] for details about this fix.

v1.0.1

28 Mar 18:16
Compare
Choose a tag to compare

FIXED:

  • Event properties with undefined values no longer throw an error when used with Keen.utils.extend.

v1.0.0

25 Mar 19:38
Compare
Choose a tag to compare

NEW:

  • Move core client functionality to keen-core.js (PR #40).

BREAKING:

  • Replaced cookies-js with js-cookie. Cookies are now encoded properly, but will require a workaround (covered here) to fix previous cookie data.
  • Removed JSON3 dependency, no longer patching the working environment (#38).
  • Removed client.writePath() method and writePath config option in favor of internal resource mapping and the client.resources() method.

v0.0.5: Bug fixes

25 Aug 20:35
Compare
Choose a tag to compare

FIXED:

  • Define noop func when no callback is provided (fixes #34)

v0.0.4: Bug fixes and dependency upgrade

25 Aug 19:10
Compare
Choose a tag to compare

FIXED:

  • Fix reference to proper lib file for server usage (#32)

NEW:

  • Upgrade internal JSON dep to JSON3 (#33)

v0.0.3: Improved cookie handling

23 Jul 21:15
Compare
Choose a tag to compare

FIXED:

  • Each Keen.utils.cookie instance now returns null for single undefined properties (#30)

NEW:

  • Each Keen.utils.cookie instance now has an .enabled() method that returns true or false

v0.0.2: Improved request handling

21 Jul 19:00
Compare
Choose a tag to compare

NEW:

  • Synchronous XHR option (#28, ported from keen-js)

FIXED:

  • .noConflict() method was busted, now it's not (untracked bug)

BREAKING:

  • .recordEvent XHR calls now use POST, mirroring previous keen-js functionality (#27).
  • client.url(): The previous keen-js implementation of client.url() automatically included https://api.keen.io/3.0/projects/PROJECT_ID + a path argument ('/events/whatever'), which severely limited its value. It now only returns https://api.keen.io + the path argument.

v0.0.1: Hello, world!

17 Jul 03:43
Compare
Choose a tag to compare

First full-feature release!

This is an open source project and we love involvement from the community! Hit us up with pull requests and issues. The more contributions the better!

CDN:

https://github.com/keen/keen-tracking.js#install-the-library