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
*[#1848](https://github.com/mozilla/glean.js/pull/1848): Support for automatically collecting element click events (first version)
6
10
*[#1849](https://github.com/mozilla/glean.js/pull/1849): Truncate event extra strings to 500 bytes. This also updates other string-based metrics to truncate based on max bytes rather than a set number of characters.
-`inactive`: The ping was submitted when becoming inactive. In earlier versions, this
83
+
was called `background`.
84
+
85
+
NOTE: It is not possible to find a definition of "inactivity" that spans
86
+
all of the platforms served by the Glean JavaScript SDK.
87
+
This reason is only listed here for documentation purposes.
88
+
It is never reported by the JavaScript SDK.
89
+
90
+
-`max_capacity`: The maximum number of events was reached (default 1 event).
91
+
92
+
-`startup`: The ping was submitted at startup.
93
+
The events ping is always sent if there are any pending events at startup,
94
+
because event timestamps are not as reliable across application runs.
95
+
96
+
97
+
All Glean pings contain built-in metrics in the [`ping_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-ping_info-section) and [`client_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-client_info-section) sections.
98
+
99
+
In addition to those built-in metrics, the following metrics are added to the ping:
100
+
101
+
| Name | Type | Description | Data reviews | Extras | Expiration |[Data Sensitivity](https://wiki.mozilla.org/Firefox/Data_Collection)|
102
+
| --- | --- | --- | --- | --- | --- | --- |
103
+
| glean.element_click |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A event triggered whenever an html element is clicked on a page. **Clicks are recorded only for those html elements that have at least one of the `data-glean-*` data attributes. By default, this event is not collected automatically. Collection can be turned on by clients via Glean configuration object (`enableAutoElementClickEvents`). Glean also provides a separate API for clients to record element clicks manually.** |[Bug 1867294](https://bugzilla.mozilla.org/show_bug.cgi?id=1867294#c29)|<ul><li>id: An identifier of the element clicked. For automatic collection, its value is the element's `data-glean-id` data attribute value.</li><li>label: The label of the element clicked. For automatic collection, its value is the element's `data-glean-label` data attribute value.</li><li>type: The type of the element clicked. For automatic collection, its value is the element's `data-glean-type` data attribute value.</li></ul>|never |2 |
104
+
| glean.page_load |[event](https://mozilla.github.io/glean/book/user/metrics/event.html)|A event triggered whenever a page is loaded. **This event by default is not collected automatically. This can be turned on by the client in the Glean configuration object (`enableAutoPageLoadEvents`). Glean provides a separate API for collecting the same page load data if the client wants to collect page loads manually.**|[Bug 1867126](https://bugzilla.mozilla.org/show_bug.cgi?id=1867126#c8)|<ul><li>referrer: The page referrer.</li><li>title: The page title.</li><li>url: The page URL.</li></ul>|never |2 |
105
+
63
106
Data categories are [defined here](https://wiki.mozilla.org/Firefox/Data_Collection).
64
107
65
108
<!-- AUTOGENERATED BY glean_parser v10.0.3. DO NOT EDIT. -->
0 commit comments