Skip to content

[Analytics] Network prompt events not implemented — 4 events missing from codebase #33397

Description

@vivek-consensys

Description

Four analytics events related to network prompt flows are not implemented anywhere in the codebase — no constant in MetaMetrics.events.ts and no trackEvent call in any component. All four show 0 counts in Mixpanel QA (project 3354001, report Mobile Core UX #91404720).

Missing events:

  • Network Switch Prompt Displayed
  • Network Switch Prompt Resolved
  • Add Network Prompt Displayed
  • Add Network Prompt Resolved

Steps to Reproduce

  1. Trigger a dapp network switch request (wallet_switchEthereumChain).
  2. Trigger a dapp add network request (wallet_addEthereumChain).
  3. Check Mixpanel for any of the four events above.

Expected Result

Each event fires at the appropriate moment — when the prompt appears and when it is resolved (approved or rejected).

Actual Result

Zero events recorded for all four. Constants do not exist in MetaMetrics.events.ts and no trackEvent calls exist anywhere in the repo.

Fix

  1. Add the four constants to MetaMetrics.events.ts.
  2. Wire trackEvent calls into the network switch and add-network approval flows (likely app/components/Views/NetworkSelector/ and/or app/components/UI/NetworkModal/).

Severity

Medium


Filed via Claude bug reporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    INVALID-ISSUE-TEMPLATEIssue's body doesn't match any issue template.Sev3-lowA possible confusion or deception that is only hypothetical & has no known instances in the wildteam-confirmationsPush issues to confirmations teamteam-mobile-uxMobile UX teamtype-bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions