Repolode
PostHog

PostHog/posthog

Open-source product analytics platform combining event analytics, session replay, feature flags, experiments, error tracking, surveys and a data warehouse.

Open-source alternative to:Google AnalyticsMixpanelAmplitude

Stars
40,344
Forks
3,526
Open issues
5,775
Last commit
2 hours ago

What is it?

PostHog is a product development platform that collects analytics, errors, session recordings and business data in one place, so developers and product teams can query that context and act on it. Core modules include product and web analytics, session replay and heatmaps, error tracking and logs, feature flags, experiments, surveys, and customer support tools.

Data can be sent through its JavaScript snippet or SDKs for frontend, mobile and backend languages such as Python, Node, Go, Ruby and PHP. Data pipelines can filter and transform incoming events and forward them to external tools or webhooks, and a managed warehouse with a SQL editor supports querying the data directly.

PostHog offers a hosted cloud service with a free monthly tier, and the codebase can also be self-hosted using a Docker-based hobby deployment, which the project recommends for smaller volumes and does not support with guarantees.

Key features

  • 01Product and web analytics with event tracking, visualizations and SQL queries.
  • 02Session replay, heatmaps and AI-assisted analysis of recordings.
  • 03Feature flags and experiments with statistical impact measurement.
  • 04Error tracking, logs and tracing tied to product data.
  • 05Data pipelines that send events to 25+ tools or webhooks, plus a managed warehouse.
  • 06SDKs for JavaScript, React, Next.js, Python, Node, iOS, Android and more.

Use cases

  • Measuring user behavior and conversion for a web or mobile product.
  • Rolling out features gradually and running A/B tests on UI changes.
  • Diagnosing bugs by watching session replays alongside error reports.
  • Running self-hosted product analytics for small-scale projects.

Topics

FAQ

What is posthog?
Open-source product analytics platform combining event analytics, session replay, feature flags, experiments, error tracking, surveys and a data warehouse. PostHog is a product development platform that collects analytics, errors, session recordings and business data in one place, so developers and product teams can query that context and act on it. Core modules include product and web analytics, session replay and heatmaps, error tracking and logs, feature flags, experiments, surveys, and customer support tools.
Is posthog free to use? What license does it have?
posthog is open source under the Other license. Check the license terms before using it in commercial products.
Is posthog still maintained?
Actively maintained. The last commit to posthog was on Oct 19, 2026.
What can I use posthog for?
Measuring user behavior and conversion for a web or mobile product. Rolling out features gradually and running A/B tests on UI changes. Diagnosing bugs by watching session replays alongside error reports. Running self-hosted product analytics for small-scale projects.
Where can I get posthog?
The source code and installation instructions are on GitHub: https://github.com/PostHog/posthog

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects