Adding Analytics: Let AI Agent Integrate PostHog into Web Applications According to Standard Procedures
# 官方正式翻译结果: adding-analytics is a SKILL.md in the awesome-cursor-skills repository, which formalizes the process of integrating PostHog into web applications: identify the framework, install posthog-js/posthog-node, initialize the Provider, supplement pageview tracking for SPAs, manage keys using environment variables, and add custom events, Feature Flags and session replays as needed. This article cross-verifies based on the original Skill content and official documents of PostHog, Cursor, Claude Code and Codex, explains the installation directory, reproducible examples, as well as the differences between variable names, React package paths, pageview default behavior, input desensitization and other aspects compared with current official documents.
Read More