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(baseline): add glean metrics #9391

Merged
merged 2 commits into from
Aug 8, 2023
Merged

chore(baseline): add glean metrics #9391

merged 2 commits into from
Aug 8, 2023

Conversation

LeoMcA
Copy link
Member

@LeoMcA LeoMcA commented Jul 27, 2023

Summary

Problem

We have no engagement metrics with Baseline.

Solution

Add glean pings for:

  • opening the baseline toggle
  • clicking learn more
  • clicking see full compatibility

Also added and use data-glean attribute, rather than throwing gleanClicks on the anchors, at @fiji-flo's suggestion.
We can migrate buttons and the other data attributes later.


How did you test this change?

set

REACT_APP_GLEAN_ENABLED=true
REACT_APP_GLEAN_DEBUG=true

ran yarn dev
observed correct looking glean pings appearing in my console:
https://debug-ping-preview.firebaseapp.com/pings/mdn-dev/be83388b-96a8-49a3-836e-b0fcdc1fcae9
https://debug-ping-preview.firebaseapp.com/pings/mdn-dev/e639dcbe-5991-4ada-8acb-a82671581575
https://debug-ping-preview.firebaseapp.com/pings/mdn-dev/5a087c91-49fb-49bc-ab4d-a798be8d50c2

add data-glean attribute that can be set on anchors - for now, leaving
buttons and the other data attributes as they are - we might want to
remove and migrate them to data-glean in the future
@LeoMcA LeoMcA requested a review from fiji-flo July 27, 2023 10:10
@LeoMcA LeoMcA temporarily deployed to stage August 7, 2023 16:21 — with GitHub Actions Inactive
@LeoMcA LeoMcA temporarily deployed to stage August 8, 2023 10:56 — with GitHub Actions Inactive
@LeoMcA LeoMcA merged commit 2843109 into main Aug 8, 2023
16 checks passed
@LeoMcA LeoMcA deleted the baseline-glean branch August 8, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants