posthog
🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.
⭐ 34,283 stars on GitHub · 🍴 2,679 forks · 📜 License: other · 💻 Language: Python
What is posthog?
If you want product analytics without stitching together Google Analytics, Hotjar, LaunchDarkly, Sentry, and a survey tool, PostHog is one of the strongest open-source options. Its differentiator is the breadth: analytics, replay, feature flags, experiments, error tracking, warehouse sync, and customer data workflows live in one developer-focused stack.
Main components
- Product analytics with autocapture, custom events, funnels, retention, cohorts, visualizations, and SQL analysis.
- Web analytics for traffic, conversions, web vitals, revenue, and GA-style reporting.
- Session replay for watching real user interactions across web and mobile apps.
- Feature flags for controlled rollouts, beta access, kill switches, and cohort-based targeting.
- Experiments and A/B testing to measure product changes against goal metrics.
- Error tracking with alerts and context to connect exceptions back to affected users and sessions.
- Surveys and no-code feedback collection for capturing user sentiment inside your product.
- Data warehouse and CDP-style pipelines to sync external data, transform events, and export to other tools or webhooks.
Clear use cases
- Build a privacy-conscious product analytics stack for a SaaS app without sending all usage data to a closed vendor.
- Replace a fragmented growth stack with one platform for funnels, replays, feature flags, experiments, and surveys.
- Roll out risky features gradually to selected users, teams, plans, or internal cohorts.
- Debug conversion drops by combining event analytics, session recordings, errors, and user properties.
- Track LLM product usage, including traces, latency, generations, and cost, alongside normal product events.
- Run lightweight web analytics for marketing pages while keeping the same customer data model as the app.
The biggest strength is having the product-building feedback loop in one place — you can see what users do, watch where they struggle, ship a flagged fix, test the impact, and ask for feedback without wiring five separate platforms together. Compared with commercial point solutions, PostHog’s value is not that every module is the deepest in its category; it is that the combined workflow is coherent, developer-friendly, and self-hostable for smaller deployments.
Self-hosting deserves a practical caveat: the open-source hobby deployment is aimed at advanced users and is documented as suitable up to roughly 100k events per month, with PostHog Cloud recommended beyond that. If you need strict uptime guarantees, support, or large-scale event volume, the hosted product is the safer choice. But for teams that care about data control, local experimentation, or evaluating the stack before committing to a vendor, the self-hosted path is genuinely useful.
Best for product-minded engineering teams, SaaS founders, growth engineers, and technical PMs who want an integrated analytics and experimentation platform they can run themselves before scaling to managed infrastructure.
Topics: the project is tagged with popular topics:
- 🏷️
ab-testing - 🏷️
ai-analytics - 🏷️
analytics - 🏷️
cdp - 🏷️
data-warehouse - 🏷️
experiments - 🏷️
feature-flags - 🏷️
javascript - 🏷️
product-analytics - 🏷️
python
📸 Screenshots
Quick install
See the README for detailed install instructions. Most projects support Docker — if the repo has a Dockerfile, use:
git clone https://github.com/PostHog/posthog.git
cd posthog
docker build -t posthog .
docker run -d -p 8080:8080 posthog
Minimum system requirements
| Component | Recommended |
|---|---|
| RAM | 4096 MB |
| CPU | 2 vCPU |
| Disk | 50 GB SSD |
| OS | Ubuntu 22.04 LTS / Debian 12 |
| Docker | 24.0+ |
⚡ Deploy fast on VSIS
Use the VSIS VPS Standard 4GB RAM / 2 vCPU / 50GB SSD (~150k/tháng) plan from VSIS.NET — high-speed VN-based VPS, 24/7 support, ideal for running posthog smoothly.
🎯 Benefits:
- One-command
docker compose up -ddeploy in 2 minutes - Dedicated IPv4, root access, unmetered domestic bandwidth
- Daily snapshot backup
- Free install assistance from the VSIS team
👉 See matching VPS plans at vsis.net
Resources
- 🔗 GitHub: PostHog/posthog
- 🌐 Homepage: https://posthog.com
- 📚 Official docs: see README in the repo
- 💬 Community: GitHub Issues + Discussions
Article compiled from GitHub data on 05/05/2026. Star/fork counts may have changed — see live numbers via the GitHub link.
