Back to services

PostHog

Product analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel/Amplitude/Heap/HotJar/Optimizely).

View alternatives to PostHog
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Overview

PostHog describes itself as "your product's context layer." It collects and stores analytics data, errors, session replays and business data, which both users and AI agents can query directly and act on. According to its website, more than 500,000 teams use PostHog, with customers including Y Combinator, Supabase, ElevenLabs, ResearchGate and Hasura.

Key features

  • Product analytics: event tracking, funnels, user paths and other analysis tools
  • Web analytics: website traffic statistics
  • Session replay: records and replays user actions so you can spot dead clicks, quick backs, long stalls and similar problems; also includes Replay Vision and heatmaps
  • Error tracking: groups exceptions and stack traces into issues
  • Feature flags and experiments: gradual rollouts and A/B testing, including no-code web experiments
  • Surveys: collect user feedback inside your product
  • Context data warehouse: built-in data warehouse, SQL editor, BI and data visualization, with more than 120 external sources and destinations such as Stripe, Postgres and HubSpot
  • CDP and workflows: customer data pipelines, user activity streams, APIs and webhooks
  • Logs, tracing and AI observability: monitor your applications and LLM calls

AI and "autopilot" capabilities

  • PostHog AI: ask questions in natural language, and it combines PostHog data with external data from Google Ads, Stripe, GitHub and more. For example, it can investigate why sign-ups are up while paid conversions are down.
  • PostHog MCP: connects to Claude, ChatGPT, Cursor, VS Code, Codex and other tools, so you can query product data right from your editor without switching to a browser. The install command is npx @posthog/wizard mcp add.
  • Self-driving Inbox: gathers signals from error tracking, session replays, support tickets and sources such as Zendesk, Linear and GitHub Issues, then groups them into research reports and ranks them by priority. It can also suggest improvements and generate Pull Requests, leaving a person to decide whether to ship.
  • There is also a PostHog Desktop client.

Target users

PostHog is aimed mainly at product engineers, startup teams, product managers and growth teams, and is especially well suited to teams that want one platform to replace several analytics, monitoring and experimentation tools.

Pricing

Pricing is usage-based, and every product has a generous monthly free tier. The website says 97% of users use PostHog for free, and no credit card is required to sign up. The free allowances and unit prices for the main products are as follows:

ProductMonthly free allowancePrice beyond the free tier (decreases with volume)
Product analytics1 million events$0.00005/event
Session replay5,000 recordings$0.005/recording
Feature flags1 million requests$0.0001/request
Data warehouse1 million rows$0.000015/row

Deployment and setup

  • Cloud: choose a data center in the US (Virginia) or the EU (Frankfurt).
  • Quick setup: after signing up, you can use the install wizard to integrate automatically, or run npx -y @posthog/wizard@latest in a terminal.
  • SDKs and API: SDKs for many platforms and complete API documentation.
  • Self-hosting: PostHog's code is open source and the company also offers a self-hosting option, but it currently promotes its cloud service. Please refer to the official documentation for the specific self-hosting requirements.

Notable characteristics

  • One platform covers analytics, replay, errors, flags, experiments, surveys and a data warehouse, so your data is naturally connected
  • The company is highly transparent and has published its employee handbook, sales handbook and company strategy
  • Frequent updates, which you can follow in the changelog
  • Support staff all have engineering backgrounds
  • Transparent pricing, with no need to contact sales