
Matomo
Privacy-oriented web and app analytics platform
Matomo collects, visualizes, and analyzes traffic from websites and apps with emphasis on data ownership and privacy controls. You install it on your server or use Matomo Cloud.
Hotjar by Contentsquare is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Hotjar is PostHog, with 41.2k GitHub stars. Other open-source alternatives to Hotjar are Matomo. Most Hotjar alternatives here are Web & Product Analytics tools. The first 1 say in their own README or website that they can replace Hotjar (the quote is shown under each one); the other 1 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.

Privacy-oriented web and app analytics platform
Matomo collects, visualizes, and analyzes traffic from websites and apps with emphasis on data ownership and privacy controls. You install it on your server or use Matomo Cloud.
“Matomo Analytics is a great Hotjar alternative because it’s both a web analytics tool like Google Analytics and a UX tool like Hotjar, combined into one platform.”
These projects don't call themselves a Hotjar alternative, but two independent checks of their own description found they do the same main job.

Open-source product analytics and context layer for apps
PostHog ingests analytics, session replays, errors, logs, and related product data so teams and agents can query and act on it. It ships feature flags, experiments, surveys, and warehouse tooling in one platform.
“PostHog ingests and stores your analytics, errors, replays, and business data so you and your agents can query and act on it.”
Yes. 2 open-source projects can replace Hotjar, for example PostHog and Matomo. 1 of them says so in its own documentation; the other 1 do the same job.
PostHog (41.2k GitHub stars) is the most popular open-source alternative to Hotjar on GitHub. The best choice depends on your needs: compare them side by side, for example PostHog vs Matomo.
All of the 2 projects listed here are free to use under an open-source license, with no license fee: 1 permissive (such as MIT), 1 copyleft (such as GPL-3.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.