-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[IMPROVEMENT] Refactor Analytics Events #5454
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.
I didn't run the app but all the events seem to match.
Unrelated but I created this util for generateDeviceAnalyticsMetaData. Perhaps this is something we want to move in future changes or even make it a part of all the events? Just thought i'd mention it here to create the paper trail. Nice work 👍
…to refactor/analytics-events
Nice @owencraston, I'll keep it in mind for the next analytics PR. |
Description
Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions,
1. What is the reason for the change?
As part of the Segment integration, it's required to do a series of refactors on the app analytics system. The PR #5139 is the main migration development, but getting the events refactor merged will help to reduce the number of code conflicts.
2. What is the improvement/solution?
Refactor the analytics events and centralize them into a single file
app/core/Analytics/MetaMetrics.events.ts
Screenshots/Recordings
If applicable, add screenshots and/or recordings to visualize the before and after of your changeIssue
Progresses https://github.com/MetaMask/mobile-planning/issues/372
Related to PR #5139
Checklist