fix(onboarding): migrate interest questionnaire to generic Onboarding Question events#30890
Conversation
Add single-select crypto experience step after the interest questionnaire, with analytics events and navigation wiring through to onComplete.
Align TMCU-834 Segment payload: rename experience_level to name (null when skipped).
Add a page object for the onboarding crypto experience screen and tap Continue after the interest questionnaire in CreateNewWallet and import wallet flows so analytics smoke tests reach onboarding success.
…perience Align with segment-schema #590: fire Onboarding Question Viewed/Submitted with question_type crypto_experience instead of crypto-specific event names.
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.
Reviewed by Cursor Bugbot for commit f4c26bd. Configure here.
Replace Pressable with TouchableOpacity and activeOpacity={0.7} to match
onboarding touch target conventions.
Use exact match so the test fails if account_type is erroneously included.
2e659a2 to
99574f2
Compare
Merge with main left duplicate enum entries and object keys in MetaMetrics.events.ts, causing lint:tsc failures.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why SmokeWalletPlatform: The Why not broader tags: The changes are purely analytics-related (event name renaming + adding a property). No UI, navigation, controller, or functional logic was modified. The questionnaire component behavior is unchanged. No E2E tests validate specific analytics event names/properties directly — they only interact with the UI. Performance tests: Not needed — no rendering, state management, data loading, or performance-sensitive code was changed. Performance Test Selection: |

Description
Migrates the onboarding interest questionnaire from legacy
Onboarding Interest Question Viewed/Submittedevents to the sharedOnboarding Question Viewed/SubmittedMetaMetrics events withquestion_type: 'interest', completing mobile consolidation per segment-schema #590.OnboardingInterestQuestionnairefiresONBOARDING_QUESTION_VIEWED/ONBOARDING_QUESTION_SUBMITTEDwithquestion_type: 'interest'.selected_interests,item_count,skipped, and optionalaccount_type(noname).ONBOARDING_INTEREST_QUESTION_*constants fromMetaMetrics.events.ts.Analytics note: Segment event names change for the interest step; property shapes are the same plus
question_type. Dashboards keyed onOnboarding Interest Question *should filter onquestion_type: interestinstead.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-792
Related: https://github.com/Consensys/segment-schema/pull/590
Manual testing steps
Unit tests:
yarn run jest app/components/Views/OnboardingInterestQuestionnaire/OnboardingInterestQuestionnaire.test.tsx(19 passed)Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Analytics-only rename and property discriminator; no UI or wallet logic changes. Main risk is downstream dashboards keyed on legacy event names until updated.
Overview
The onboarding interest questionnaire now emits shared
Onboarding Question Viewed/Onboarding Question SubmittedMetaMetrics events instead of the legacyOnboarding Interest Question *names. Both events includequestion_type: 'interest'; submitted payloads still sendselected_interests,item_count,skipped, and optionalaccount_type.MetaMetrics.events.tsdrops the unusedONBOARDING_INTEREST_QUESTION_*enum entries andgenerateOptmappings. Unit tests assert the new event names andquestion_typeon view and submit paths.Analytics impact: Segment event names change for this step; reporting should filter
Onboarding Question *withquestion_type: interestrather than the old interest-specific event names.Reviewed by Cursor Bugbot for commit bb57eed. Bugbot is set up for automated code reviews on this repo. Configure here.