Alternatives / Google Analytics

Open-source alternatives to Google Analytics

3 genuinely open-source alternatives with 64.4K combined GitHub stars. The most starred is Umami, with 37K stars.

Why look for a Google Analytics alternative?

Google Analytics ties visitor data to Google's ad ecosystem, has faced ongoing GDPR scrutiny in the EU, and limits how far back you can query historical data. People look for alternatives when they need full data ownership, cookieless/GDPR-first tracking, or a simpler dashboard without GA4's complexity.

#1

Umami

Privacy-focused web analytics — simple, fast, no cookies.

MIT-licensed alternative to Google Analytics and Matomo. Real-time dashboard, event tracking, custom reports, and PostgreSQL/MySQL support.

37K7.2KMITSelf-hosted

Pricing: Free and open source (MIT), self-hosted; Umami Cloud offers a paid hosted plan.

  • Extremely lightweight and fast to self-host
  • Clean, simple real-time dashboard
  • Fewer advanced features than Matomo (no heatmaps or session replay)
  • Smaller plugin/integration ecosystem
#2

Matomo

Open web analytics — full data ownership, GDPR-compliant.

GPL-3.0 alternative to Google Analytics with heatmaps, session recording, A/B testing, and a tag manager. Self-host or matomo.cloud.

21.6K2.9KGPL-3.0Self-hosted

Pricing: Free and self-hosted (GPL-3.0); Matomo Cloud offers paid hosted plans.

  • Most feature-complete: heatmaps, session recording, A/B testing
  • Strong GDPR-compliance track record
  • Heavier to self-host and maintain than Umami
  • Interface is more complex, closer to GA4's learning curve
#3

OpenPanel

Cookieless web and product analytics — self-hostable Mixpanel alternative.

AGPL-3.0 analytics with funnels, cohorts, session replay, and 16 SDKs. ClickHouse-powered queries, GDPR-compliant tracking, and an identical cloud/self-hosted feature set.

5.9K372AGPL-3.0Self-hosted

Pricing: Free and open source (AGPL-3.0), self-hosted; a hosted cloud plan is also available.

  • Product analytics (funnels, cohorts, session replay), not just pageviews
  • Identical feature set on cloud vs. self-hosted
  • Newer project with a smaller community
  • ClickHouse dependency adds self-hosting complexity

Compare Google Analytics alternatives

ToolStarsLicenseSelf-hostedPricing
Umami37KMITYesFree and open source (MIT), self-hosted; Umami Cloud offers a paid hosted plan.
Matomo21.6KGPL-3.0YesFree and self-hosted (GPL-3.0); Matomo Cloud offers paid hosted plans.
OpenPanel5.9KAGPL-3.0YesFree and open source (AGPL-3.0), self-hosted; a hosted cloud plan is also available.

Which one should you choose?

Want a simple, privacy-first drop-in replacement

Closest like-for-like swap: a clean real-time dashboard with cookieless tracking.

Umami

Need full-featured web analytics (heatmaps, session recording)

Most feature-complete option, closest to GA4's depth plus GDPR compliance.

Matomo

Need product analytics, not just web traffic

Closer to Mixpanel than Google Analytics — funnels and cohorts for product usage.

OpenPanel