-
Notifications
You must be signed in to change notification settings - Fork 5.4k
UX: Add event tracking for empty banner displays #22654
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
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
4ba64f8 to
0d3845e
Compare
d89aadb to
b73cc6e
Compare
Builds ready [d40792c]
Page Load Metrics (803 ± 26 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
| chain_id: currentNetwork.chainId, | ||
| locale: currentLocale, | ||
| network: currentNetwork.nickname, | ||
| referrer: ORIGIN_METAMASK, |
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: we can extract them to a property object and use it for different events tracked in this file
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 can do that in a follow up as it's not core and I do kind of like the context of what the nickname and chainId belong to!
d40792c to
93a3a68
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #22654 +/- ##
===========================================
+ Coverage 68.47% 68.49% +0.02%
===========================================
Files 1089 1089
Lines 42905 42926 +21
Branches 11426 11429 +3
===========================================
+ Hits 29378 29400 +22
+ Misses 13527 13526 -1 ☔ View full report in Codecov by Sentry. |
Builds ready [93a3a68]
Page Load Metrics (818 ± 42 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Adds event tracking for the new "Buy", "Receive", and "NFT" banners.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/1949
Manual testing steps
ui/contexts/metametrics.jsand in thetrackEventfunction, add aconsole.logto see the events get recorded (or use Logpoints in the debugger)Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist