Back to directory

Data & Analytics · Web & Product Analytics

PostHog

Product analytics and developer tools for teams that ship software

PostHog is a developer-focused platform for product analytics, session replay, feature flags, experiments, error tracking, logs, AI observability, and data operations. The main repository uses the MIT Expat license outside the separately licensed ee directory. PostHog Cloud offers a permanent monthly free tier, while a Docker-based hobby deployment supports teams that want to run the open-source product themselves.

Key facts

License
MIT (except separately licensed enterprise code)
Main language
Python, TypeScript, JavaScript
Maintainer
PostHog
First released
2020
Latest release
desktop-v0.61.802, October 22, 2026
GitHub stars
40.4k, October 2026
Hosted option
PostHog Cloud, permanent monthly free tier, then usage-based pricing

What PostHog is

PostHog is a product analytics and developer-tools platform founded by James Hawkins and Tim Glaser in January 2020. The project joined Y Combinator’s Winter 2020 batch and launched its minimum viable product on Hacker News four weeks after coding began. The repository was created on January 23, 2020, and records 40,370 GitHub stars, 3,532 forks, and more than 5,000 contributions from its leading contributor, Gilbert09. PostHog maintains the repository and says more than 500,000 teams use its Cloud product. Its media page reports $182 million in funding from investors including Stripe, GV, Y Combinator, and Peak XV. The company’s timeline records a $70 million Series D in 2025 and a $75 million Series E later that year.

How it works

PostHog combines event-based product analytics with tools used during software delivery and customer support. A team can install a JavaScript snippet, use an SDK, or send data through the API from a web, mobile, or backend application. Users then inspect funnels, retention, paths, cohorts, web traffic, group behavior, dashboards, and SQL queries. Session replay and heatmaps connect aggregate behavior to individual sessions, while Replay Vision creates observations from recordings. Feature flags control staged rollouts, and experiments measure changes against goal metrics. Error tracking, logs, and tracing add operational context. Surveys, support inboxes, workflows, warehouse connections, data pipelines, endpoints, Slack, Desktop, and MCP extend the same product data into communication and agent workflows.

Architecture and recent releases

The repository is a large application whose principal languages include Python, TypeScript, and JavaScript, with additional code in Go, Rust, Swift, Ruby, C, C++, and SQL-related formats. Its services use Django-style application modules, APIs, ClickHouse, PostgreSQL, Redis, Kafka, Zookeeper, Celery, object storage, and supporting containers. PostHog began with PostgreSQL and added ClickHouse support in October 2020 to handle billions of events. Cloud is the recommended deployment, while the open-source hobby edition runs through Docker on Linux. The release record identifies desktop-v0.61.802, published October 22, 2026, with macOS, Windows, and Linux packages. The 2025 and 2026 product direction includes PostHog AI, AI observability, Desktop, MCP access, logs, tracing, and self-driving workflows.

License and pricing

The main repository uses the MIT Expat license outside the ee directory, which has its own license. MIT permits commercial use, copying, modification, publication, distribution, sublicensing, and sale, subject to preserving the copyright and permission notices. The repository does not impose a general SaaS restriction in the MIT portion, while PostHog also publishes a FOSS mirror with proprietary code removed. PostHog Cloud includes 1 million analytics events, 5,000 recordings, 1 million feature-flag requests, 100,000 exceptions, 1,500 survey responses, 10 GB of logs, and other monthly allowances at no charge. The free plan includes one project and one-year retention. Pay-as-you-go adds unlimited usage, six projects, seven-year event retention, and product-specific usage pricing. Enterprise platform features and annual volume terms are custom.

Limitations and how it compares

PostHog’s breadth creates more configuration and governance work than a focused analytics product. Self-hosting requires Linux, Docker, database services, backups, upgrades, and operator responsibility, while paid-plan features remain Cloud-only. Amplitude and Mixpanel are closer hosted product analytics comparisons, with less infrastructure responsibility and narrower product scope. Matomo is a more focused open-source web analytics option, while GrowthBook covers experimentation and feature flags without PostHog’s broader analytics and observability suite. PostHog is the stronger choice for development teams that want product behavior, release controls, replay, experimentation, errors, logs, and AI observability connected through one platform, especially when a permanent Cloud allowance or MIT-licensed core matters.

Main features

  • Product analytics. Capture events automatically or manually, then analyze funnels, retention, paths, cohorts, dashboards, web traffic, and SQL-based product questions.
  • Session replay. Review web and mobile recordings with heatmaps and Replay Vision, connecting aggregate metrics to individual user interactions.
  • Feature flags. Release features to selected users or cohorts and connect rollout decisions to product analytics and experiments.
  • Error tracking. Collect exceptions, alerts, and debugging context alongside product behavior, logs, and distributed traces.
  • AI observability. Capture model traces, generations, latency, cost, and evaluation results for applications that use large language models.
  • Data warehouse. Collect business and product data, connect more than 120 sources, query with SQL, and export through pipelines.
  • MCP access. Connect PostHog data to compatible editors and agent clients through its MCP server and setup wizard.

Self-hosting PostHog

PostHog documents a Linux Docker deployment through its hobby installer and provides an experimental self-hosting TUI binary. The documented baseline is an Ubuntu virtual machine with 4 vCPU, 16 GB RAM, and more than 30 GB storage, while the README describes a smaller 4 GB hobby deployment for approximately 100,000 events per month. The stack includes PostgreSQL, ClickHouse, Redis, Kafka, Zookeeper, object storage, and supporting containers. Kubernetes deployments of the paid open-source product are no longer supported. Upgrades use the repository’s upgrade script, and administrators should back up data before upgrading. Self-hosted instances have no product, infrastructure, or data-loss support guarantee.

Strengths

  • The MIT-licensed core permits commercial use, modification, distribution, and sale outside the ee directory.
  • A permanent free Cloud allowance covers analytics, replay, flags, exceptions, surveys, logs, and other products.
  • Analytics, replay, flags, experiments, errors, logs, and AI observability share one product data context.
  • The project provides SDKs and integrations for web, mobile, backend, Slack, Desktop, and MCP workflows.

Drawbacks

  • Self-hosting requires substantial infrastructure and is officially unsupported by PostHog.
  • The repository has no conventional tagged server release line because self-hosted changes ship continuously from master.
  • The broad feature set can require more configuration and governance than a focused analytics product.

What teams replace with it

Teams usually evaluate PostHog when they want to move off Amplitude, Mixpanel, FullStory, LaunchDarkly.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to PostHog

Frequently asked questions

Is PostHog free?

PostHog Cloud has a permanent free tier that renews monthly. It includes 1 million analytics events, 5,000 session recordings, 1 million feature-flag requests, 100,000 exceptions, 1,500 survey responses, 10 GB of logs, and allowances for several other products. The free plan includes one project and one-year data retention. Usage above the allowances is billed on the pay-as-you-go plan.

Can companies use PostHog commercially?

The main repository uses the MIT Expat license except for the ee directory, which has a separate license. MIT allows commercial use, copying, modification, publication, distribution, sublicensing, and sale, subject to preserving required notices. Teams that need an entirely FOSS deployment can use the separate posthog-foss repository, which removes proprietary code and features.

How do I self-host PostHog, and what hardware does it need?

The documented installation path runs Docker on a Linux Ubuntu virtual machine through the hobby deployment script. The self-host guide lists 4 vCPU, 16 GB RAM, and more than 30 GB storage as an equivalent baseline, while the README describes a smaller 4 GB deployment for roughly 100,000 events per month. The stack uses PostgreSQL, ClickHouse, Redis, Kafka, Zookeeper, and object storage.

How does PostHog compare with Amplitude?

Amplitude is a hosted product analytics service, while PostHog combines analytics with session replay, feature flags, experiments, error tracking, logs, AI observability, and data tools. PostHog also offers a self-hosted Docker deployment and an MIT-licensed core outside its ee directory. Amplitude may suit teams seeking focused hosted analytics with less infrastructure responsibility.

Is PostHog suitable for privacy-sensitive deployments?

PostHog offers US and EU Cloud regions, and teams can run the open-source hobby deployment on infrastructure they control. Self-hosting transfers responsibility for URLs, deployments, scaling, backups, security, and data loss to the operator. PostHog states that self-hosted deployments are unsupported and that security fixes ship continuously through the latest Docker image rather than a conventional tagged release process.

Similar projects to compare

Sources

Last updated 2026-10-22.