10 Alternatives to Google Analytics (Open Source)

Google Analytics is the most widely known website analytics platform in the world. However, due to the nature of its tracking system - it poses serious concerns for those who are comitted to user privacy. More and more website owners are switching to alternative solutions to ensure a all the tracking is done using privacy-first approach. And, in this article, we're going to explore the most popular Google Analytics alternatives that can also be self-hosted.

Open-Source Alternatives for Google Analytics

More than pointing fingers at the bad guys, there is a monumental shift happening where people are trying to deGoogle their lives. And while there is nothing wrong with Google as a service company, it does track a vast array of personal identification metrics about its users and uses those metrics to present targeted ads. It's nothing new.

And because many privacy-first web browsers now strictly block Google Analytics scripts, but also AdSense and other similar trackers - webmasters are left with no choice but to make a switch because using Google Analytics means the tracked data is not 100% accurate.

One way to solve this issue is by using privacy-friendly analytics platforms. And more specifically, open-source platforms. Working with an open-source project means you can also host it yourself. And, as such, meet the requirements of regulations such as GDPR.


Can you track website analytics without GDPR notice?

The answer is a resounding yes.

As long as you’re not collecting any personal data about the users visiting your site, you can actually completely avoid the need to add a “cookie notice” to your website or blog.

Is it really that important to know if the same person visited your website twice? Cookieless tracking means you aren’t building a portfolio on your readers. But, at least you don’t have to add interfering widgets or complex privacy policies to explain why you track users’ data.

And this is especially important if you go the self-hosted route. In that case, you won’t actually be storing any user data anywhere yourself, and cannot be held liable.

Does Open-Source mean it is free?

Even though all of the analytics solutions listed in this article are free if self-hosted, I have still added Pricing information for each one, since many of the platforms on this list do have a premium plan available.

While Open-Source does mean that the codebase is “free” to use, it doesn’t always translate into that in practical terms. For example, self-hosting and managing an open-source analytics solution can be quite tedious and time-consuming.

You have to:

  • Pay for the server costs, including managing the server.
  • Upkeep the project to the latest version.
  • Have some understanding of basic security precautions.

So, in many cases, it’s easier to pay a small subscription fee. I think if the project author(s) are doing exceptional work to provide a privacy-first tracking solution, they deserve a little reward for keeping the project alive. But that’s just my opinion.


Plausible

Plausible is probably the fastest-growing solution in this entire list. Their business model revolves around providing GDPR-compliant analytics solutions that are easy to use. And, their pricing reflects the market for small to medium-scale businesses. If you don’t want to pay, it is possible to deploy Plausible as a self-hosted solution using their open-sourced codebase.

It is released under the AGPLv3 license.

The back-end is built in Elixir, while on the front-end, you’ll be using a lightweight (~1kb) script written in traditional vanilla JavaScript.

As for the User Interface, it is as simple as it is pleasant to look at. You can actually have a real-time overview of their UI by visiting the Plausible Analytics page. It shows actual analytics data for everyone visiting Plausible’s website.

You’ll find data about top pages, referring sources, and bounce rates, but also have the ability to play with filters and create custom analytical reports.

Privacy-first mindset

Plausible’s entire infrastructure resides in the EU. Which is also beside the point. As a privacy-first company, Plausible is able to track website usage without needing to use cookies or other personal identification metrics. It is completely anonymous.

But my favorite thing has to be their approach to building a brand. Not only is their entire motto to protect users’ privacy, but they have also done a lot of work in terms of providing useful information. And I sincerely mean that.

Blog posts, FAQ pages, technical articles – it is very rare to see an indie company take such huge leaps in informing their customers and supporters. Even if this specific solution isn’t what you’re after, you must give the guys some credit for the dedication!

Pricing: Plausible is free if you self-host it. And the Pro plan starts at $9/month for 10k pageviews. You can trial the platform for 30 days at no charge.

Matomo

Matomo analytics

Matomo – formerly Piwik – is the heavy-hitter in this entire list. It is what one might call a complete analytics solution. And, the closest thing to competing with GA while remaining privacy-friendly. You have the option to use Matomo through their cloud platform, or use their stable release and go the self-hosted route.

With the back-end being built on PHP and MySQL – it is quite easy to integrate Matomo in traditional setups, including WordPress. On top of that, Matomo is able to collect and report on some really interesting stats and use cases. For example:

  • Check which search engines send you the most traffic, but also for which specific keywords.
  • Create detailed User Flow graphs with unlimited steps.
  • Track product purchases and general evolution.

As for staying GDPR compliant, Matomo provides all the necessary tools to ensure complete transparency. You can anonymize practically all data points about users coming to your site.

You can use a custom-built GDPR Manager to ensure that you’re always in compliance with certain rules and regulations. This is mostly relevant based on the features that you decide to use, and what kind of data you’d like to analyze.

Pricing: Matomo is free as long as you host it yourself. Their Cloud offering starts at $19 per month for up to 50,000 hits. Data is stored in Europe.

Independent Analytics (WordPress)

Independent Analytics – Google Analytics Alternative

Independent Analytics is simple to use GDPR-friendly analytics solution for WordPress users.

What makes this plugin so great is how simple it is to get it going. Just by grabbing the plugin from the WordPress repository - you can start tracking site visitors instantly.

There are no additional settings to change/optimize as Independent Analytics is built with a privacy-first mindset. Tracking is divided into 2 different sections: views and referrers. Views will track the pages that receive external traffic, and Referrers will showcase which websites or search engines are sending the most traffic.

A feature that I thought was quite unique to this plugin was the ability to apply filters. You can set specific filters to narrow your visitors' statistics down to a specific URL and a timeline.

Pricing: This is a free plugin for WordPress users. At this time, it doesn't look like there are any premium features, and if that changes I will update this accordingly.

PostHog

PostHog analytics

PostHog specializes in product analytics and specifically aims to solve the problem of needing to send event data to 3rd-parties. In other words, it is a complete in-house solution for understanding how customers use your websites or apps.

You have the option to host PostHog yourself, thus giving you complete control over how you store and process data. They have also done a lot of work in making PostHog easy to deploy in certain environments. Whether you work with Ruby, React, or Android – most of these use cases are covered with ready-to-go libraries.

Product-first approach

The interesting thing about PostHog is that it provides many tools to understand app usage. In fact, with a robust open-source community and strong capital backing on its side, PostHog is able to stand on its own feet against giants like Google, Mixpanel, Heap, and others.

Want to roll out new product features over time? PostHog provides a comprehensive Feature Flags solution to ensure you can roll back any time. Additionally, Feature Flags can be used to roll out new features to a specific subset of users.

Pricing: Open-source, so completely free if you don't mind managing it yourself. Their premium (Cloud) model offers up to 1,000,000 events at no charge.

Pirsch

Pirsch analytics

Pirsch is a lightweight and cookieless analytics solution you can plug directly into your website or application back-end. The project is written in Go and uses a fingerprinting technique to ensure the anonymity of incoming user data.

Pirsch generates a unique fingerprint for each visitor. The fingerprint is a hash of the visitors IP, User-Agent, the date, and a salt. The date guarantees that the data is separated by day, so visitors can only be tracked for up to one day.

The best part, of course, is that Pirsch can track visitors to your platform even if they have an Ad Blocker installed. Some reports say that brands can lose up to 30% of their total analytics accuracy because of ad blockers or other script-blocking browser extensions.

As for the data reported, Pirsch has a variety of statistics you can track. Most notably, custom conversion goals, events, and keywords that were used to land on your pages from Google Search. Their subscription model includes APIs, SDKs, and data export functionality.

In a recent announcement, Pirsch added the ability to import your existing Google Universal Analytics data into their platform.

Pricing: Pirsch can be trialed for 30 days at no cost. The premium pricing starts at $5 per month (billed annually) for 10,000 pageviews.

Umami

umami analytics

Umami is a strictly self-hosted analytics library that you can deploy in a matter of seconds.

The requirements are quite basic: MySQL or PostgreSQL for the database and Node.js for the backend. It can be easily deployed on a cheap DigitalOceal droplet or a similar VPS provider.

The author did a post-mortem on building the project. He actually mentions quite a few of the tools we have already seen but argues that they’re mostly paid tools. Whereas Umami is not, and has to be self-hosted always. Unsurprisingly, this approach has made Umami one of the hottest GitHub libraries in the open-source analytics realm.

One interesting feature of Umami is Profiles. You can create custom accounts and pass them on to your friends or clients, letting them use this solution on their own websites. Each profile has an entirely separate dashboard and reporting.

Pricing: The premium plan of Pirsch can be trialed for 30 days at no cost. Afterward, pricing starts at $5 per month (billed annually) for 10,000 pageviews. Self-hosting is free.

GoatCounter

GoatCounter analytics

GoatCounter delivers seamless tracking solutions for medium-sized businesses.

Martin Tournoij – the author – is keen on making it easy to monitor website analytics while remaining privacy-friendly. This is done by eliminating any potential tracking identifiers and letting you choose what you wish to track.

While the design might seem a little primitive compared to modern front-end possibilities, the technical side of GoatCounter is quite diverse. It’s also free for non-commercial projects, with a subscription model for more demanding websites.

Deploying the library yourself is, of course, free. WordPress and Gatsby users can enjoy pre-made integrations, so you can start tracking right off the bat.

Pricing: GoatCounter.com is currently offered for free for reasonable public usage. Running your personal website or small-to-medium business on it is fine, but sending millions of pageviews/day isn’t.

Ackee

Ackee analytics

Ackee is a Node.js analytics script that you can deploy instantly. You can comfortably use Docker or deploy it with cloud platforms like Heroku, Vercel, or Netlify.

It is fully integrated with GraphQL API – the actual analytics dashboard features UI elements as provided by the API. This, in turn, lets you build custom queries and parameters to collect data specific to your project needs.

You can turn on Detailed mode, which will track slightly more data, but Ackee recommends that you only enable Detailed in tandem with a privacy notice. Data such as browser type, and system os fall under the category of personal data.

Pricing: There's no premium model for Ackee, so the only option is to grab the repo from GitHub and host it yourself.

Counter

Counter analytics

Counter is a relatively new addition to the privacy-friendly analytics space. Built by a team of 3, Counter utilizes a pay-what-you-want approach to attract users to its service. At the time of writing this, they’re also looking for an investor – with a keen interest in pushing Counter further with development and maintenance.

The tech behind Counter is Go (Server, Static files) and Redis for data storage.

All in all, the project has some traction on GitHub, so it will be interesting to see if the authors can find success with it. I think there is plenty of room for genuine privacy-based projects that respect the user and their data.

Pricing: As mentioned above, outside of being Open-Source - Counter doesn't have a set price for its cloud service, and you can pay what you like.

Fugu

Fugu analytics

Fugu is the 2nd analytics solution for products on this list. Though, admittedly, it is a lot more simple. It is the perfect fit for developers and creators who want a simplified overview of how their app is being used in real time. In their own words,

Fugu has an event-based tracking system. Every time you want to track an event, you call the Fugu API from your app. In your request, you need to provide an event name and can optionally provide event properties.

Pricing: It is free to host yourself, and their SaaS pricing is a modest 9$/month.

Offen

Offen - Fair web analytics

Offen is a privacy-friendly Google Analytics alternative that emphasizes giving users full autonomy over how their data is collected and stored. This project is strictly self-hosted (written in Go and JavaScript) and implements some interesting concepts.

One of those concepts is the ability for visitors to see the data that you have on them. In other words, site visitors can see how many sessions they have had on the site and which pages they have seen. However, this is not possible unless the site visitor has given consent. And consent is one of the principles around which Offen analytics is built.

And even if a visitor does opt-in for consent, no sensitive data (IP, User-Agent, etc.) is being collected. In fact, almost all of the analytics data is End-To-End encrypted.

Pricing: Free. No signs of a premium model, the only option is to self-host it.

Google Analytics Alternatives: A Summary

There's a lot happening with Google Analytics these days. In particular, it has faced some pushback (legal woes?) from numerous EU countries who have deemed the platform not to be compliant with GDPR regulations. And it's pretty common knowledge that AdBlockers also explicitly block tracking scripts, which in the end contribute to inconsistent visitor statistics.

If you're worried about server costs when it comes to self-hosting, I've actually written an article before about popular hosting platforms that provide generous free plans. Many of the platforms listed in that post will let you self-host the analytics solutions mentioned throughout this article. In fact, many of them let you pull a GitHub repo directly and do all the hard work on your behalf.