PostHog

Quick answer

PostHog is an open-source product analytics suite with event tracking, session replay, feature flags, A/B tests and surveys in one place. Most people start on the free cloud tier; a hobby self-host install is available for smaller projects. Best for: SaaS teams and app builders who want Mixpanel and Hotjar features in one tool.

PostHog at a glance
RepositoryPostHog/posthog
Websiteposthog.com
GitHub stars41,217
Forks3,746
Main languagePython
LicenseCustom license (check repo)
Commercial useLimited (check license)
Latest releasedesktop-v0.61.1144
Last commitNovember 28, 2026
Self-hostingFree cloud tier for small volumes. The self-hosted hobby install needs a Linux server with about 4 GB of memory and handles roughly 100k events a month.
Alternative toAmplitude, Hotjar, Mixpanel

GitHub stats last verified:

How to use PostHog

  1. Sign up free on PostHog Cloud, or run the hobby install below on a Linux server.
  2. Add the PostHog snippet or SDK to your site or app.
  3. Open Product analytics to see events and build funnels.
  4. Turn on session replay to watch how real users move through your pages.

Install command

# Self-hosted hobby install (Linux, about 4 GB memory)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"

PostHog system requirements

  • For self-hosting: a Linux server with Docker and about 4 GB of memory
Our take

For most sites PostHog Cloud's free tier beats self-hosting: the hobby install tops out around 100k events a month and comes with no support. Self-host only if data must stay on your server.

PostHog alternatives

PostHog FAQ

Is PostHog free?

PostHog Cloud has a free monthly allowance, including 1 million events. The open-source hobby install is free but unsupported.

Can I self-host PostHog?

Yes, with the hobby deploy on Linux and Docker. PostHog says it scales to about 100k events a month.

Is PostHog a Google Analytics alternative?

It can be, but it is built for product analytics. For simple website traffic, Umami or Plausible are lighter.