You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,23 @@
6
6
**BREAKING:**
7
7
**CHANGE:**
8
8
-->
9
+
10
+
<aname="1.3.0"></a>
11
+
# 1.3.0 Automated Event Tracking (browser-only)
12
+
13
+
**NEW:**
14
+
* 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)
15
+
* 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
16
+
* New helper: `Keen.helper.getDomNodeProfile(<ELEMENT>)`: Return an object containing properties profiling a given DOM node
17
+
* 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
18
+
19
+
**FIXED:**
20
+
* Wrap `JSON.parse()` in a `try/catch` block to mitigate error impact when the API returns un-parsable contents (#88)
21
+
22
+
**UPDATED:**
23
+
* Description meta tag content is now part of the `Keen.helpers.getBrowserProfile()` output when present
[Read about more installation options here](./docs/installation.md)
19
18
20
-
21
19
### Project ID & API Keys
22
20
23
21
[Login to Keen IO to create a project](https://keen.io/login?s=gh_js) and grab the **Project ID** and **Write Key** from your project's **Access** page.
24
22
25
-
26
23
## Getting started
27
24
28
-
The following examples demonstrate how to implement rock-solid web analytics, capturing **pageviews**, **clicks**, and **form submissions**. Not interested in web analytics? Use these examples as a primer for getting up and running quickly. These examples also make use of several [helpers](./docs/#helpers) and [utilities](./docs/#utilities) that were designed to address common requirements and help produce insightful, valuable data models.
25
+
The following examples demonstrate how to implement rock-solid web analytics, capturing **pageviews**, **clicks**, and **form submissions** with robust data models.
26
+
27
+
Not interested in web analytics? Use these examples as a primer for getting up and running quickly. These examples also make use of several [helpers](./docs/#helpers) and [utilities](./docs/#utilities) that were designed to address common requirements and help produce insightful, valuable data models.
29
28
30
29
[Full documentation is available here](./docs/README.md)
31
30
@@ -42,8 +41,28 @@ If any of this is confusing, that's our fault and we would love to help. Join ou
42
41
43
42
---
44
43
44
+
### Automated Event Tracking (browser-only)
45
45
46
-
### Setup and Pageview Tracking
46
+
Automatically record `pageviews`, `clicks`, and `form_submissions` events with robust data models:
[Learn how to configure and customize this functionality here](./docs/auto-tracking.md)
62
+
63
+
---
64
+
65
+
### Pageview Tracking
47
66
48
67
First, let's create a new `client` instance with your Project ID and Write Key, and use the `.extendEvents()` method to define a solid baseline data model that will be applied to every single event that is recorded. Consistent data models and property names make life much easier later on, when analyzing and managing several event streams. This setup also includes our [data enrichment add-ons](https://keen.io/docs/streams/data-enrichment-overview/), which will populate additional information when an event is received on our end.
Every event that is recorded will inherit this baseline data model. Additional properties defined in `client.recordEvent()` will be applied before the event is finally recorded.
130
149
150
+
Want to get up and running faster? This can also be achieved in the browser with [automated event tracking](./docs/auto-tracking.md).
0 commit comments