Stop Google Analytics from tracking you under 2 minutes

Search for a command to run...

No comments yet. Be the first to comment.
If you have worked with the Solana Wallet Adapter before, you will know that it is very easy to set up a Connect Wallet button with a decent modal. However, customization is pretty limited. We can only add some custom CSS hence changing the styles bu...

And CandyPay QR Codes which people can scan to claim the NFT in under 15 seconds

As developers, most of us use the terminal to interact with our computers for many tasks as we find it more productive. We are familiar with commands like ls, cd, cat, grep, and find. These are primarily pre-installed on our computers and mostly get ...

Most of us use version control systems (mostly git) for our projects but the git CLI is unproductive. We often need to run multiple commands and got to type more characters. Well, what if I told you there are tools that can improve this significantl...

Authentication in Web3 is extremely easy but supporting all the wallets and making a nice UI can be painful and time-consuming. Thankfully, there are many libraries which makes this extremely easy as well. Today we are going to be looking at adding R...

Many sites use analytics tools to measure their site insights. Google Analytics is an extremely popular tool in this sector as it is free (though there is a paid version for enterprise use but the free one is what most people use).
Google is an ads company and 80% of its revenue is generated by targeting ads to the right users. For this Google needs to know a lot about one and Google Analytics plays a vital role as it is widely used allowing Google to track more and more users around the web. One might also want to keep their privacy intact and not want the website owner to know about their activity on the site. Website owners usually use analytics to measure views, engagement, traffic source, etc. If you don't want the website owner to know this, you need to stop their analytics service from tracking you.
Well, there is a solution to this issue, that is, opting out from Google Analytics.
How do you do that?
There is a browser extension that one can install to opt-out of Google Analytics.
So who made this?
Surprisingly it is Google who has made this browser extension!!!
So how do you get it installed?
The extension is surprisingly available for not only Chrome but also Firefox, Microsoft Edge, and Safari so it is just a matter of downloading it from their respective extension stores.
For Google Chrome, Microsoft Edge, or any chromium based browser (Brave, Vivaldi, etc.), you can download it from the chrome web store - https://chrome.google.com/webstore/detail/empty-title/fllaojicojecljbmefodhfapmkghcbnh?hl=en-GB
I couldn't find how to download it for Safari though as I don't have a mac. If any of you find it, feel free to leave a comment with the link in the comments section.
For Firefox you need to go to the official site for the extension and click the blue button.

This will redirect you to the EULA page for the extension from where you can accept the EULA and then you will be prompted to download a .xpi (a compressed installation archive used by various Mozilla applications. Learn more about it here) file. Once you have downloaded it, just open the file (you can open it from the file explorer or through the downloads menu from within Firefox itself. Now you will be prompted with a popup in the browser asking you to add the extension. Click the Add button to install the extension.

That is it!!! You have now successfully added the Google Analytics opt-out browser extension and have opted out of Google from tracking you around the internet.

You might ask me if this really works and in my experience and testing, it does. My blog on Hashnode uses Google Analytics and hence it was the perfect candidate for me to test upon. I installed the extension and visited my blog. The real-time users count in my Google Analytics dashboard saw no increase but when I visited the same site from a guest window, the real-time users count increased by 1 showing the extension does indeed work.
There are two very important things to keep in mind -
I have also noticed that the official site for the extension looks quite outdated and even the chrome web store page seems to not have been updated in a while. The extension is also using a really old version of the Google logo. Despite this, the extension has been updated recently, that is, the 26th of January 2021. Now that is still over 6 months ago but there is no real reason to update such an extension unless there is a change in how Google Analytics opt-out works so it seems fine to me.

That is it for this tutorial!!!