v1.3.0 Automated Event Tracking (browser)
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 updatedpixel_max
andratio_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 atry/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