Best Open-Source Hotjar Alternatives (2026)
4 self-hostable, open-source projects that replace Hotjar — without session-capped paid plans. Each is scored for how hard it is to self-host, with one-click deploy options where they exist.
Hotjar's paid plans cap how many sessions you can capture, so high-traffic sites either sample heavily or pay up as volume grows. Self-hosting removes the session cap and keeps heatmap and replay data, which often contains visitor PII, on infrastructure you control.
Our picks at a glance
At difficulty 3/5 it is the lowest-effort option here and deploys with Docker Compose.
It combines session replay with product analytics, feature flags, and A/B testing, covering far more than Hotjar's replay-and-heatmap scope.
It offers official managed cloud hosting and the broadest replay-plus-analytics feature set among the managed options.
Compare all 4 alternatives
Tap a column header to sort| Project | Deploy | Managed | License | ||||
|---|---|---|---|---|---|---|---|
PostHog Python | 35k ★ | 5/5 Advanced | Docker Compose Kubernetes +1 | MIT | 3 days ago | Repo | |
Matomo PHP | 22k ★ | 4/5 Involved | Docker Docker Compose +1 | GPL-3.0 | 3 days ago | Repo | |
Rybbit TypeScript | 12k ★ | 3/5 Moderate | Docker Compose Manual | AGPL-3.0 | 3 days ago | Repo | |
OpenReplay TypeScript | 12k ★ | 5/5 Advanced | Kubernetes Docker Compose +1 | Apache-2.0 | 5 days ago | Repo |
What to look for: Hotjar's core is heatmaps plus session replay, so confirm a replacement actually records sessions rather than only aggregating pageviews. Replay is storage- and compute-heavy, so weigh deployment difficulty and whether a managed tier is available before committing to running it yourself.
The alternatives, reviewed
- #1
PostHogSelf-host: AdvancedAll-in-one product analytics, session replay, feature flags, and A/B testing
35k Python MIT 3 days agoHow it compares to Hotjar
- Self-hosting the full ClickHouse + Kafka + Postgres + Redis stack is heavy; the project actively steers smaller users toward PostHog Cloud.
- Some enterprise features live under a separate proprietary
eelicense, not pure MIT. - The all-in-one breadth means it is more complex to operate than a focused tool like Mixpanel.
- #2
MatomoSelf-host: InvolvedThe leading open-source, privacy-friendly web analytics platform
22k PHP GPL-3.0 3 days agoHow it compares to Hotjar
- Heatmaps, session recordings, funnels, and A/B testing are paid premium plugins, not in the free core.
- The PHP codebase feels dated and the UI is heavier/slower than modern lightweight tools.
- Real-time reporting and advanced product-analytics (cohorts, retention) are weaker than Mixpanel/Amplitude.
- #3
RybbitSelf-host: ModerateOpen-source, privacy-friendly Google Analytics alternative built for clarity
12k TypeScript AGPL-3.0 3 days agoHow it compares to Hotjar
- Young project; feature depth and stability still trail established tools.
- Product-analytics capabilities (cohorts, retention) are less mature than Mixpanel/Amplitude.
- Smaller ecosystem and fewer integrations than Google Analytics.
- #4
OpenReplaySelf-host: AdvancedSelf-hosted session replay and product analytics for web apps
12k TypeScript Apache-2.0 5 days agoHow it compares to Hotjar
- Self-hosting requires a Kubernetes-based multi-service stack; resource-hungry and complex to operate.
- Product-analytics features (funnels, cohorts) are less mature than Amplitude/Mixpanel.
- No traditional aggregate web-analytics dashboard; it is session-centric.
The verdict
For the closest Hotjar replacement with session replay, PostHog or OpenReplay are the strongest picks. If you mainly want privacy-friendly traffic analytics without the heavy replay stack, Rybbit is the easiest to stand up at difficulty 3/5.
Hotjar alternatives — frequently asked questions
What is the best open-source alternative to Hotjar?
For Hotjar's replay-and-heatmap use case, PostHog and OpenReplay both provide session replay. PostHog adds analytics, flags, and experiments; OpenReplay is replay-first for web apps.
Is there a free self-hosted Hotjar alternative?
Yes. PostHog (MIT), Matomo (GPL-3.0), Rybbit (AGPL-3.0), and OpenReplay (Apache-2.0) are all free to self-host via Docker or Kubernetes.
Which Hotjar alternative is easiest to self-host?
Rybbit, at difficulty 3/5, is the easiest and runs on Docker Compose. Matomo is 4/5; PostHog and OpenReplay are both 5/5 due to their multi-service stacks.
Which of these actually record session replays like Hotjar?
PostHog and OpenReplay include session replay. Matomo and Rybbit are primarily privacy-friendly web analytics, so they cover heatmap-style traffic insight but not full replay in the same way.
Do these offer managed hosting instead of self-hosting?
Yes, PostHog, Matomo, Rybbit, and OpenReplay all offer an official managed hosting option, so you can use a hosted plan and switch to self-hosting for full data ownership later.
Which is the most privacy-friendly Hotjar alternative?
Matomo and Rybbit both position themselves as privacy-friendly analytics. Self-hosting any of these keeps heatmap and replay data on your own servers instead of Hotjar's cloud.