posthog Documentation
PostHog product analytics documentation. Use for event tracking, feature flags, A/B testing, session replay, surveys, data warehouse, and SDK integrations.
Quick Reference
| Task | Entry Point |
|---|---|
| Getting started | contents/getting-started/start-here.mdx |
| Install an SDK | contents/libraries.mdx and contents/libraries/ |
| Feature flags | contents/feature-flags/ |
| Experiments (A/B tests) | contents/experiments/ |
| Session replay | contents/session-replay/ |
| Data pipelines (destinations, sources) | contents/data-pipelines/ |
| REST API | contents/api/ |
| Glossary | contents/glossary.mdx |
When to use
Use this skill when the user asks about:
- Capturing events, identifying users, and product analytics insights
- Feature flags, experiments, and A/B testing
- Session replay, surveys, error tracking, and web analytics
- PostHog SDKs (JavaScript, Python, Node, mobile) and the REST API
- Data warehouse, data pipelines, LLM observability, and self-hosting
How to find information
- First, read
TOC.mdfor complete file listing organized by directory - Identify relevant section based on user's question
- Read specific files for details
TOC.md contains all files organized by directory - always check it first.