Skip to content

Releases: keen/keen-tracking.js

v5.0.0

04 Nov 07:04
Compare
Choose a tag to compare
  • Added functionality that allows to abort request on server (NodeJS environment) and client side (browser).
  • Updated documentation

v4.5.1

01 Dec 10:11
Compare
Choose a tag to compare
  • absolute path for sourcemaps - #195

v4.4.1

02 Jul 06:40
Compare
Choose a tag to compare

Fixes:

  • Script throws an exception if localStorage is disabled #177

v4.4.0

03 Apr 07:05
Compare
Choose a tag to compare

New features:

AutoCollector:

  • Ability to add pointer position for tracking click events

This could be set up in configuration object:

recordClicksPositionPointer: false, // record pointer position for clicks

Example of data added to event for auto tracking clicks:

{

  "pointer": {
      "x_position": 8,
      "y_position": 830,
    }

}

v4.3.0

11 Mar 11:08
Compare
Choose a tag to compare

New feature:

Tracking Opt-Out

It's easy to build tracking opt-out functionality. If opt-out is set to true no data is recorded.

You can set up opt-out by defining client instance

const client = new KeenTracking({
  projectId: 'PROJECT_ID',
  writeKey: 'WRITE_KEY',
  optOut: true
});

or by invoking client.setOptOut(true) method

client.setOptOut(true);

Navigator.DoNotTrack support

The user can block tracking in the browser by doNotTrack setting. We can respect or overwrite this setting by defining client instance.

const client = new KeenTracking({
  projectId: 'PROJECT_ID',
  writeKey: 'WRITE_KEY',
  respectDoNotTrack: true // it's false by default
});

Read more:
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack
https://en.wikipedia.org/wiki/Do_Not_Track

v4.2.0

20 Feb 10:22
Compare
Choose a tag to compare

New features:

AutoCollector:

  • Ability to track views of the HTML elements

All HTML elements with a class .track-element-view will be observed by the browser. If any of them appears on the screen, an event will be recorded. The event will contain specific attributes from the visible element and nest them in the element property.
Note: This feature works only on the browsers that support Intersection Observer.

{

  "element": {
      "title": "Track element view",
      "text": null,
      "class": "track-element-view",
      "event_key": null,
      "node_name": "DIV",
      "href": null,
      "x_position": 8,
      "y_position": 830,
      "selector": "body > div:eq(1)",
      "id": null
    }

}

v4.0.17

07 Jan 10:10
Compare
Choose a tag to compare

Build tool update:

  • Webpack-dev-server security update to 3.1.14

v4.0.16

07 Jan 10:09
Compare
Choose a tag to compare

Fix:
#143 react-native build without indexeddb (fixed by @iroth in #158)

v4.0.1

13 Aug 21:05
Compare
Choose a tag to compare
4.0.1

v4.0.0

10 Dec 09:48
Compare
Choose a tag to compare

New features:

Deprecated and removed methods:

  • request types: jsonp, xhr
  • addEvent
  • addEvents
  • setGlobalProperties

We reduced the size of the gzipped js file to 18.3 KB (5% reduction).