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

epic: refactor metametrics #10784

Open
7 of 20 tasks
NicolasMassart opened this issue Aug 23, 2024 · 4 comments
Open
7 of 20 tasks

epic: refactor metametrics #10784

NicolasMassart opened this issue Aug 23, 2024 · 4 comments

Comments

@NicolasMassart
Copy link
Contributor

NicolasMassart commented Aug 23, 2024

What is this about?

As MetaMetrics system evolved, we stacked multiple ways to define events. We even have a Legacy section in the events list.
Even on the new events, there's multiple ways to track events because they are structured differently. This forced us to build "conversion" functions.

Scenario

No response

Design

No response

Technical Details

Note

1: research done, decision is not to align as none is an acceptable target, but refactor mobile the best way as possible and later align extension on it

Threat Modeling Framework

What are we working on?

  • event tracking cleanup and alignment with extension

What can go wrong?

  • too many events tracked (not enough cleanup)
  • not enough events tracked (too much cleanup)
  • data tracked when they should not be (privacy)
  • data analytics broken (dashboards and data store not updated accordingly)

What are we going to do about it?

  • sync with data team and PMs of each feature (ext and mobile)
  • clearly define the Segment tracking plan
  • write unit tests
  • review code and QA test all critical features

Did we do a good job?

  • so far yes, but we will do even better

Acceptance Criteria

  • events list clarified and simplified, consistent and cleaned our of legacy
  • all changes tested and test passes
  • events properly received and usable on the analytics side (Segment/Mixpanel)

Stakeholder review needed before the work gets merged

  • Engineering (needed in most cases)
  • Design
  • Product
  • QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • Security
  • Legal
  • Marketing
  • Management (please specify)
  • Other (please specify)

References

No response

@gauthierpetetin
Copy link
Contributor

Linking this ticket here as well, to make sure that we adopt a similar approach in Extension and Mobile, whatever we agree on.
https://github.com/MetaMask/mobile-planning/issues/1898

@NicolasMassart
Copy link
Contributor Author

Also related to https://github.com/MetaMask/mobile-planning/issues/1905 for aligning mobile and extension on this topic

@NicolasMassart
Copy link
Contributor Author

NicolasMassart commented Sep 16, 2024

The "align mobile and extension metrics use" item has to be considered partially.
We can align events and the way they are received on Segment, align prop names, ... but the two systems are very differently architectured (first because of the use of the Segment SDK on mobile), so I would not push for 100% alignment.
We can align the structure of events to pass to the tracking function (the payload).

@gauthierpetetin
Copy link
Contributor

That sounds reasonable to me, thanks for the analysis!

@NicolasMassart NicolasMassart changed the title chore: refactor metametrics events chore: refactor metametrics Sep 17, 2024
@NicolasMassart NicolasMassart changed the title chore: refactor metametrics epic: refactor metametrics Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants