Skip to content

feat: add marketing event for seedless users cp-7.72.0#28015

Merged
grvgoel81 merged 2 commits into
mainfrom
feat/marketing-cosnent-for-seedless-users
Mar 27, 2026
Merged

feat: add marketing event for seedless users cp-7.72.0#28015
grvgoel81 merged 2 commits into
mainfrom
feat/marketing-cosnent-for-seedless-users

Conversation

@grvgoel81

@grvgoel81 grvgoel81 commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

  • This PR improves analytics and marketing-consent for seedless / social (OAuth) onboarding

Changelog

CHANGELOG entry: Improved analytics consistency during social login onboarding.

Related issues

Fixes:

Manual testing steps

Feature: my feature name

Scenario: Social new user completes password and reaches success
    Given seedless / social onboarding is enabled
    And the user signs in with Google or Apple as a new user
    When the user sets a password on Choose Password and submits
    Then the app navigates to onboarding success
    And marketing preference is sent to the auth API according to the checkbox
    And analytics receives preference for marketing consent.

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Medium Risk
Adds new analytics tracking and user-trait updates in the OAuth onboarding success path, including an awaited call that could impact timing or failure behavior before navigation.

Overview
Adds explicit MetaMetrics instrumentation for seedless/social (OAuth) onboarding on the ChoosePassword success path: emits ANALYTICS_PREFERENCE_SELECTED with marketing-consent + account_type (derived from the OAuth provider) and updates the user profile via addTraitsToUser with device/user settings metadata and configured chain IDs.

Updates ChoosePassword tests to mock the expanded analytics API (identify, addTraitsToUser, event builder output), pass provider in OAuth route params, and assert the new tracking/trait calls occur when completing OAuth wallet creation.

Written by Cursor Bugbot for commit 24d270a. Configure here.

@grvgoel81 grvgoel81 self-assigned this Mar 27, 2026
@grvgoel81 grvgoel81 added the team-onboarding Onboarding team label Mar 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Comment thread app/components/Views/ChoosePassword/index.tsx Outdated
Comment thread app/components/Views/ChoosePassword/index.tsx Outdated
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

⏭️ Smart E2E selection skipped - draft PR

All E2E tests pre-selected.

View GitHub Actions results

@github-actions

Copy link
Copy Markdown
Contributor

E2E Fixture Validation — Schema is up to date
17 value mismatches detected (expected — fixture represents an existing user).
View details

@sonarqubecloud

Copy link
Copy Markdown

@grvgoel81 grvgoel81 changed the title feat: add marketing sentry event for seedless users feat: add marketing event for seedless users Mar 27, 2026

@ieow ieow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@grvgoel81 grvgoel81 marked this pull request as ready for review March 27, 2026 12:32
@grvgoel81 grvgoel81 requested a review from a team as a code owner March 27, 2026 12:32
@grvgoel81 grvgoel81 added this pull request to the merge queue Mar 27, 2026
@ieow ieow changed the title feat: add marketing event for seedless users feat: add marketing event for seedless users cp-7.71.0 Mar 27, 2026
@grvgoel81 grvgoel81 changed the title feat: add marketing event for seedless users cp-7.71.0 feat: add marketing event for seedless users Mar 27, 2026
Merged via the queue into main with commit 79d02b8 Mar 27, 2026
113 checks passed
@grvgoel81 grvgoel81 deleted the feat/marketing-cosnent-for-seedless-users branch March 27, 2026 12:51
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2026
@metamaskbot metamaskbot added the release-7.73.0 Issue or pull request that will be included in release 7.73.0 label Mar 27, 2026
@grvgoel81 grvgoel81 changed the title feat: add marketing event for seedless users feat: add marketing event for seedless users cp-7.71.0 Mar 27, 2026
@grvgoel81 grvgoel81 changed the title feat: add marketing event for seedless users cp-7.71.0 feat: add marketing event for seedless users cp-7.72.0 Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.73.0 Issue or pull request that will be included in release 7.73.0 size-S team-onboarding Onboarding team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants