How to Exclude Internal Traffic from Google Analytics
There are two ways to exclude internal traffic from Google Analytics
- Using IP address or range of IP addresses
- Using a custom variable and cookie when internal IP addresses are dynamic or not-known
To exclude traffic by IP address
There are two ways to do it
- Using a “Predefined” filter which has options to Exclude Traffic
- Using a Custom filter
1. Using a “Predefined” filter which has options to Exclude Traffic
Choose the options as shown below
- Predefined Filter
- Exclude
- Traffic from the IP Addresses
- That are equal to
- Enter the value of IP address
- Provide a name to filter and save it.
Note: In this case you need to enter the exact IP address else it won’t work. Since you cannot enter any partial IP address, only “that are equal to option”
If you really want to use “ Begins with”, “Contains” , “End With” or IP address range then go over to “Custom Filter” or click on IPV6 option that allows you to enter regular expressions.
2. Using Custom Filter
In the filter opinion, choose “Custom Filter” instead of predefined.
On Custom Filter tab, choose following options
- Exclude
- Visitor IP address
- Enter the IP you want to exclude or the range as specified by a Regular Expression
- Name your Filter and save it
Note: Google has a tool to help you build a regular expression if needed
http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=55572
To Exclude Traffic by custom variable or cookie
How to Exclude Internal Traffic from Google Analytics when Internal IP Address is Dynamic