
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.
Google Analytics 4 by Google is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Google Analytics 4 is PostHog, with 41.2k GitHub stars. Other open-source alternatives to Google Analytics 4 are Umami, Plausible, Matomo and Rybbit (7 more below). Most Google Analytics 4 alternatives here are Web & Product Analytics tools, some are Marketing & Customer Engagement. The first 2 say in their own README or website that they can replace Google Analytics 4 (the quote is shown under each one); the other 10 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.
“With over 1.4 million websites across 190 countries, Matomo is now the leading open-source, GDPR-compliant alternative to Google Analytics 4.”
These projects don't call themselves a Google Analytics 4 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.
“Product analytics: Autocapture or manually instrument event-based analytics to understand user behavior.”

Privacy-first open-source web and product analytics platform
Umami tracks acquisition, behavior, conversion, retention, and revenue in one dashboard without cookies. You can self-host it or use Umami Cloud.
“Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.”

Privacy-first lightweight open-source website analytics
Plausible Analytics collects aggregated, cookie-free website statistics with a simple dashboard. It is available as managed cloud hosting or a self-hosted Community Edition.
“Plausible is a lightweight and open-source Google Analytics alternative. Your website data is 100% yours and the privacy of your visitors is respected.”

Cookieless open-source web and product analytics
Rybbit collects web and product analytics without cookies, offers session replay and funnel views, and can be used as a hosted service or on your own server.
“Rybbit is the modern open source and privacy friendly alternative to Google Analytics.”

Open-source web and product analytics platform
OpenPanel tracks website and product usage with funnels, cohorts, session replay, and dashboards. It offers cookieless GDPR-oriented tracking, optional self-hosting, and SDKs for web and mobile.
“Openpanel is an open-source web and product analytics platform that combines the power of Mixpanel with the ease of Plausible and one of the best Google Analytics replacements.”

Privacy-first product analytics and customer engagement platform
Countly collects and analyzes product data from mobile, web, desktop, and connected apps. Organizations can run it on their own infrastructure for analytics, engagement, and compliance.
“Countly is a privacy-first, AI-powered analytics and engagement platform for understanding and optimizing customer journeys across digital applications, from desktop and mobile to IoT and connected environments.”

Combined web analytics, uptime, and server status
Tianji bundles website analytics, uptime monitoring, and server status reporting in one open-source application for lightweight operations insight.
“All-in-One Insight Hub. Tianji = Website Analytics + Uptime Monitor + Server Status”

Self-hosted open-source web analytics server and tracker
Open Web Analytics collects traffic and behavior data from your sites through a JavaScript tracker and an OWA Server you install. It offers dashboards, APIs, and optional heatmaps and session recordings.
“Open Web Analytics is an open source alternative to commercial web analytics tools such as Google Analytics.”

Privacy-first open-source analytics for mobile, desktop, and web
Aptabase collects minimal, session-oriented usage data for apps through many SDKs. It offers a managed cloud service or hosting on your own servers with a built-in dashboard
“Aptabase is an open-source alternative to Firebase/Google Analytics, specifically built for Mobile, Desktop and Web apps.”

Privacy-first open-source web analytics with monitoring built in
Swetrix offers cookieless, GDPR-oriented website analytics with traffic stats, funnels, and custom events. You can use hosted Swetrix Cloud or deploy the Community Edition yourself with Docker.
“Swetrix is a privacy-first, cookieless Google Analytics alternative with real-time analytics, no sampling, and built-in performance & error monitoring.”
Yes. 12 open-source projects can replace Google Analytics 4, for example PostHog, Umami and Plausible. 2 of them say so in their own documentation; the other 10 do the same job.
PostHog (41.2k GitHub stars) is the most popular open-source alternative to Google Analytics 4 on GitHub. The best choice depends on your needs: compare them side by side, for example PostHog vs Umami.
All of the 12 projects listed here are free to use under an open-source license, with no license fee: 4 permissive (such as MIT), 8 copyleft (such as AGPL-3.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.