Skip to content

PostHog

Self-hostable product analytics suite with replay, flags and experiments

Permissive (OSI) · MIT
  • Self-hosted

Listed by , founder & editor

83

Health

Thriving

Overview

Stars

41,070

Last commit

today

Nov 2026

Repository age

6 years

since Jan 2020

Latest version

desktop-v0.61.1096

Nov 2026

Contributors

–

28 active in 90 days

Releases

25

last 12 months

Docker pulls

36M

posthog/posthog

Language

Python

PostHog combines product analytics, web analytics, session replay, heatmaps, feature flags, experiments, surveys and error tracking in one platform. You can instrument events manually or use autocapture, then analyze them with visualizations or SQL.

It also includes logs, tracing, a data warehouse with 120+ sources, and data pipelines that send events to 25+ tools or any webhook. AI features let you query your data in plain language, and an MCP server connects it to editors and coding agents. The backend is Python with a React frontend, and it is MIT licensed. You can self-host with Docker or use the hosted plan.

It replaces Amplitude, Mixpanel and Google Analytics for teams that want these tools together. Cohort and path depth may differ from Amplitude, and the report builder is less polished than Mixpanel's. Cookieless mode needs configuration.

Who it's for

Product teams consolidating analytics tools

Analytics, replay, flags and experiments live in one place.

Skip if: You only need a simple traffic dashboard.

Teams with data residency needs

You can self-host it with Docker and keep event data on your infrastructure.

Skip if: You do not want to operate the stack yourself.

Developers running feature rollouts

Feature flags and no-code experiments sit next to the metrics.

Skip if: You need deeper cohort analysis than it offers.

The problem it solves

Product analytics, session replay and feature flags often come from separate vendors with separate bills. PostHog puts them in one tool you can host yourself.

Strengths

  • Analytics, replay, flags, experiments and surveys in one tool
  • Self-hostable with Docker, with a hosted plan as well
  • MIT licensed
  • 32 contributors in the last 90 days
  • Warehouse with 120+ sources and SQL editor

Trade-offs

  • Heavier setup and interface than a simple traffic dashboard
  • Cohort and path depth may differ from Amplitude
  • Report builder is less polished than Mixpanel's
  • Cookieless mode needs configuration

PostHog replaces

Self-host PostHog

Self-hostable
Yes
Docker image
posthog/posthog
Hosted plan
Available · pricing

In the community

Frequently asked questions

Is PostHog free to self-host?

Yes. The code is MIT licensed and you can run it with Docker.

Can it replace Google Analytics?

Yes, it has a web analytics dashboard with conversion, web vitals and revenue tracking, though it is heavier to set up.

Is there a hosted option?

Yes, a hosted plan is available.

Does it work with AI coding tools?

Yes. A remote MCP server connects it to editors and agents such as Claude Code, Cursor and VS Code.

Similar tools in Analytics platforms

Plausible

Analytics platforms

Cookieless, lightweight web analytics you can self-host or use as a cloud service

30k 1.9k today Active AGPL-3.0

Replaces Google Analytics

RudderStack

Analytics platforms

Source-available customer data pipeline with Segment-compatible API and warehouse sync

4.5k 84 today Thriving Elastic-2.0

Replaces Segment

GoatCounter

Analytics platforms

Privacy-friendly web analytics, hosted or self-hosted, for site owners who want simple

6.2k 288 2 months ago Slowing EUPL-1.2

Replaces Google Analytics

fathom

Analytics platforms

Self-hosted, single-binary website analytics for small sites, in maintenance mode

8k 388 8 months ago Dormant MIT

Umami

Analytics platforms

Cookie-free web and product analytics you can self-host, for teams leaving Google

40k 8.6k today Thriving MIT

Replaces Google Analytics

Countly Community Edition

Analytics platforms

Self-hosted product analytics with push notifications and crash reporting for app teams

5.9k 984 3 days ago Active AGPL-3.0