-
Notifications
You must be signed in to change notification settings - Fork 5k
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
refactor: fix event names used to track notifications #25521
refactor: fix event names used to track notifications #25521
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. |
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.
PR Summary
This PR updates event names and properties for tracking notifications to ensure consistency and adherence to conventions.
app/scripts/metamask-controller.js
: RenamedPushNotificationClicked
toNotificationClicked
and added properties likenotification_id
,notification_is_read
, andclick_type
.shared/constants/metametrics.ts
: Standardized MetaMetrics event names for better consistency.ui/components/app/modals/turn-on-metamask-notifications/turn-on-metamask-notifications.tsx
: Updated event names and added propertiesis_notifications_enabled
andaction_type
.ui/components/multichain/global-menu/global-menu.js
: Renamed event names and properties for notification tracking.ui/pages/notifications-settings/notifications-settings-allow-notifications.tsx
: Replaced specific event names withNotificationsSettingsUpdated
and added propertiessetting_type
,old_value
, andnew_value
.
12 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
d7c77cd
add the missing segment events for onboarding snapshots
Builds ready [d7c77cd]
Page Load Metrics (227 ± 226 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25521 +/- ##
===========================================
+ Coverage 69.94% 69.95% +0.01%
===========================================
Files 1409 1409
Lines 49794 49779 -15
Branches 13773 13767 -6
===========================================
- Hits 34826 34818 -8
+ Misses 14968 14961 -7 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
Builds ready [5a7ea8e]
Page Load Metrics (60 ± 7 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
This PR modifies the names of some tracked events to monitor the use of notifications, ensuring they adhere to the conventions used.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist