Closed
Conversation
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. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Collaborator
✨ Files requiring CODEOWNER review ✨🪪 @MetaMask/identity (1 files, +2 -0)
|
Merged
4 tasks
mathieuartu
added a commit
to MetaMask/core
that referenced
this pull request
Jul 3, 2025
…thod/action (#6068) ## Explanation This PR adds a new `getUserProfileMetaMetrics` method to `AuthenticationController`. This methods queries the Authentication API and retrieves the currently authenticated user's metametrics data, in the form of `UserProfileMetaMetrics` type. ```ts export type UserProfileMetaMetrics = { profile_id: string; created_at: string; lineage: { metametrics_id: string; agent: Platform; // 'mobile' | 'extension' | 'portfolio' | 'infura' created_at: string; updated_at: string; counter: number; }[]; }; ``` Extension test-drive PR: - MetaMask/metamask-extension#34060 The PR above is only a demo, and **shouldn't** be merged. It adds a call to `getUserProfileMetaMetrics` just after dispatching account syncing. In order to view the results, switch to the test-drive PR branch, `yarn`, `yarn start`. Then complete onboarding, open the dev tools, network tab, and filter by "authentication". You should see a `metametrics` call every time you refresh the extension page (more convenient to do in full screen mode). ## References Will close: - https://consensyssoftware.atlassian.net/browse/IDENTITY-162 ## Changelog <!-- THIS SECTION IS NO LONGER NEEDED. The process for updating changelogs has changed. Please consult the "Updating changelogs" section of the Contributing doc for more. --> ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist