# PostHog

PostHog is a self-hosted databases app. All-in-one product analytics platform.

Canonical page: https://ourlocalhost.com/app/7844/posthog

## Description

All-in-one product analytics platform. Track user behavior, run experiments, and make data-driven decisions to grow your product.

## Platform availability

Available on 4 of 10 platforms: Mac, Windows, Linux, Any server.

## Desktop and other devices

Mac, Windows, Linux.

## Health score

78/100 (Good), based on 4 of 4 factors.
- Maintained: 100 (last commit 6 days ago)
- Popular: 92 (41,180 GitHub stars)
- Easy to install: 55 (4 install platforms, install notes)
- Light to run: 30 (4 GB minimum RAM)

## Links

- Official website: https://posthog.com
- GitHub: https://github.com/PostHog/posthog
- desktop: https://github.com/PostHog/posthog/releases/latest

## Common questions

### How do I connect my app to a self-hosted PostHog instance?

Run the setup wizard in your project folder with `npx @posthog/wizard`, which walks you through connecting your app step by step. After it finishes, test that events show up, otherwise you won't know if the connection actually works.

### Why is my self-hosted PostHog broken after rebooting my server?

Users of the hobby installation script have reported PostHog showing a blank page after an Ubuntu reboot, indicating something in the deployment didn't come back up cleanly. Check that all PostHog services/containers restarted correctly after the reboot.

### Can I put self-hosted PostHog behind a reverse proxy with HTTPS?

Yes, PostHog can be run behind Caddy, which automatically obtains a free HTTPS certificate for your subdomain. Start Caddy from the folder containing your Caddyfile and allow a minute on first start while it requests the certificate.

### I hit bugs trying to self-host — is there a known working version?

A user who spent hours troubleshooting found that the latest working commit for self-hosting at the time was 579408c765dc6a33cba571a558b553c1fff771c5, per a GitHub issue on self-hosting bugs. Pinning to a known-good commit may help avoid broken releases.

## Alternatives

- Betterlytics: Betterlytics is an open-source, privacy-first web analytics platform that combines traffic analytics, session replay, error tracking, Core…
- GoAccess: GoAccess is an open-source, real-time web log analyzer and interactive viewer that runs in a *nix terminal or generates live, browser-frien…
- GoatCounter: GoatCounter is an open-source, privacy-friendly web analytics platform that tracks visits and page views without personal identifiers, givi…
- Google Analytics: Gain insights into website traffic with Advanced Segmentation, Custom Reporting, and data visualization.
- Litlyx: Track user behavior, custom events, and conversion funnels in real-time with a single line of code, all while maintaining GDPR compliance.
- Plausible Analytics: Plausible is a simple tool for tracking how many people visit your website.
- Prisme Analytics: Prisme is an open-source, privacy-friendly web analytics service for tracking your website or web application.

---
Source: Our Local Host (https://ourlocalhost.com/app/7844/posthog), the self-hosted and open-source app directory.
