Google Analytics is the most widely used free Website Analytics software service offered by the Google. It tracks and monitors all the traffic comes to your site.
It is important to note that 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. It also affects your website’s conversation rate.
To fix this issue, you’ve to exclude internal traffic from Google Analytics. There are many ways to exclude internal traffic. 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 No Google Analytics browser add-on block Google Analytics. This add-on ensures that Google Analytics is not tracking you. This is the easiest method to block internal traffic. This add-on works with firefox. You can download it from here for firefox.
Alternatively, you can use this Google Analytics opt-out browser add-on to block your internal traffic. You can download it from here. It is available for IE, safari, chrome, opera and firefox.
This add-on blocks Analytics in the browser in which it was installed. If you are using more than one browser to browse your site, then you need to add 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 these add-ons.
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 dropdowns, 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, organizations 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 block a range of IP address for an Organization.
- 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.
- 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.