Open source alternatives to Hotjar
Hotjar shows how visitors use a page through heatmaps, session recordings and surveys. It is being merged into Contentsquare, and these open source tools offer heatmaps and session replay you can run yourself.
3 alternatives, sorted by GitHub stars as of 6 December 2026. Reviewed .
-
PostHog
All-in-one product platform with product and web analytics, session replay, feature flags and experiments
-
Umami
MIT-licensed, cookie-free analytics on Node.js and PostgreSQL, from pageviews to funnels and replays
-
Open Web Analytics
Long-running PHP and MySQL analytics server with heatmaps, session recordings and ecommerce tracking
Compare at a glance
| App | License | Cookies | Self-hosting needs | Hosted version | Last commit |
|---|---|---|---|---|---|
| Open Web Analytics | GPL-2.0-or-later | Yes, by default | PHP 8.2, MySQL or MariaDB, Apache | No | 3 days ago |
| PostHog | MIT* | Yes, by default | PostgreSQL, ClickHouse, Kafka, Redis, Zookeeper, MinIO | Yes | today |
| Umami | MIT | None by default | PostgreSQL | Yes | 3 days ago |
An asterisk marks a license with exceptions, such as proprietary directories or paid plugins; see the app page.
What Hotjar does
Hotjar is a behavior analytics and feedback tool. Heatmaps show clicks, scroll depth and ignored content; session recordings show how visitors move through pages and where they struggle; surveys and interview tools collect visitors’ opinions. Hotjar describes itself as a complement to analytics tools such as Google Analytics or Mixpanel rather than a replacement, and it has been owned by Contentsquare since 2021.
Why people look for an alternative
- The move to Contentsquare. Hotjar Ltd. merged into the Contentsquare Group on 1 July 2025, and Contentsquare says new Hotjar accounts can no longer be created. Existing customers are being moved in phases to Contentsquare accounts; after the switch, Hotjar stops collecting data, stays read-only for 12 months and then deletes the account and its data. Prices may change with the move.
- Recordings stored by a third party. Visitor sessions are captured and stored by the vendor. Suppression settings are applied before data is sent and cannot be applied to recordings already made.
- Cookies and consent. The tracking code sets first-party cookies and uses browser storage, and Hotjar leaves the consent question to each site’s own legal advice, so most EU sites load it only after consent.
- Retention. Recordings and heatmap data are deleted automatically after the retention period of your plan and cannot be recovered.
- One more script. Because Hotjar sits alongside the main analytics tool, many teams would rather have recordings and heatmaps in the analytics tool they already run.
What to compare in an alternative
- Heatmaps and replay together. Whether click, scroll and movement heatmaps and session replay come in the same tool as your traffic or product analytics.
- Privacy controls. Default masking of inputs and text, excluding specific elements, and whether masking happens in the browser before upload.
- Retention and storage. How long recordings are kept, what share of sessions is captured, and whether you can store them on your own server.
- Surveys and funnels. If you use Hotjar’s surveys or funnels, check that the alternative covers them.
- Exporting your Hotjar data. Plan the export of recordings and survey responses before your Hotjar account is closed.
Which one to choose
PostHog is the closest replacement, with session replay, heatmaps, clickmaps, scrollmaps, surveys and funnels in one product, plus product analytics. Its self-hosted version is intended for small volumes, so most teams use the hosted service.
If you mainly need recordings and heatmaps on your own server, two tools cover that core of Hotjar’s job without surveys. Umami added session replays with text and input masking in version 3.1 and click and scroll heatmaps in version 3.2; both use a separate recorder script, heatmaps sample a share of sessions by default, and replays are kept for 30 days. It is MIT-licensed and needs only PostgreSQL besides the app. Open Web Analytics is an older PHP and MySQL analytics server whose open source code includes click heatmaps and Domstream session recordings next to standard traffic reports.
The web analytics guide compares the analytics side of these tools.
Other apps in the same category. They are not listed as Hotjar alternatives, but one may suit you if you need only part of what it does.
-
Lightweight, cookieless web analytics with every key metric on one dashboard page
- Stars
- 30k
- Last commit
- 2 days ago
- License
- AGPL-3.0-or-later
-
Full-featured PHP analytics platform, formerly Piwik, and the closest open source match to Google Analytics
- Stars
- 22.1k
- Last commit
- today
- License
- GPL-3.0-or-later
-
Cookieless Google Analytics replacement with funnels, retention, session replay and error tracking
- Stars
- 13.4k
- Last commit
- 4 days ago
- License
- AGPL-3.0
-
Web and product analytics in one tool: funnels, cohorts, user profiles, session replay and A/B tests
- Stars
- 7.4k
- Last commit
- yesterday
- License
- AGPL-3.0
-
Deliberately simple web statistics in a single Go binary, running on SQLite or PostgreSQL
- Stars
- 6.2k
- Last commit
- 2 months ago
- License
- EUPL-1.2
-
Analytics, crash reporting and push notifications for mobile, web and desktop apps, self-hosted
- Stars
- 5.9k
- Last commit
- yesterday
- License
- AGPL-3.0
Hotjar is a product of Contentsquare. OpenSourcePicks is not affiliated with Contentsquare or with the projects listed. More tools in Web Analytics.