Skip to content

v1.3.0 Automated Event Tracking (browser)

Compare
Choose a tag to compare
@dustinlarimer dustinlarimer released this 02 Oct 17:09
· 310 commits to master since this release

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