feat: MUSD-454 add quick convert event tracking cp-7.70.0#27305
Conversation
… on Quick Convert screen
…fo-root to enrich mUSD conversion transaction events
|
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. |
…ransactionId missing
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
…N_VIEWED event when quick convert feature is disabled
…order to keep typing of DeepSnakeCaseKeys accurate
…CK_CONVERT_TOKEN_ROW_BUTTON_CLICKED event
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key impact areas:
No changes were found in Engine, Controllers, network management, account management, multi-SRP, Snaps, Card, Perps, Predictions, Ramps, or MultiChain API layers. Therefore, targeted validation of confirmation flows and Trade entry points is sufficient without running the entire E2E suite. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
Changes:
Transaction*events formusdConversiontransactionsconfirmation_sourceto differentiate between the "Max" convert bottom sheet and custom amount confirmationsis_maxwhich istruewhen "Max" conversion flow is used or when custom amount is used and user clicks "Max" button in percentage button rowEvents
mUSD Quick Convert Screen ViewedMusdQuickConvertView(on mount)mUSD Bonus Terms of Use PressedMusdQuickConvertView(quick_convert_home_screen),EarnMusdConversionEducationView(conversion_education_screen),useMusdConversionNavbar(custom_amount_navbar),PercentageRow(percentage_row)locationproperty differentiates the sourcemUSD Quick Convert Token Row Button ClickedMusdQuickConvertViewbutton_action,redirects_to, asset detailsconfirmation_sourceTransaction*eventsuseMusdConversionConfirmationMetrics'quick_convert_max_bottom_sheet_confirmation_screen'or'custom_amount_screen'— only attached tomusdConversiontransactionsis_maxTransaction*eventsuseMusdConversionConfirmationMetricsTransactionPayController.isMaxAmount— only attached tomusdConversiontransactionsTransaction*eventsuseMusdConversionConfirmationMetricsgetMusdConversionQuoteTrackingData— only attached tomusdConversiontransactionsChangelog
CHANGELOG entry: Added Segment event tracking for mUSD Quick Convert flow and enrich generic Transaction* events for mUSD conversion transactions
Related issues
Fixes: MUSD-454: Add segment events for Quick Convert flow
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Adds new MetaMetrics events and confirmation-metric dispatches across mUSD conversion/confirmation screens; while behavior is mostly observational, it touches confirmations flow and transaction status tracking and could affect analytics payloads or introduce unintended side effects if hooks fire unexpectedly.
Overview
Adds MetaMetrics tracking for the mUSD Quick Convert flow, including
MUSD_QUICK_CONVERT_SCREEN_VIEWED,MUSD_QUICK_CONVERT_TOKEN_ROW_BUTTON_CLICKED(Max/Edit), andMUSD_BONUS_TERMS_OF_USE_PRESSEDwith location/context properties.Introduces a shared analytics utility (
getMusdConversionQuoteTrackingData+deepSnakeCaseKeys) and refactorsuseMusdConversionStatusto use it when emittingMUSD_CONVERSION_STATUS_UPDATED, standardizing quote-derived properties.Enriches confirmation metrics for
musdConversionby adding a newuseMusdConversionConfirmationMetricshook (wired intoMusdConversionInfoRoot) that dispatchesconfirmation_source,is_max, and select quote fields intoconfirmationMetrics. Tests are updated/added accordingly, andEVENT_LOCATIONS/MetaMetricsEventsare extended to support the new instrumentation.Written by Cursor Bugbot for commit 6e2e686. This will update automatically on new commits. Configure here.