PostHog
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.
| Repository | PostHog/posthog |
|---|---|
| Website | posthog.com |
| GitHub stars | 41,217 |
| Forks | 3,746 |
| Main language | Python |
| License | Custom license (check repo) |
| Commercial use | Limited (check license) |
| Latest release | desktop-v0.61.1144 |
| Last commit | November 28, 2026 |
| Self-hosting | Free 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 to | Amplitude, Hotjar, Mixpanel |
GitHub stats last verified:
How to use PostHog
- Sign up free on PostHog Cloud, or run the hobby install below on a Linux server.
- Add the PostHog snippet or SDK to your site or app.
- Open Product analytics to see events and build funnels.
- 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
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.
