Summary
src/lib/analytics/GoogleAnalytics/ ships with the full 5-file pattern, consent-gated via ConsentContext. Awaits per-fork GA4 property setup.
What's shipped
- 5-file GoogleAnalytics module
- Consent-gating via ConsentContext
- Page view + Web Vitals + custom event tracking
- Graceful degradation for ad blockers
tests/analytics/ga4-integration.spec.ts (4 live + 8 stubs)
Gaps
.env NEXT_PUBLIC_GA_MEASUREMENT_ID is empty (per-fork config required)
- Theme change event tracking incomplete (8 test stubs await this work)
Effort
~5 minutes once a GA4 property ID is obtained.
Reference
- Spec:
features/enhancements/019-google-analytics/spec.md
Summary
src/lib/analytics/GoogleAnalytics/ships with the full 5-file pattern, consent-gated via ConsentContext. Awaits per-fork GA4 property setup.What's shipped
tests/analytics/ga4-integration.spec.ts(4 live + 8 stubs)Gaps
.envNEXT_PUBLIC_GA_MEASUREMENT_IDis empty (per-fork config required)Effort
~5 minutes once a GA4 property ID is obtained.
Reference
features/enhancements/019-google-analytics/spec.md