This skill streamlines the process of adding PostHog analytics to Angular projects, ensuring adherence to modern framework standards like the inject() function and standalone components. It provides a structured workflow for creating a singleton PosthogService, configuring environment-specific API keys, and implementing robust user identification during authentication flows. By following this skill's guidance, developers can maintain clean code architecture while gaining powerful insights through event tracking, session recording, and cross-platform correlation using custom session headers.
主な機能
01Modern Angular implementation using inject() and standalone components
02Automated setup of a singleton PosthogService wrapper
03Environment-based configuration for secure API key management
04Advanced user identification and cross-platform session correlation
0534 GitHub stars
06Comprehensive error tracking across critical user flows
ユースケース
01Correlating frontend user actions with backend events using session headers
02Implementing session recording to debug user friction in complex workflows
03Adding product analytics to a new or existing Angular enterprise application