-
Notifications
You must be signed in to change notification settings - Fork 918
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
Track conversions in GA4 for when Firefox is set to default browser #13238 #13913
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13913 +/- ##
==========================================
+ Coverage 76.72% 76.98% +0.26%
==========================================
Files 145 145
Lines 8008 7835 -173
==========================================
- Hits 6144 6032 -112
+ Misses 1864 1803 -61 ☔ View full report in Codecov by Sentry. |
2b4c043
to
01e17fe
Compare
- Set the custom user dimensions indicating if Firefox is default. - Send the conversion event - Docs - Fix a bug in WNP118 where dimension was set twice
01e17fe
to
ff186fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ (feel free to ignore the suggestion on the event key naming if it's what we have to use)
docs/attribution/0001-analytics.rst
Outdated
|
||
window.dataLayer.push({ | ||
event: 'dimension_set', | ||
firefox_isDefault: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this is an odd mix of both snake_case and camelCase, is that something GA prescribes? I wondered if we could just stick to one (probably snake_case as that's what is used elsewhere mostly)?
One-line summary
Track conversions in GA4 for when Firefox is set to default browser.
Significant changes and points to review
default_browser_set
anddimension_set
Issue / Bugzilla link
#13238
Testing
Local testing can be done to make sure the dataLayer has the expected data:
http://localhost:8000/en-GB/firefox/118.0/whatsnew/
http://localhost:8000/en-GB/firefox/116.0/whatsnew/
http://localhost:8000/en-US/firefox/set-as-default/thanks/