Four open-source tools cover most reasons to leave Google Analytics. Plausible and Umami give simple, cookieless website stats; Matomo is the closest to GA's depth and can import your GA history; PostHog adds product analytics, session replay and feature flags. All four can be self-hosted, so your visitor data stays with you instead of Google.
Short answer
For simple, cookieless traffic stats, Plausible (AGPL-3.0, self-hostable with Docker) or Umami (MIT). For GA-style depth (goals, segments, e-commerce reports) and an import of your GA data, Matomo (GPL-3.0). For product analytics, replay and feature flags, PostHog (MIT core, with a documented self-hosted deployment). Most marketing sites need the first group, not PostHog.
I am Manoj, at MithTech, a team of Frappe specialists in Bengaluru; our small, senior team of 35 uses AI throughout delivery. We move organisations off rented SaaS onto tools they own, across ERP, commerce and analytics, and we have run these tools on real infrastructure. The most common mistake is picking a tool for depth you will never use. Most teams need Plausible's simplicity, not PostHog's breadth.
Which open-source tool replaces Google Analytics?
It depends on the question you need answered.
| Plausible | AGPL-3.0 | Yes (Community Edition) | Simple, privacy-first website stats | None |
| Umami | MIT | Yes | Simple stats, developer-friendly | None |
| Matomo | GPL-3.0 | Yes (On-Premise) | GA-style depth, importing GA history | Optional; can run cookieless |
| PostHog | MIT core | Yes (Docker Compose) | Product analytics, replay, flags | Configurable |
| Google Analytics 4 | Proprietary, free tier | No | Ad-integrated reporting at scale | Yes (uses identifiers) |
Plausible is the direct replacement for classic GA on a marketing site: one script, one clean dashboard. Matomo is the one to pick if your team relies on GA's deeper reports. PostHog is a broader product-analytics platform that happens to include web analytics; it is compared with Mixpanel and Amplitude in a separate guide. For the wider move off rented tools, see the directory of open-source SaaS alternatives.
Why do businesses replace Google Analytics?
Three reasons: privacy rules, data ownership and complexity. GA4 sends visitor data to Google, relies on identifiers that usually need consent under GDPR, and buries simple questions in a dense interface. A self-hosted tool keeps the data on your servers and shows the few numbers you check daily.
The privacy pressure is real. Several European data-protection authorities ruled against GA over EU-to-US data transfers in 2022, before the 2023 EU–US Data Privacy Framework changed that picture. India's Digital Personal Data Protection Act also sets consent and processing duties. A cookieless, self-hosted tool reduces the surface because no third party receives the data. Many teams also simply find GA4 harder to read than the Universal Analytics it replaced.
Plausible, Matomo or PostHog: which fits you?
Pick the smallest tool that answers your real questions.
8 rows · click a column to sort
| Simple traffic dashboard | Excellent | Good | Good |
| Goals and conversions | Yes | Yes, detailed | Yes |
| Funnels | Cloud-only in Plausible | Paid plugin on-premise | Yes |
| Import GA history | Plausible: GA4 import with Google API keys | Yes, Google Analytics importer | No |
| Session replay | No | Paid plugin | Yes |
| Feature flags and A/B tests | No | A/B testing as a paid plugin | Yes |
| Setup effort | Very low | Moderate (PHP + MySQL) | Moderate to high |
| Server size | Small | Small to medium | Large (PostHog suggests 4 vCPU, 16 GB RAM) |
If you cannot yet name a product-analytics question you need answered, start with Plausible or Umami; you can add PostHog later. If your marketing team lives in GA's reports and wants to keep its history, look at Matomo first.
What do you gain and lose against GA4?
You gain data ownership, a lighter script, a dashboard people actually read and, with Plausible or Umami, no cookies. You lose Google's free, large managed scale and its native integration with Google Ads.
| You gain | You lose |
|---|---|
| Ownership of visitor data | Native Google Ads conversion signals |
| No cookies (Plausible, Umami) | Google's free managed scale |
| A lighter, faster script | The largest pool of tutorials |
| A dashboard built for people | Some very granular GA4 reports |
For most small and mid-sized businesses the daily questions (where traffic comes from, which pages convert, which campaign worked) are answered by all of these tools. Teams whose paid advertising relies on Google Ads' conversion signals should think hard: that integration is difficult to replace. If that is you, keep GA4 for ads and run a private tool alongside for reporting.
Do these tools avoid cookie banners and DPDP issues?
Plausible and Umami set no cookies and store no personal data by default; Plausible doesn't store IP addresses. That is why many teams run them without a consent banner. Matomo can be configured to run without cookies. PostHog captures more, such as session replays and per-user events, so masking, retention and consent need careful setup.
Self-hosting any of them also keeps data in a jurisdiction you choose: host in India or the EU and the visitor data stays there. Check each vendor's privacy pages for current terms.
How do you self-host these tools?
All four run on a Linux server with Docker (Matomo also installs as a plain PHP app). You need a small server, a domain and basic command-line comfort, plus time for updates and backups.
Provision a server
A small Linux VPS is enough for Plausible, Umami or Matomo. PostHog needs much more: PostHog suggests about 4 vCPU and 16 GB RAM.
Deploy
Use each project's official setup: Plausible Community Edition and PostHog with Docker Compose, Umami with Docker or Node.js, Matomo with Docker or a PHP and MySQL install. For a step-by-step Plausible install, see how to self-host Plausible.
Add your domain and HTTPS
Point a subdomain at the server and serve it over HTTPS, so analytics traffic is encrypted and first-party.
Install the tracking snippet
Add the tool's script to your site: a single small tag for Plausible and Umami, Matomo's JavaScript tracker, or PostHog's SDK.
Plan updates and backups
Schedule updates and database backups. PostHog offers no support for self-hosted instances and recommends its cloud for most users, so weigh that early.
If you would rather not run servers, each vendor offers a managed cloud. Prices vary by plan; check each vendor's page.
Who should choose which?
Most small business and marketing sites: Plausible or Umami. Teams that want GA-level reports and their GA history: Matomo. Product and SaaS teams who need to see how users move through an app: PostHog. Heavy Google Ads advertisers: keep GA4 for ad reporting and add a private tool alongside.
The tools are not mutually exclusive. Owning your analytics is the same instinct as owning your ERP, which is why we run open source across the Frappe and ERPNext stack too. How we set analytics up for clients is on the analytics and BI page.
Frequently asked questions
+Which open-source tool can replace Google Analytics?
Plausible or Umami for simple, cookieless website stats; Matomo for GA-style depth and importing GA history; PostHog when you also need product analytics, session replay and feature flags. Plausible is AGPL-3.0, Umami MIT, Matomo GPL-3.0 and PostHog MIT outside its ee/ directory, and all can be self-hosted.
+Is Plausible really free?
The self-hosted Community Edition is AGPL-3.0 and free to run; you pay for the server. Plausible also sells a managed cloud with some features CE doesn't include; check its pricing page.
+Does an open-source analytics tool need a cookie-consent banner?
Plausible and Umami set no cookies and collect no personal data by default, which removes the usual trigger for a banner. Matomo can run cookieless. PostHog captures more, so it depends on how you configure it. Confirm your own obligations with your legal adviser.
+Can I bring my Google Analytics history across?
Matomo has a Google Analytics importer. Plausible can import past GA4 data; on a self-hosted instance that needs your own Google API credentials. Umami and PostHog start counting from the day you install them, so export what you need from GA first.
+Is Plausible or PostHog better for a small business website?
Plausible, usually: it is light, cookieless, and shows the traffic and conversion numbers you check daily with almost no setup. PostHog is better when you run a product or app and need to analyse in-app behaviour, replays and feature flags.
+Will switching from GA4 hurt my SEO or ad tracking?
Not SEO: search rankings don't depend on which analytics tool you use. It can affect ad tracking if you rely on GA4's Google Ads integration, which these tools don't replicate. A common approach is to keep GA4 for Google Ads conversions and run a private tool alongside.
Comments & ratings
No comments yet. Start a new discussion.
Manoj · Published on 20 July 2026
Worked with us? Leave a Google review