Skip to content
hostedsoftware
Submit

PostHog

Product analytics, session recording, feature flagging and a/b testing that you can self-host

Official website: posthog.com

Open source★ 41KMIT

What is PostHog?

PostHog: Product analytics, session recording, feature flagging and a/b testing that you can self-host. It is a free and open-source self-hosted analytics platform. It's written mainly in Python and released under the MIT license. The project has 41K stars on GitHub and 3.7K forks, and its last commit landed 12 days ago. Our maintenance health score is 99/100 (thriving).

PostHog is a comprehensive toolkit for product analytics, session recording, feature flagging, and A/B testing, all deployable on your own infrastructure. As an alternative to platforms like Mixpanel, Amplitude, Heap, HotJar, and Optimizely, PostHog offers the same powerful capabilities while allowing you to maintain full control over your data by self-hosting. With PostHog, you can gain deep insights into user behavior, record user sessions to understand interactions firsthand, manage feature releases with feature flagging, and optimize user experiences through A/B testing. It's a versatile solution for businesses seeking powerful analytics tools without compromising on privacy or data control.

Replace your SaaS with PostHog

PostHog is a popular self-hosted alternative to:

Compare PostHog

How to self-host PostHog

  1. 1. Get a server. A $5/month VPS or any always-on machine at home works for most single-user setups.
  2. 2. Install it. Follow the install guide in the repository (Python).
  3. 3. Add HTTPS. Put it behind Caddy, Traefik or Nginx Proxy Manager.
  4. 4. Back up. Schedule backups of its data volume and database — self-hosting means you own recovery too.

PostHog FAQ

What is PostHog?

PostHog: Product analytics, session recording, feature flagging and a/b testing that you can self-host. It is a free and open-source self-hosted analytics platform. It's written mainly in Python and released under the MIT license. The project has 41K stars on GitHub and 3.7K forks, and its last commit landed 12 days ago. Our maintenance health score is 99/100 (thriving).

Is PostHog free?

Yes. PostHog is open-source (MIT), so you can download, self-host and modify it for free. You only pay for the server you run it on.

How do I self-host PostHog?

Follow the installation guide in the project's repository. Supported platforms/stacks: Python. Put it behind a reverse proxy such as Caddy, Traefik or Nginx Proxy Manager for HTTPS, and back up its data volume regularly.

Is PostHog still maintained?

PostHog's last commit was 12 days ago and its latest release (desktop-v0.61.1086) shipped 13 days ago. Its health score is 99/100, which we rate as “Thriving”.

What are the best alternatives to PostHog?

Popular alternatives to PostHog include Redash (★ 28.9K), Superset (★ 75.6K), Metabase (★ 50.5K), Umami (★ 40.3K), Langfuse (★ 37.7K). Compare them side by side on this page.

Can PostHog replace Google Analytics?

Yes — PostHog is one of the most popular self-hosted alternatives to Google Analytics for web analytics. Self-hosting keeps your data on your own server and can save around $0/year versus a typical Google Analytics plan (free, paid with your visitors' data).

PostHog alternatives

All analytics platform →
  • Connect and query your data sources, build dashboards to visualize data and share them with your company.

    ★ 28.9KTypeScriptThriving
  • Modern data exploration and visualization platform.

    ★ 75.6KPythonThriving
  • Fast analytics with the friendly UX and integrated tooling to let your company explore data on their own.

    ★ 50.5KClojureThriving
  • Simple, fast, privacy-focused alternative to Google Analytics.

    ★ 40.3KTypeScriptThriving
  • Traces, evals, prompt management and metrics to debug and improve your LLM application.

    ★ 37.7KTypeScriptThriving
  • Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics.

    ★ 29.9KElixirThriving
  • Open Source Pricing & Packaging Infrastructure.

    ★ 1.8KPythonActive
  • Monitoring and tracking tool for Plex Media Server.

    ★ 6.6KPythonThriving
  • Real time mobile and web analytics, crash reporting and push notifications platform.

    ★ 5.9KJavaScriptThriving

More analytics platform apps like PostHog

  • Web Check — Comprehensive, on-demand open source intelligence for any website.
  • Netron — Visualizer for neural network and machine learning models.

Lists featuring PostHog