diff --git a/ui/components/multichain/global-menu/global-menu.js b/ui/components/multichain/global-menu/global-menu.js index c2021c75bd99..c3c1b01d31ab 100644 --- a/ui/components/multichain/global-menu/global-menu.js +++ b/ui/components/multichain/global-menu/global-menu.js @@ -143,15 +143,6 @@ export const GlobalMenu = ({ closeMenu, anchorElement, isOpen }) => { !hasNotifySnaps && !isMetamaskNotificationsEnabled; if (shouldShowEnableModal) { - trackEvent({ - category: MetaMetricsEventCategory.NotificationInteraction, - event: MetaMetricsEventName.NotificationMenuOpened, - properties: { - is_profile_syncing_enabled: isProfileSyncingEnabled, - is_notifications_enabled: isMetamaskNotificationsEnabled, - action_type: 'started', - }, - }); trackEvent({ category: MetaMetricsEventCategory.NotificationInteraction, event: MetaMetricsEventName.NotificationMenuOpened, @@ -167,6 +158,14 @@ export const GlobalMenu = ({ closeMenu, anchorElement, isOpen }) => { } // Otherwise we can navigate to the notifications page + trackEvent({ + category: MetaMetricsEventCategory.NotificationInteraction, + event: MetaMetricsEventName.NotificationMenuOpened, + properties: { + is_profile_syncing_enabled: isProfileSyncingEnabled, + is_notifications_enabled: isMetamaskNotificationsEnabled, + }, + }); history.push(NOTIFICATIONS_ROUTE); closeMenu(); };