Google Analytics
How to approach a Google Analytics integration in this repo.
This repository does not currently ship a Google Analytics provider package or a prewired GA4 integration.
Current State
- No
@kit/google-analyticspackage is present inpackages/ @kit/analyticscurrently registers only thenullprovider- There is no checked-in GA4 codemod or plugin wiring in this repo
What To Do Instead
If you want Google Analytics in this codebase:
- Create a provider that implements
AnalyticsService - Register it in
packages/analytics/src/index.ts - Add any browser script/bootstrap logic inside that provider
- Mirror the setup in
packages/analytics/src/server.tsonly if you also need server-side forwarding
Use Custom Analytics Provider as the reference pattern.
Recommended Scope
Google Analytics is a good fit when you need:
- marketing attribution
- ad campaign reporting
- basic page-view and conversion tracking
If you need a production-ready integration, plan to own the package, env vars, consent handling, and any GA-specific event mapping yourself.