Description
The event Account Details Menu Opened is defined as a constant in MetaMetrics.events.ts but is never imported or called in AccountsMenu.tsx. The component has useAnalytics() already wired up and fires other analytics events correctly (buy, notifications, settings, lock, QR scanner) — the screen-open event is simply missing.
File: app/components/Views/AccountsMenu/AccountsMenu.tsx
Owner: @MetaMask/mobile-core-ux
Steps to Reproduce
- Open the Accounts Menu in MetaMask Mobile.
- Check Mixpanel for an
Account Details Menu Opened event.
Expected Result
An Account Details Menu Opened event fires in Mixpanel each time the AccountsMenu mounts/gains focus.
Actual Result
Zero events recorded. Confirmed via Mixpanel QA project (project 3354001, report Mobile Core UX #91404720) — the event has 0 count across all time.
Fix
Add a useEffect (or useFocusEffect) at the top of AccountsMenu.tsx:
trackEvent(
createEventBuilder(MetaMetricsEvents.ACCOUNT_DETAILS_MENU_OPENED).build()
);
Severity
Medium
Filed via Claude bug reporter
Description
The event
Account Details Menu Openedis defined as a constant inMetaMetrics.events.tsbut is never imported or called inAccountsMenu.tsx. The component hasuseAnalytics()already wired up and fires other analytics events correctly (buy, notifications, settings, lock, QR scanner) — the screen-open event is simply missing.File:
app/components/Views/AccountsMenu/AccountsMenu.tsxOwner:
@MetaMask/mobile-core-uxSteps to Reproduce
Account Details Menu Openedevent.Expected Result
An
Account Details Menu Openedevent fires in Mixpanel each time the AccountsMenu mounts/gains focus.Actual Result
Zero events recorded. Confirmed via Mixpanel QA project (project
3354001, reportMobile Core UX#91404720) — the event has 0 count across all time.Fix
Add a
useEffect(oruseFocusEffect) at the top ofAccountsMenu.tsx:Severity
Medium
Filed via Claude bug reporter