I want to prevent Google Analytics from recording the activity that I have on my own website to avoid contaminating the data it collects, for this I would like to put a filter that excludes the IP address of my router so that all my devices are excluded even though I know it is not the best option because it would not register the data of others who share my same IP on the internet, but the system that uses cookies is not feasible in my case. Other options that do not include cookies are welcome.
I have noticed that there is a filter that Google Analytics gives us by default with this objective but I don't know how to configure it, it is the one shown in the following image:
It seems unintuitive to me, after testing and reading the documentation I have not been able to find a way to make it work. It keeps recording the activity of my devices.
The easiest way is to use the Block Yourself from Analytics Chrome extension
How to use Block Yourself from Analytics ?
Open the extension settings, go to the website list and add all your websites to the list. You can use
example.com
orwww.example.com
for exact match or use wildcards like* example.com
to matchexample.com
all your subdomains. Note that if you put a dot between wildchar (*) and domain name, it will only match subdomains and not your simple domain name.The extension is available for Chrome, Edge, Firefox, and Opera.
The other way is through Google Analytics , making a filter.
Exclude
from the Select Filter Type drop-down menu.Check out:
Creating the IP address filter in Google Analytics
The way I do to apply google filters is as follows:
Enter Manage go to View click on Filters and select Add Filter you can configure the options as follows:
Name of the filter I always put the ip that I have current and the other options I leave them like this:
IP address you must put the current IP, I put the name of the filter equal to the IP many times the electrical service fails and when the electricity service returns the IP changes, or else you should contract a static IP.