chore: update support.metamask urls to track utm source#27331
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. |
|
❌ E2E Fixture Validation — Failed |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #27331 +/- ##
========================================
Coverage 82.20% 82.20%
========================================
Files 5017 5022 +5
Lines 131659 131933 +274
Branches 29381 29447 +66
========================================
+ Hits 108228 108455 +227
- Misses 16083 16110 +27
- Partials 7348 7368 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
41c4b1c to
dd78795
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Nature of changes: Purely URL string consolidation - no functional logic changes. The actual URL paths remain the same; only UTM parameters ( Components touched and their test coverage:
Risk factors:
Tags NOT selected:
Performance Test Selection: |
|
Can you please add a small video showing that external links for Ramps still work after this change? |
|



Description
Adds UTM parameters (
utm_source=mobile_app) to outbound links in the MetaMask Mobile app, specifically updating the support page link tohttps://support.metamask.io?utm_source=mobile_app.Currently all mobile app traffic appears as "Direct" in analytics. This change enables proper attribution to distinguish mobile users from extension users and other sources.
The solution updates link URLs in relevant components (help screens, settings, etc.) while maintaining identical user experience.
Changelog
CHANGELOG entry: Added UTM parameters to mobile app links for improved analytics tracking
Related issues
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches many user-facing outbound support links and
AppConstantsURL wiring; low functional complexity, but mistakes could send users to incorrect help pages or break deep-link constants.Overview
Adds a
MOBILE_UTMsuffix and expandsapp/constants/urls.tsto provide canonical, UTM-tagged MetaMask support/article URLs (plus shared deep-link base constants likeMM_UNIVERSAL_LINK_HOSTandMM_ANDROID_BUNDLE_ID).Updates a wide set of screens/modals (Support/Help, onboarding, password reset, staking/earn, perps, ramp region/eligibility, network verification, error boundary, etc.) to stop using hardcoded support URLs and instead reference these centralized constants, with corresponding test expectation updates. Also switches
AppConstantsto import several URL values and bundle/universal-link constants fromconstants/urlsto avoid duplication.Reviewed by Cursor Bugbot for commit 6ff5d04. Bugbot is set up for automated code reviews on this repo. Configure here.