Configures comprehensive product analytics and feature flag infrastructure using PostHog for both client-side and server-side applications.
This skill automates the integration of PostHog, a powerful all-in-one platform for product analytics and feature management. It provides structured guidance for setting up posthog-js with proper provider patterns and posthog-node for server-side event tracking, ensuring reliable data collection through automatic SPA tracking and serverless flush handling. Ideal for developers needing a robust, usage-based alternative to fragmented analytics tools, it enforces best practices like environment variable security, user identification flows, and optimized session tracking while preventing common pitfalls in serverless environments.
주요 기능
01Unified setup for client-side (posthog-js) and server-side (posthog-node) tracking
02Best-practice patterns for user identification, session resets, and cost-saving person profiles
03Standardized environment variable configuration for multi-environment deployments
043 GitHub stars
05Automatic SPA pageview tracking with recommended 2026-01-30 defaults
06Serverless-ready event capture patterns including captureImmediate and manual flushing
사용 사례
01Setting up feature flag infrastructure for safe deployments and A/B testing
02Initializing PostHog in a new React, Next.js, or Node.js project
03Implementing server-side event tracking in API routes or serverless functions