Skip to content

feat(analytics): Create @metamask/analytics-controller Package in core [Phase 1.1] #21854

@NicolasMassart

Description

@NicolasMassart

What is this about?

Create @metamask/analytics-controller in Core repo based on existing extension controller

Scenario

No response

Design

No response

Technical Details

Core Deliverables of this Phase 1.1:

  • @metamask/analytics-controller Package
    • Complete package structure with proper TypeScript configuration
    • Package.json with all required dependencies
    • CI/CD pipeline integration
    • Monorepo integration within @metamask/core
  • Base Controller Implementation
    • AnalyticsController extending @metamask/base-controller+ hook
    • Messenger integration for cross-controller communication (allow tracking form other controllers)
    • [WON'T DO] Platform detection and adapter factory pattern -> this is not how adapter works, its passed at instenciation time
  • Segment SDK Standardization
    • Unified adapter interface specification

Acceptance Criteria

  • controller existing in core repo and properly compile.
  • no release need for the moment, local dev only

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

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions