PostHog
An all-in-one product platform with analytics, session replay, feature flags, experiments, surveys and error tracking, in the cloud or self-hosted.
What is PostHog?
PostHog collects events from your website or app and stores your analytics, errors, session replays and business data in one place, so you and AI agents can query it. On top of product analytics with funnels, retention and paths, it offers session replay, feature flags, A/B experiments, surveys, error tracking and a data warehouse. Most customers use PostHog Cloud in the US or EU; the open repository lets you run a self-hosted hobby deployment.
Good fit if
- You want product analytics, feature flags and replays from one vendor instead of five.
- Your engineers want to query raw events with SQL.
Before you adopt it
Most of PostHog is MIT-licensed, but the ee directory is under a separate enterprise license for paid features. Self-hosting is aimed at small hobby use, and the company recommends its cloud for production.
Drafted with AI from the project's README and repository data, then checked against that data on 30 October 2026. Report a correction
PostHog health: is it still maintained?
80 of 100, actively developed
Read from GitHub on 1 November 2026. How the score works
PostHog license: is it open source?
PostHog uses MIT, an open-source license approved by the OSI. Some features sit under a separate paid license inside the same repository.
- January 2020First published on GitHub.
- TodayMIT, with paid parts: license file assigns a different licence to part of the code; directory ee/; separate license ee/LICENSE.
How to run PostHog yourself
- Docker
- Dockerfile or compose file in the repository
- Compose file
- docker-compose.hobby.yml: 37 services (postgres, redis, clickhouse, kafka, minio, elasticsearch)
- Setup effort
- 5 of 5, judged from the compose file
- Kubernetes
- Helm chart in the repository
- Desktop and mobile
- No app builds in GitHub releases
- Interface languages
- English only
Install instructions: posthog.com or the README on GitHub.
Alternatives to PostHog
- OpenReplaySession replay, cobrowsing and product analytics you can self-host. Best for reproducing issues and… 76 health · AGPL-3.0 · 13.1k stars
- CountlyCountly is a privacy-first, AI-powered analytics and engagement platform for understanding and optimizing… 66 health · Countly Product Analytics - Countly Lite License · 5.9k stars
- UmamiUmami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and… 79 health · MIT · 39.8k stars
- RybbitRybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive. 68 health · AGPL-3.0 · 13.2k stars
- Highlighthighlight.io: The open source, full-stack monitoring platform. Error monitoring, session replay, logging,… 25 health · Apache-2.0 · 9.4k stars
Questions about PostHog
Is PostHog open source?
Yes. PostHog is published under MIT, an OSI-approved open-source license. Some features are kept under a separate paid license in the same repository.
Is PostHog still maintained?
Its health score is 80 of 100 (actively developed). It had 18,352 commits in the last 90 days, the latest on 1 November 2026, and its latest release came out on 31 October 2026.
How do I run PostHog?
You can run it with Docker, on Kubernetes with the Helm chart in the repository. The README on GitHub has the exact steps.
What are the alternatives to PostHog?
Close alternatives in the Web analytics category include OpenReplay, Countly, Umami.