PostHog logo

PostHog

All‑in‑one analytics, feature flags, and experiments platform

PostHog delivers product and web analytics, session replay, feature flagging, A/B testing, error tracking, surveys, and data pipelines in a single self‑hostable solution with a generous free tier.

PostHog banner

Overview

Overview

PostHog is a unified platform that gives product teams the ability to collect event‑based product analytics, monitor web traffic, replay user sessions, and run feature‑flagged experiments—all from a single interface. It supports autocapture as well as manual instrumentation, and includes built‑in error tracking, survey tools, and LLM analytics for AI‑driven applications.

Deployment

Teams can start instantly with PostHog Cloud (US or EU) which provides a free tier covering up to 1 M events and 5 k recordings per month. For organizations that need full data ownership, a one‑line Docker script deploys a hobby instance on Linux (recommended 4 GB RAM). The self‑hosted version scales to roughly 100 k events monthly, after which migration to the managed cloud is recommended. SDKs are available for JavaScript, React, Next.js, Vue, mobile frameworks, and major backend languages, making integration straightforward for developers.

Highlights

Unified product & web analytics with autocapture
Session replay and error tracking for rapid debugging
Feature flags and no‑code experiments for controlled rollouts
Built‑in data pipelines and LLM analytics for advanced insights

Pros

  • Comprehensive toolset reduces need for multiple vendors
  • Free tier covers substantial usage for early-stage products
  • Self‑hosting gives full data ownership
  • Extensive SDKs across front‑end, mobile, and backend

Considerations

  • Self‑hosted hobby deployment lacks official support
  • Scaling beyond 100k events may require cloud migration
  • Enterprise‑only features reside in paid edition
  • Initial setup can be complex for non‑technical teams

Managed products teams compare with

When teams consider PostHog, these hosted platforms usually appear on the same shortlist.

Amplitude logo

Amplitude

Product analytics platform for tracking user behavior and generating data-driven insights

Contentsquare logo

Contentsquare

Digital experience analytics for UX insights and conversion

Fathom Analytics logo

Fathom Analytics

Privacy-focused web analytics alternative to Google Analytics

Looking for a hosted option? These are the services engineering teams benchmark against before choosing open source.

Fit guide

Great for

  • Start‑ups that want a single analytics stack
  • Engineering teams needing in‑house data control
  • Product managers looking to run A/B tests without extra tools
  • Developers comfortable with Docker and SDK integration

Not ideal when

  • Organizations requiring 24/7 vendor support for self‑hosted instances
  • Very high‑volume SaaS needing >100k events per month on‑prem
  • Teams that only need basic page view stats
  • Companies that cannot allocate resources for Docker‑based deployment

How teams use it

Track user journeys and improve conversion

Identify drop‑off points with event funnels and session replays, then iterate features to boost sign‑up rates.

Roll out new UI components safely

Use feature flags and no‑code experiments to expose changes to targeted cohorts and measure impact before full release.

Monitor production errors in real time

Capture exceptions, receive alerts, and correlate with user sessions to accelerate bug resolution.

Analyze LLM usage costs and latency

Collect generation traces, latency, and token cost metrics to optimize AI‑powered features.

Tech snapshot

Python49%
TypeScript42%
Rust6%
JavaScript1%
C++1%
SCSS1%

Tags

analyticssession-replayai-analyticsproduct-analyticsreactweb-analyticspythondata-warehouseab-testingtypescriptjavascriptfeature-flagssurveysexperimentscdp

Frequently asked questions

Can I use PostHog without paying?

Yes, the free tier includes 1 M events, 5 k recordings, 1 M flag requests, 100 k exceptions, and 1 500 survey responses each month.

What deployment options are available?

You can sign up for PostHog Cloud (US or EU) or self‑host using the one‑line Docker hobby script.

Which languages are supported for instrumentation?

PostHog provides SDKs for JavaScript, React, Next.js, Vue, React Native, Android, iOS, Flutter, Python, Node, PHP, Ruby, and many others.

How does data export work?

Built‑in data pipelines let you stream events to 25+ third‑party tools or batch export to your data warehouse.

Is there a community or enterprise license?

The core repository is MIT‑licensed; additional enterprise features are in the `ee` directory under a separate license.

Project at a glance

Active
Stars
30,902
Watchers
30,902
Forks
2,214
Repo age5 years old
Last commit11 hours ago
Primary languagePython

Last synced 10 hours ago