Adding Analytics: Let AI Agent Integrate PostHog into Web Applications According to Standard Procedures

adding-analytics is a SKILL.md in awesome-cursor-skills that turns adding PostHog analytics to a web app into a fixed process: identify the framework, install posthog-js / posthog-node, initialize the Provider, add pageviews for SPAs, manage secrets via environment variables, and optionally add custom events, feature flags, and session replay. Cross-checked against the Skill text and the official PostHog, Cursor, Claude Code, and Codex docs, this article explains the installation directory, reproducible examples, and differences from current docs such as variable names, React package paths, default pageview behavior, and input redaction.

Read More