Google Analytics is a vital tool in understanding how people behave on your website, especially if you’re new to web analytics. Its comprehensive view of your traffic, how your audience has been acquired, where they go on your site and how long they spend on there makes it an easy-to-use and relatively jargon-free service.Google Analytics is a vital tool in understanding how people behave on your website, especially if you're new to web analytics.Click To Tweet
If you’re a small business, and you don’t have very high traffic volumes, then you need to make sure that your Google Analytics reflect external activity on your site as accurately as possible. If your analytics are taking yours and/or your colleagues’ interactions into account, then they are likely to be misleading. However, it’s very straightforward to apply a filter to exclude multiple internal IP addresses from Google Analytics.
The process in which you do this ultimately depends on the number of IP addresses you wish to exclude. If your website is accessed internally from a very small number of IP addresses – this could be anywhere from two to five IPs – then you can set up a single custom filter to exclude them all, for which there are simple instructions below.
Any amount higher than that and you will probably want to create an individual filter for each IP address. This may seem more time-consuming in the short term, but it will be more beneficial in the long term. For example, if one of your internal IP addresses changes, then you’ll only have to modify the corresponding filter. If that IP address is part of a string of 20-50 addresses, then you may have to rewrite the filter altogether.
This blog also contains a quick guide to excluding a single IP address from Google Analytics. There are other regular expressions available to apply, but the following two processes are a great way to start:
Filter a Single IP Address from Google Analytics
1. Log into Google Analytics and head to the ‘Admin’ section of your account.
2. Under the ‘View’ column, click ‘Filters’ (make sure that you have selected the right reporting view if you have more than one).
3. Click ‘Add Filter’.
4. Give your filter an appropriate name (in this instance, something like ‘internal IP address’ is more than sufficient).
5. In the ‘Select filter type’ field, select ‘Exclude’.
6. In the ‘Select source or destination’ field, select ‘traffic from the IP addresses’.
7. In the ‘Select expression’ field, select ‘that are equal to’.
8. Copy and paste your public IP address in the ‘IP address’ field and click ‘Save’. Your filter will then automatically be applied to the assigned reporting view.
Exclude Multiple IP Addresses from Google Analytics With a Custom Filter
1-3. See instructions for filtering a single IP address.
4. Change the filter type to ‘Custom’.
5. Under ‘Exclude’ > ‘Filter Field’, select ‘IP address’.
6. In the ‘Filter Pattern’ field, start entering your internal IP addresses, and once you’re done click ‘Save’. The filter will again be automatically applied to the reporting view
IMPORTANT: Each full stop must be preceded with a backslash (\) so that they are registered as full stops, and each IP address needs to be separated by a vertical bar, or ‘pipe’ (|).
Do you have any further Google Analytics questions? Let us know in the comments, or click below to speak with one of our specialists and find out more about our Google Analytics training courses.