Use Glean's automatic click events in Debug Ping Viewer
Categories
(Data Platform and Tools :: Glean: SDK, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: aaggarwal, Assigned: aaggarwal)
References
Details
Record element click via Glean's builtin automatic element click events (introduced in https://github.com/mozilla/glean.js/pull/1848)
Focus is to instrument Glean's automatic element click events i.e. via data-glean-* attributes instead of manually calling the click event recording API (i.e. GleanMetrics.recordElementClick()).
This decision was made as a result of my discussion with :brosa on matrix where he suggested:
I imagine most people already are comfortable using an event API, so if we instrument the DPV and the dictionary with the data-label's, we can use those as examples for a different way to collect the same info. Users may end up preferring data-label's, kinda like how MDN collects stuff, so having examples for them to see it working in the wild would be good.
https://github.com/mozilla/debug-ping-view/pull/154 and https://github.com/mozilla/debug-ping-view/pull/157 fixed this. Marking it as resolved.
Description
•