Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jl/caip multichain/provider authorize metrics #26699

Merged
merged 6 commits into from
Aug 28, 2024

Conversation

jiexi
Copy link
Contributor

@jiexi jiexi commented Aug 27, 2024

Description

  • Add metrics to provider_authorize
  • Add jsdoc to removeScope()

Open in GitHub Codespaces

Related issues

See: https://github.com/MetaMask/MetaMask-planning/issues/3049

Manual testing steps

  1. Go to this page...

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.

Copy link
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.

if (shouldEmitDappViewedEvent(hooks.metamaskState.metaMetricsId)) {
hooks.sendMetrics({
event: MetaMetricsEventName.DappViewed,
category: MetaMetricsEventCategory.InpageProvider,
Copy link
Contributor

Choose a reason for hiding this comment

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

Also probably want a different category here. TODO: discuss this with analytics team

Comment on lines 220 to 222
is_first_visit: isFirstVisit,
number_of_accounts: Object.keys(hooks.metamaskState.accounts).length,
number_of_accounts_connected: permittedAccounts,
Copy link
Contributor

Choose a reason for hiding this comment

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

Almost certainly want to add number_of_chains_connected here

Copy link
Contributor

Choose a reason for hiding this comment

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

another thing to mention to analytics team

@jiexi jiexi marked this pull request as ready for review August 28, 2024 22:31
@jiexi jiexi requested a review from a team as a code owner August 28, 2024 22:31
@jiexi jiexi merged commit a9e92c5 into caip-multichain Aug 28, 2024
14 of 16 checks passed
@jiexi jiexi deleted the jl/caip-multichain/provider_authorize-metrics branch August 28, 2024 22:31
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants