9 Best Open Source Alternatives to Google Analytics

9 open source alternatives100% OSI-approved licensesUpdated June 2026

Google Analytics is the default way the web measures itself, and the free tier is genuinely powerful: funnels, audiences, attribution, all wired into Google's ad stack. The cost shows up elsewhere. Your visitor data lives on Google's servers and feeds an advertising business, which is what forces the cookie banner onto every page and turns GA4 into a GDPR conversation with your legal team - and once traffic gets serious, the reports quietly start sampling, so the numbers you act on are estimates, not counts.

The open source alternatives below keep the analytics on infrastructure you run. Pageviews and events land in a database you own, so there is nothing to consent away and no third party reselling the behavior of your audience. Several measure visits without cookies at all, which retires the banner entirely, and because you hold the raw hits, the totals are exact rather than sampled no matter how large the site gets.

Umami logo

1.Umami

37.2kMITTypeScript Self-host
Umami screenshot

Umami is a simple, fast, privacy-focused web analytics platform and an open source alternative to Google Analytics, Mixpanel, and Amplitude. It tracks site traffic without cookies, so there is no cookie banner to add, and the dashboard stays clean and easy to read.

  • Cookie-free web analytics with no consent banner
  • Simple, fast single-page dashboard
  • Self-hosted or Umami Cloud
  • Runs on Node.js with a PostgreSQL database
PostHog logo

2.PostHog

35kOtherPython Self-host
PostHog screenshot

PostHog is an open source, all-in-one platform for building products. It brings product analytics, web analytics, session replay, error tracking, feature flags, experiments, surveys, a data warehouse, data pipelines, AI observability, and workflows together in one stack.

  • Autocapture or manually instrument event-based product analytics
  • Web analytics for traffic, sessions, conversion, web vitals, and revenue
  • Session replay and error tracking with alerts
  • Feature flags, cohorts, experiments, and no-code experiment setup
Plausible Analytics logo

3.Plausible Analytics

27.1kAGPL-3.0Elixir Self-host
Plausible Analytics screenshot

Plausible Analytics tracks website traffic, goals, and conversions without cookies or persistent identifiers. It measures traffic rather than individuals, stores no personal data or IP addresses, and is compliant with GDPR, CCPA, and PECR. All key insights sit on a single page with no menus to navigate.

  • Cookie-free tracking with no persistent identifiers
  • Goals, conversions, revenue attribution, and funnels
  • SPAs support with pushState and hash-based routing
  • Email and Slack reports with traffic spike notifications
Matomo logo

4.Matomo

21.6kGPL-3.0PHP Self-host
Matomo screenshot

Matomo is a free/libre web analytics platform for tracking websites and apps. It positions itself as the leading open-source alternative to Google Analytics, with full data ownership and privacy built in, and is already used on more than a million websites.

  • Track websites and apps with a JavaScript tag
  • Real-time analytics reports
  • Customizable dashboard with drag and drop widgets
  • Matomo Analytics API
Rybbit logo

5.Rybbit

12.3kAGPL-3.0TypeScript Self-host
Rybbit screenshot

Rybbit is open source web and product analytics that tracks site and product usage without cookies, a privacy-friendly alternative to Google Analytics that takes a couple of minutes to set up. The dashboard covers the core metrics: sessions, unique users, pageviews, bounce rate, and session duration.

  • Sessions, unique users, pageviews, bounce rate, and session duration
  • Session replays and real-time dashboard
  • Custom events with JSON properties
  • Goals, retention, user journeys, and funnels
OpenPanel logo

6.OpenPanel

5.9kAGPL-3.0TypeScript Self-host
OpenPanel screenshot

OpenPanel is an open-source web and product analytics platform that combines the power of Mixpanel with the ease of Plausible, positioned as an alternative to Mixpanel and Google Analytics. It brings analytics, alerts, and dashboards into one place, with optional self-hosting.

  • Funnels, cohorts, user profiles, and session history
  • Session replay with privacy controls
  • Real-time dashboards and interactive charts
  • A/B testing and event-based alerts
GoatCounter logo

7.GoatCounter

5.8kOtherGo Self-host
GoatCounter screenshot

GoatCounter is an open source web analytics platform available as a free hosted service or a self-hosted app. It gives site owners meaningful, privacy-friendly traffic statistics without tracking visitors through unique identifiers, and it is lightweight enough to add only about 3.5K to a page.

  • Single script tag, image tracker, middleware, or logfile import
  • Unique visits without cookies using a non-identifiable hash
  • Tracks browser, location, screen size, referrers, and campaigns
  • SQLite and PostgreSQL support
Ackee logo

8.Ackee

4.7kMITJavaScript Self-host
Ackee screenshot

Ackee is a self-hosted analytics tool for websites that runs on your own server. It analyzes traffic and provides statistics in a minimal interface for people who do not want a full marketing analytics platform or unique-user tracking. Tracked data is kept anonymized, and no cookies are required.

  • Anonymized website traffic statistics
  • No cookies or unique user tracking
  • Event tracking for clicks and subscriptions
  • GraphQL API for building custom tools
Swetrix logo

9.Swetrix

1kAGPL-3.0TypeScript Self-host
Swetrix screenshot

Swetrix is a privacy-focused, cookieless web analytics platform that tracks site traffic while storing all data anonymized. It is GDPR-compliant by design, uses no cross-device tracking, and gives a real-time dashboard with no sampling.

  • Cookieless web analytics with anonymized data
  • Real-time dashboard with no sampling
  • Session analytics, user flows, and funnels
  • Performance monitoring and client-side error tracking

Related alternatives