Data & Analytics
Web Analytics · Vendor profile
PostHog logo

PostHog

All-in-one open-source platform for product analytics, web analytics, session replay, and feature flags.

Founded 2020· San Francisco, CA· ~202 employees· posthog.com ↗
Last verified 2 days ago · 23 sources · Updated automatically
Founded
2020
Headquarters
San Francisco, CA
Employees
202
Free tier
Yes
Script size
66.7 KB

Overview

PostHog is an all-in-one, open-source platform that bundles product analytics, web analytics, session replay, and feature flags. Founded in 2020 and headquartered in San Francisco, it is MIT-licensed (with a separate proprietary enterprise directory) and can be self-hosted via Docker for free, or run on its managed cloud.

Its web analytics is deep rather than minimal: a real-time dashboard, custom event tracking, conversion goals, multi-step funnels with drop-off analysis, revenue and ecommerce tracking, and heatmaps all ship in the platform. It is built to scale, with a 1M-events-per-month free tier and no time-limited trial, plus a comprehensive REST API, raw event-level export, and 84 months of data retention on paid plans.

On privacy, PostHog claims GDPR compliance and offers EU data residency (Frankfurt) at no extra cost, plus an optional cookieless tracking mode. By default, though, it uses cookies and requires a consent banner; cookieless mode is opt-in, not the standard configuration.

Best for
  • Teams that want web analytics alongside product analytics, session replay, and feature flags in one platform rather than stitching tools together.
  • Engineering-led teams that want to self-host: the core is MIT-licensed, open source, and free to run on your own infrastructure via Docker.
  • Conversion- and revenue-focused sites needing funnels, goal tracking, and ecommerce/revenue analytics with Stripe-style monetary capture.
  • Buyers with EU compliance needs who want GDPR-compliant hosting in Frankfurt at no extra charge and an optional cookieless mode.
  • Data teams that want full ownership of their data through a REST API, raw event-level export, and GA migration tooling.
Less ideal for
  • Sites wanting privacy-by-default analytics: the default configuration uses cookies and requires a consent banner, with cookieless mode opt-in rather than standard.
  • WordPress users wanting plug-and-play setup — there is no official PostHog WordPress plugin, only manual snippet insertion or third-party community plugins.
  • Teams needing the lightest possible page weight: the initial tracking script is 66.7 KB, heavier than minimal trackers, though it lazy-loads further modules.
  • Organizations requiring indefinite data retention — paid plans cap event retention at 84 months and retention is not unlimited.

Pricing

Starting Monthly Price (USD)
Not tracked yet
Offers Free Tier
PostHog offers a perpetual free tier: 1M events/month at no cost, no credit card required, no expiry.
Free Trial Length (Days)
0 days · No free trial period — PostHog provides a perpetual free tier instead of a time-limited trial.
Entry Plan Pageview Limit (Monthly)
1M · Free tier includes 1M events/month. PostHog meters 'events' (not raw pageviews); each pageview fires as one event.
Entry Plan Website Limit
6 sites · 6 projects on the paid (pay-as-you-go) plan; PostHog tracks per project. Free plan includes 1 project.

Analytics capabilities

Real-Time Dashboard
PostHog's web analytics dashboard includes real-time data with live visitor activity.
Custom Event Tracking
PostHog supports custom event tracking via JS SDK (posthog.capture()), autocapture, and data attributes.
Goal / Conversion Tracking
Web analytics dashboard supports conversion goals: define a key event or action, see total/unique conversions and conversion rate.
Funnels
PostHog supports multi-step funnels with step-to-step drop-off analysis, breakdowns, and timings.
Ecommerce / Revenue Tracking
PostHog supports revenue tracking: capture monetary values on events, Stripe integration, currency conversion, MRR/ARPU dashboards.
Heatmaps
PostHog includes click heatmaps, scroll maps, and rage-click detection as part of the platform (toolbar overlay).

Privacy & compliance

Cookieless Tracking
PostHog supports cookieless tracking mode (cookieless_mode: always) where no persistent ID is stored in the browser.
Consent Banner Required
Default PostHog configuration uses cookies/localStorage and requires a consent banner. Cookieless mode removes the requirement but is not the default.
GDPR Compliant
PostHog explicitly claims GDPR compliance with EU Cloud hosting, DPA, cookieless option, and data anonymization.
EU Data Residency
PostHog Cloud EU stores all data in AWS eu-central-1 (Frankfurt, Germany). Available at no extra cost.

Data ownership & deployment

Open Source
PostHog is open source under MIT license (with a proprietary EE directory). A fully FOSS mirror (posthog-foss) is also published.
License
MIT · Core product is MIT-licensed; /ee directory with enterprise features uses a separate proprietary license.
Self-Hostable
PostHog supports self-hosting via Docker Compose with documented install guides. Free for self-hosters.
Data Retention (Months)
84 mo · Paid plans retain event data for 7 years (84 months); after 1 year data may move to cold storage (slower queries).
Unlimited Data Retention
Data retention is 7 years (84 months) on paid plans — finite, not unlimited.
Google Analytics Import
PostHog documents a GA-to-PostHog migration path via BigQuery export + Python SDK import, with official step-by-step docs.
Raw Data Export
PostHog supports raw event-level data export via Exports API, batch exports to S3/Postgres, and real-time pipeline destinations.

Platform & integrations

Has API
PostHog provides a comprehensive REST API for querying analytics data, dashboards, exports, and more.
Tracking Script Size (KB)
66.7 KB · Initial array.js payload; PostHog lazy-loads additional modules.
Official WordPress Plugin
No official PostHog-published WordPress plugin. PostHog docs describe manual snippet insertion; multiple third-party community plugins exist.
Email Reports
PostHog supports scheduled email subscriptions for dashboards and insights (weekly, monthly, or custom schedule).
Public Dashboard Sharing
PostHog supports fully public dashboard sharing via a shareable link, no account required to view. Embeddable via iframe.

Alternatives to PostHog

Clicky logo Clicky

Real-time, privacy-friendly web analytics with per-visitor tracking and heatmaps.

View profile
Cloudflare Web Analytics logo Cloudflare Web Analytics

Free, privacy-first web analytics that tracks page views without cookies or fingerprinting.

View profile
Fathom Analytics logo Fathom Analytics

Privacy-first, cookieless web analytics with a simple dashboard and forever data retention.

View profile

Sources · 23 verified references

posthog.com tracxn.com github.com us-assets.i.posthog.com

Affiliate disclosure. DecisionWire may earn a commission when you sign up through outbound links on this page, at no extra cost to you. Commissions never influence our data, scores, or rankings. Full disclosure.