Releases: keen/keen-tracking.js
Releases · keen/keen-tracking.js
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
v1.2.1 Fix queue polling
- 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
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
FIXED:
- Event properties with
undefined
values no longer throw an error when used withKeen.utils.extend
.
v1.0.0
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 andwritePath
config option in favor of internal resource mapping and theclient.resources()
method.
v0.0.5: Bug fixes
FIXED:
- Define noop func when no callback is provided (fixes #34)
v0.0.4: Bug fixes and dependency upgrade
v0.0.3: Improved cookie handling
FIXED:
- Each
Keen.utils.cookie
instance now returnsnull
for single undefined properties (#30)
NEW:
- Each
Keen.utils.cookie
instance now has an.enabled()
method that returnstrue
orfalse
v0.0.2: Improved request handling
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 ofclient.url()
automatically includedhttps://api.keen.io/3.0/projects/PROJECT_ID
+ apath
argument ('/events/whatever'), which severely limited its value. It now only returnshttps://api.keen.io
+ the path argument.
v0.0.1: Hello, world!
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://d26b395fwzu5fz.cloudfront.net/keen-tracking-0.0.1.min.js
- https://d26b395fwzu5fz.cloudfront.net/keen-tracking-0.0.1.js
https://github.com/keen/keen-tracking.js#install-the-library