Google Analytics
Notes on using Google Analytics with the analytics abstraction in this codebase.
This repo does not ship a first-party Google Analytics provider or a CLI plugin for installing one.
The analytics package currently exposes only the abstraction layer:
@kit/analyticsfor client usage@kit/analytics/serverfor server usageAnalyticsServiceandcreateAnalyticsManager()for custom implementations
If you want GA4, implement your own provider and register it through the analytics manager. Start from:
packages/analytics/src/types.tspackages/analytics/src/analytics-manager.tspackages/analytics/src/index.tspackages/analytics/src/server.ts
Until you register a real provider, the app uses NullAnalyticsService, so analytics calls are safe no-ops.
For a repo-accurate integration path, see Custom Analytics Provider.