-
Notifications
You must be signed in to change notification settings - Fork 190
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
MPP-2822: add gtag to Layout and update gaEvent hook to ping both GA endpoints #4796
Conversation
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.
Thanks, LGTM, verified that the ga events and googletagmanager show up locally.
@@ -59,7 +60,6 @@ We collect data for the following extension events: | |||
|
|||
- When panel navigation arrow icons are clicked | |||
|
|||
|
|||
### In-page events: | |||
|
|||
- When the Relay icon is injected into an email input |
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.
Wondering if we need to make any updates in the add-on?
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.
Wow good catch. I'd like to get this part merged so we can test it ASAP, since the website more directly supports the Firefox integration, which is our current priority. I filed https://mozilla-hub.atlassian.net/browse/MPP-3831 as a follow-up to update the metrics_event endpoint for GA4.
* | ||
* @param props | ||
*/ | ||
export const GoogleAnalyticsWorkaround = ( |
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.
curious, whats the purpose of this?
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.
Copied from Monitor code, TBH. Sounds like it's the same as GoogleAnalytics
but it accepts a nonce
parameter. I'll dig in to see if we can remove that.
Add GA4
Screenshot
How to test
frontend/
runnpm run dev
frontend/
runnpm run build
python manage.py collectstatic
python manage.py runserver
Checklist (Definition of Done)
Customer Experience team has seen or waived a demo of functionality.All UI revisions follow the coding standards, and use Protocol tokens where applicable (see/frontend/src/styles/tokens.scss
).l10n changes have been submitted to the l10n repository, if any.