Google Analytics is a free website analytics software service offered by the Google. It tracks and monitors all the traffic comes to your site.
If you’ve not blocked your internal traffic (including your visits, your company staffs visits and on and on), you can't get an accurate traffic result from the Google Analytics. Not only traffic, it also affects your website’s conversation rate.
To fix this issue, you have to exclude internal traffic from Google Analytics. In this post, we will see the 2 simple ways to block internal traffic. Let’s get started.
Exclude Internal Traffic from Google Analytics
Method 1: No Google Analytics Browser Add-on
The add-on is the easiest method to block internal traffic. The No Google Analytics add-on ensures that Google Analytics is not tracking you. This add-on works with Firefox.
Alternatively, you can use this Google Analytics opt-out add-on to block your internal traffic. It is available for IE, Safari, Chrome, Opera and Firefox.
Remember these points:
- These add-ons blocks Analytics only in the browser in which it was installed. If you are using more than one browser, then you need to install this add-on to all the browsers.
- Also, it is important to note that these add-ons don't have the option to block Google Analytics for particular websites and it usually blocks Analytics for all the websites.
- If you want to send information to Google Analytics, disable the add-on.
Method 2: Setup A Google Analytics IP Filter
Steps to Exclude IP Address from Google Analytics
It is a common method to block internal traffic. Google supports filters for both ipv4 and ipv6.
If you want to block a static IP address, then you can block all the traffic coming from that IP address by using the following steps.
- Go to cmyip website to find out your public IP address. Copy it or make a note of your IP address.
- Go to Google Analytics.
- Click on "ADMIN" option.
- Under "ACCOUNT" section, click on “All Filters”.
- Click on "+ADD FILTER" button.
- Now, give a name to your filter. In this example, I’m giving the name as “My Internal traffic Block”.
- Choose the filter type “Predefined”.
- In the drop-down, choose Exclude, traffic from the IP addresses and that are equal to.
- In the IP address field, type or paste your IP address.
- Click on "Save" button.
That’s it. You’ve blocked internal traffic from a single IP address.
Steps to Exclude a Range of IP Address
If you have a 2-3 IP address to block from analytics, you can use the above method.
Generally, an organization have a sequential of IP address. If you want to block Analytics for an organization, you need to exclude a range of IP addresses.
You can use the following method to do that. Let's check it out.
- Click on ADMIN in Google Analytics.
- Under ACCOUNT section, click on “All Filters”.
- Click on "+ADD FILTER".
- In the filter name, provide a name like “my company internal traffic block”. You can give any name that you want.
- Choose filter type “Custom”.
- Under Exclude, you can see a Filter Field.
- In the Filter Field, choose the "IP Address" option.
- In the Filter Pattern, you’ve to enter a regular expression that matches all the IP addresses in the range.
- You can use this website to generate a regular expression for your IP range.
- Enter your first IP address, last IP address and click on “Generate RegEX”. It'll generate a regular expression. Enter the regular expression in the Filter Pattern.
- Click on "Save" button.