Analytics Service
Component Detail
Infrastructure
low complexity
frontend
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Thin wrapper around Vercel Analytics or Plausible for tracking page views and CTA click events on the sales website. Provides a privacy-friendly, GDPR-compliant analytics integration with no cookie consent wall required when using Plausible.
analytics-service
Responsibilities
- Track page view events on initial load
- Track CTA button click events with event names for funnel analysis
- Abstract the analytics provider behind a single interface to allow vendor swap
Interfaces
trackPageView(path: string): void
trackEvent(name: string, props?: Record<string, string>): void