Repository navigation
Add email to GTM events - #88493
Add email to GTM events#88493youssef-lr wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f0a330396d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
MariaHCD
left a comment
There was a problem hiding this comment.
Makes sense, just have a few clarifications and:
- Could you add a bit detail on Explanation of Change
- There is a failing jest test
| } | ||
|
|
||
| const params = {event, user_id: accountID}; | ||
| const params = {event, user_id: accountID, user_data: {email}}; |
There was a problem hiding this comment.
Is the requirement that the email is passed in this format? i.e. as a email nested in the user_data key?
There was a problem hiding this comment.
Yes. According to Google docs.
There was a problem hiding this comment.
Okay, great, thanks for confirming! Then once the other comments+failing test are addressed, let me know when this is ready for final review
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Closing in favor of #88759, I'd like to keep all logic in that PR and I changed the structure of the code so to avoid conflicts I'm closing. |
Explanation of Change
In order to enable enhanced conversions tracking in GA4, it is recommended to also include the email in the events. The event is automatically hashed by GTM before reaching GA4.
Fixed Issues
part of https://github.com/Expensify/Expensify/issues/624152
Tests
window.dataLayersign_up&workspace_createdevents' arguments include the user's email.Offline tests
N/A
QA Steps
window.dataLayersign_up&workspace_createdevents' arguments include the user's email.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari