Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(telemetry): measure TOC clicks #9919

Merged
merged 1 commit into from
Oct 31, 2023
Merged

chore(telemetry): measure TOC clicks #9919

merged 1 commit into from
Oct 31, 2023

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Oct 31, 2023

Summary

Problem

We don't know how many users click on items in the table of contents (TOC).

Solution

Add a measurement.


How did you test this change?

Ran yarn && yarn dev with the following environment variables (in .env):

REACT_APP_GLEAN_DEBUG=true
REACT_APP_GLEAN_ENABLED=true

Then visited http://localhost:3000/en-US/docs/Web/CSS, clicked on each TOC items and verified that these clicks show up as events in our Glean debug pings viewer.

@caugner caugner requested a review from a team as a code owner October 31, 2023 17:33
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fiji-flo fiji-flo merged commit 69a0276 into main Oct 31, 2023
13 checks passed
@fiji-flo fiji-flo deleted the measure-toc-clicks branch October 31, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants