Analytics Instrumentation
Instruments product analytics with GA4, Segment, or PostHog using consistent event naming and type-safe React hooks.
The Analytics Instrumentation skill provides a standardized framework for implementing product tracking across web applications. It guides developers through the process of defining naming conventions using the 'object_action' pattern, creating reusable React hooks for event triggers, and instrumenting complex user funnels for platforms like GA4, Segment, and PostHog. By emphasizing the separation of tracking logic from business logic and ensuring type safety, this skill helps maintain clean, actionable data while preventing common pitfalls like PII exposure or inconsistent property naming.
Características Principales
01Type-safe React hooks for wrapping GA4, Segment, and PostHog calls
022 GitHub stars
03Verification procedures using provider debug tools and network inspection
04Standardized snake_case naming conventions for consistent data reporting
05Structured funnel tracking patterns for mapping user journeys
06PII protection guidelines to ensure data privacy compliance
Casos de Uso
01Implementing a new tracking plan for a React-based e-commerce store
02Refactoring legacy analytics calls into a centralized, maintainable hook system
03Mapping and instrumenting multi-step conversion funnels for user onboarding