Closed Bug 1884644 Opened 1 year ago Closed 1 year ago

Use Glean's automatic click events in Debug Ping Viewer

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

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.

Assignee: nobody → aaggarwal
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Depends on: 1885504
No longer depends on: 1885504
You need to log in before you can comment on or make changes to this bug.