DEV Community

Cover image for Why you should remove Google Analytics from your site

Why you should remove Google Analytics from your site

Marko Saric on May 14, 2020

I'm working on a leaner and more transparent alternative to Google Analytics without all the privacy baggage. It's called Plausible Analytics and y...
Collapse
 
giacman profile image
Giacomo Vannucchi

So if you don't use cookies how do you report on new vs returning users? This is pretty important for a website. If you don't have the ability to look at a device behaviour over multiple sessions you are very limited in your understanding of customers and your product. As you mentioned Google analytics is free but uses your data. That's why we also have something called Google Search, Google Maps and so on for FREE. Finally, of you are a small businesses which wants to promote its brand, what's wrong with doing retargeting and leverage Google Ads ecosystem?

Collapse
 
markosaric profile image
Marko Saric

Like mentioned in the post, Plausible is not meant as a clone or a full blown replacement of Google Analytics. Some people are fine running GA and are happy to use Google Ads and the rest of the Google ecosystem. On the other hand, some would prefer to focus more on privacy of their visitors or on not having to get cookie / GDPR consent etc. Plausible is more meant for those use cases.

I've answered the new vs returning aspect in another reply.

Collapse
 
mikenikles profile image
Mike

I'm curious to learn about the new vs returning metric as well.

Collapse
 
markosaric profile image
Marko Saric

Here's how it's counted:

Instead of setting a cookie with a unique user ID, we simply count the number of unique IP addresses that accessed your website to determine the visitor count.

To enhance the visitor privacy, we don’t actually store the raw visitor IP address in our database or logs. We run it through a one-way hash function to scramble the raw IP addresses and make them impossible to recover.

To further enhance visitor privacy, we add the website domain to their IP hash. This means that the same user will never have the same IP hash on two different websites. If we didn’t do this, the hash would effectively act like a third-party (cross-domain) cookie.

Network Address Translation allows many unique users to share the same public IP address. For this reason we also add the User-Agent string to the hash, although we don’t store the actual User-Agent string.

There's some more detail on what we collect and how we do it in our data policy.

Thread Thread
 
ngxson profile image
Xuan Son Nguyen • Edited

But what if their IP are changed? For example, they can change between different wifi/mobile networks. And on mobile network, some carriers actually assign a different IP if the user disconnect from mobile network for a long time.

Thread Thread
 
markosaric profile image
Marko Saric

If they change the IP they will be counted as another visitor. Similar as in if someone blocks/deletes their cookies, they become new visitors too. Not having to show a cookie banner is a worthwhile tradeoff for many sites though.

Collapse
 
steveblue profile image
Stephen Belovarich

Can we just go back to hit counters already?

Collapse
 
markosaric profile image
Marko Saric

perhaps we should release one next? :)

Collapse
 
moopet profile image
Ben Sinclair

How does it compare to Matomo/Piwik?

Collapse
 
markosaric profile image
Marko Saric

Matomo/Piwik is great if you're looking for a more ethical full-blown Google Analytics replacement with pretty much all the same stuff that GA tracks too. So compared to Plausible it has a heavier script (22.8 KB vs 1.4 KB) and it is a bit more difficult to understand for people not too experienced with website statistics.

Plausible is built with simplicity, speed and privacy in mind so you're set out of the box. No need for extra configuration to make it compliant with regulations and no need to spend time exploring all the different reports and metrics. We just show few of the key metrics on one single page.

Collapse
 
jimmy19742 profile image
jimmy19742

I can confirm that Matomo is a great alternative of GA but not the best one I ve encountered by now . For example it creates 16 dB tables in WP.

Thread Thread
 
markosaric profile image
Marko Saric

Yeah, it is not a very lightweight solution as it tracks pretty much the same amount of data as GA does.

Collapse
 
moopet profile image
Ben Sinclair

My take after looking at the website is that it has simplicity of use going for it (like Piwik did in the early days) but it's not as open because of the lack of support for self-hosting.

Thread Thread
 
markosaric profile image
Marko Saric

Yeah we're open source and the full code is on Github but we haven't made it ready for easy self-hosting yet. The focus was on building the product first and we're a small team. There's some progress on the official Docker container with several community members involved so hopefully easy self-hosting will be ready too soon! Here's the thread github.com/plausible-insights/plau...

Collapse
 
voravatsal profile image
voravatsal

Hi Marko,

You have mentioned some crucial points, in contrast, to use of Google Analytics. But, I think the major reason for websites to use GA as the primary tracking tool is that it's free.

Spending thousands on website design, maintenance, tools, plugins, servers and other services, GA seems apt.

Plausible seems nice, however, it's paid after the trial, which makes me reconsider GA. Just a simple observation.

Alongside, personal data via GA is already with Google, as most of the users, and all Android users compulsorily require a Google email id.

Then taking into consideration the size of code, yes, it is a major issue, but, at the same time, GTM allows me to fire multiple tags using a single external file. If I'm configuring Plausible in GTM, then the file shall still trigger. If I cannot configure Plausible in GTM, then two files (scripts) are triggered, one for GTM consisting of remarketing and other behavioural tracking tools like Hotjar tags and the other one is Plausible, wouldn't this take longer?

And, as you mentioned that Plausible is neither a clone not replacement, it means that I need to track my website using GA + Plausible. Won't this take longer? Considering, another 1.4Kb shall be loaded?

For Privacy Policy, it's a mandate in every country to inform the users about privacy policy and request their consent. Failing to do so, E-Commerce websites, cannot sell goods/services worth a penny, I'm sure you are aware of it. So, there is not a major issue in adding a section for Privacy Policy related to GA cookies. Also, trusting No. 1 Tech Company is simple for people. Without trust from people, how can someone be No. 1?

Also, what is the effect of Plausible as a render-blocking resource (JS) for WordPress? Since 30% of the web uses WordPress.

The multiple formats are used for different reasons, and it's good that the data is centralized. SEO works on organic & referral traffic, Web development needs to account for OS, Browser, and Mobile users. UI/UX takes care of the Devices. Content looks after the user behaviour, and sales can be measures in terms of money. So, ultimately, all the data is useful for someone or another. Plus, the UI/UX of the GA dashboard is really simple. Alongside, other Google Tools like Ads and Search Console are integrated. Does Plausible provide these metrics? If it does, then it shall be really helpful.

Collapse
 
markosaric profile image
Marko Saric

Yeah, like mentioned in the post, Plausible is not meant as a clone or a full blown replacement of Google Analytics and Google's ecosystem. Some people want to run GA and want full integration with Google Ads, advertising and the rest of the Google ecosystem. Plausible may not be the best solution for those use cases.

We designed it more for use cases where people want to de-Google-ify their sites, or where people want more privacy to their visitors or people don't want to deal with all those cookies and GDPR consent prompts etc.

There is no issue with WordPress websites but we do want to provide an easy to use plugin for WordPress. It would be easier to implement Plausible that way than having to insert our one line script into your site manually. It's on our roadmap.

Collapse
 
codingfix1 profile image
codingfix

Hi. Frankly, i didny appreciate to not find a pricing oage on the website. I can dubscribe for a 30 days trial but... Then? What happens? Why don't you tell it clearly? Why do I have to use Google to find the the startin plan is 6€/month?

Collapse
 
markosaric profile image
Marko Saric

We have a link to pricing in our top navigation bar and it is also prominently displayed on our home page.

Collapse
 
codingfix1 profile image
codingfix

Sorry, you're totally right. I apoligize for my comment. I shouldn't post anything at night when my eyes are too tired even to see what's cleared displayed :(

Thread Thread
 
markosaric profile image
Marko Saric

No worries, it happens!

Collapse
 
akostadinov profile image
Aleksandar Kostadinov

So it can't be used for free as an OSS project?

Collapse
 
markosaric profile image
Marko Saric

The full code is on our Github page so you can take it and run it github.com/plausible-insights/plau...

We're also in the process of developing an easy self-hosted solution via Docker container. You can track the progress (and perhaps even help get us there faster) here github.com/plausible-insights/plau...

Collapse
 
patzistar profile image
Patrick Schadler

Youβ€˜re right. Personally I just want to know how many visits I got for each site, where they come from and how long they stayed. However, I used GA because it was (and probably is) the gold standard and β€žmust haveβ€œ tool for analytics. I may reconsider this in the near future - thanks for your post πŸ™

Collapse
 
markosaric profile image
Marko Saric

you're welcome!

Collapse
 
aleksandarperc profile image
aleksandarPerc

I can't say i would agree with most of what is written here...

  • It’s owned by Google - yes it is. There is always an owner behind every product. That does not mean it is bad..
  • It’s a bloated script that affects your site speed - with today's speeds 50kb is not a problem at all, even in remote areas with poor networks.
  • It’s overkill for the majority of site owners - there are a few basic metrics that are used in many ways, but essentially it collects when a user lands on a page, the exact time, the time it switched a page, some information about your os and that is pretty much it.
  • It requires an extensive privacy policy - if you are not connecting the data with an actual name or other PII it doesn't have anything to do with GDPR.
  • It worsens your user experience due to the annoying prompts - as any other tool that needs cookies to work. CRM? Marketing automation? ...
  • It’s blocked by many so the data is not very accurate - I don't recollect that adblockers block GA. I have AdBlock and GA cookies are stored normally (just checked). Even if it did block it would be per user, so the data would be missing that group.. but it still would be good data.
  • It’s abused by referral spam that skews the data - that can happen to any tracking software, but it is easy to detect them and exclude. I think it is mostly happening automatically.
  • It’s a proprietary product so you need to put your trust in Google - well yes, bu on the other hand, Google is constantly controlled and has much to lose...

I ma not saying Google is all sunshine and rainbows... there might be better alternatives for some users.

Collapse
 
piusrichter profile image
Pius Richter

@markosaric thanks for the good summary of the reasons against Google Analytics. I don't agree 100% with every single one of them, but I'd like to make a point to that blocking GA thing. If you compare, for example, figures from the Acquisitions report with other sources (like a bill from a social media service - which hopefully is correct) you recognize that a bunch of sessions are missing in GA. Of course it depends on the type of your audience if they use blockers or not. Anyway, Aleksandar, some blockers support blocking GA already by their basic setting. Moz.com once ran a test about how much traffic you might lose for which reason. That was in 2018. According to the marketing team in my company the β€œdark traffic” is continuously growing.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

What do you think of Cloudflare's analytics?

Safe? Need to ask for cookies? Enough information?

These are what they provide, BTW.

cloudflare navbar

Collapse
 
ozzythegiant profile image
Oziel Perez

What if a client wants to use Google Ads to boost website traffic? How would I go about tracking marketing campaigns such as those? I'm asking because analytics offers integration with that other platform. I would assume that maybe ad urls could just use query params and Plausible could just track custom events if a visitor came from a Google Ad or social media?

Collapse
 
markosaric profile image
Marko Saric

We do have goal / event tracking. But like mentioned in the post, Plausible is not meant as a clone or a full blown replacement of Google Analytics and Google's ecosystem. Some people want to run GA and want full integration with Google Ads, remarketing and the rest of the Google ecosystem. Plausible may not be the best solution for those use cases. We designed it more for use cases where people want to de-Google-ify their sites, or where people want more privacy to their visitors or people don't want to deal with all those cookies and GDPR consent prompts etc.

Collapse
 
v6 profile image
πŸ¦„N BπŸ›‘ • Edited

I'd love to one day see an information & trust brokering protocol for which tools like these can implement clients.

But this is a statement in a conversation that may one day lead to that.

I'm glad to see it's not all a blocking vs collecting arms race.

Thanks, Mr. Saric.

Collapse
 
markosaric profile image
Marko Saric

thank you!

Collapse
 
web3coach profile image
Lukas Lukac

Great article Marko! I setup my page web3.coach last month without GA (or any other) tracking system and I couldn't be happier. Focusing on page views is often a bad practice when growing a site anyway bc it doesn't tell you much but there are few use-cases where anonymous, privacy respecting tracking would help. I will check your system later in the afternoon :)

Collapse
 
markosaric profile image
Marko Saric

Thank you!

Collapse
 
bokub profile image
Boris K

Your Plausible analytics are quite similar to Fathom analytics. What's the difference?

Collapse
 
markosaric profile image
Marko Saric

We're both starting from the concept of simple metrics but I assume we will diverge more and more as time goes on and as we focus on our different interests and priorities. We have a public roadmap where you can get a good idea on what's coming up and where we're heading next.

Plausible is open source so one of the goals is to try and get an easy self-hosted Docker container. There's work going on now and you can follow the progress here.

Collapse
 
bokub profile image
Boris K

All right

And for you information, Fathom is open source too, and quite easy to self-host

Thread Thread
 
markosaric profile image
Marko Saric

I thought they closed their product and only had an older, less powerful version as open source?

Collapse
 
omarsteam profile image
omar-steam

The demo looks promising. I run a pro wrestling blog as a side thing and I use Google Analytics to check the growth that my site gets on a weekly basis.

I might check out Plausible (great name, by the way). Great read though!

Collapse
 
markosaric profile image
Marko Saric

Sounds good, thank you!

Collapse
 
mrnijimbere profile image
Ronny Nijimbere

'Friends don’t let friends use Google Analytics' - Now thats Genius

Collapse
 
markosaric profile image
Marko Saric

Glad you like it! :)

Collapse
 
ducntq profile image
Duc Nguyen

I'm so glad that I bumped into your article. I'm, too, building a website, and (as a developer) cookieless is my main focus. Definitely will give your product a try.

Collapse
 
markosaric profile image
Marko Saric

That's good to hear, thanks!

Collapse
 
trippysid profile image
Sid

This makes me feel we should do away with everything. Cz every business makes money out of you and every interaction with any other person is a privacy risk.

Collapse
 
larsejaas profile image
Lars Ejaas

Thanks for doing this. The world needs a viable alternative!

Collapse
 
markosaric profile image
Marko Saric

Thank you :)