Skip to content

Conversation

@david0xd
Copy link
Contributor

@david0xd david0xd commented Apr 4, 2025

Description

This PR adds MetaMetrics tracking hook to Snap controller init. This way we delegate Snap export tracking to Snap controller.

Related issues

Related PR:
MetaMask/snaps#3281
MetaMask/metamask-extension#31553

Notes

Manual testing steps

  1. TBD

Screenshots/Recordings

Before

n/a

After

n/a

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.

@david0xd david0xd added No QA Needed Apply this label when your PR does not need any QA effort. No E2E Smoke Needed team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues) labels Apr 4, 2025
@david0xd david0xd self-assigned this Apr 4, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2025

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.

@david0xd david0xd force-pushed the dd/change-snap-export-tracking branch 2 times, most recently from 9d493f8 to bb70f92 Compare April 28, 2025 12:59
github-merge-queue bot pushed a commit to MetaMask/snaps that referenced this pull request May 5, 2025
This PR moves MetaMetrics tracking of Snap export usage to Snap
Controller.

Related issue: #3259

Extension integration PR:
MetaMask/metamask-extension#31553
Mobile integration PR:
MetaMask/metamask-mobile#14428
Fix type error

Update tracking props mapping

Update temporary types for metrics params

Fix unit tests

Add small fix for tracking Snap event name

Apply another fix
@david0xd david0xd force-pushed the dd/change-snap-export-tracking branch from bb70f92 to 597da79 Compare May 8, 2025 11:17
@david0xd david0xd marked this pull request as ready for review May 8, 2025 11:19
@david0xd david0xd requested a review from a team as a code owner May 8, 2025 11:19
@david0xd david0xd changed the base branch from main to mrtenz/snaps-104 May 8, 2025 11:20
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 8, 2025

@Mrtenz Mrtenz merged commit 3e8647c into mrtenz/snaps-104 May 13, 2025
41 checks passed
@Mrtenz Mrtenz deleted the dd/change-snap-export-tracking branch May 13, 2025 07:56
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

No QA Needed Apply this label when your PR does not need any QA effort. team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants