How To Use Google Analytics View Filters To Exclude Single & Multiple IPs
We already know that google analytics is specially developed for tracking external visitors apart from you and people under your company. Excluding internal traffic is one of the essential steps in configuring google analytics.
This article will help you exclude single and multiple IPs from your analytics account using multiple methods.
How to Exclude A single IP Address
1) Select the view for which you want to apply the filter and then go to filters and click add filter
2) Enter the filter name as “exclude internal traffic”
3) Select the filter type as predefined
4) Enter your IP address as displayed in the image below
An alternate option to exclude single IP is to install Da Vinci Tools chrome extension once you install, open your Google Analytics account. You will then see a switch on the top right of your account along with your tracking ID.
How to Exclude Multiple IP addresses
Everything is similar to how we did for a single IP address above except, you have to enter regex for multiple IP addresses. Let’s say we have two exclude two different IP addresses 192.168.0.1 and 192.168.1.1. The regex would be
Start with ‘^’ then precede each dot with a backslash(\) and put ‘$’ at the end of ip and separate multiple IPs with a pipe(|). The easiest way to write the regex for multiple IPs is first to write down the IPs together
2) Add ‘^’ before the first IP address ( ^192.168.0.119184.108.40.206)
3) Add pipeline between both IP addresses (^192.168.0.1|192.168.1.1)
4) Add backslash just before every dot (^192\.168\.0\.1|192\.168\.1\.1)
5) add ‘$’ sign at the end of each IP address (^192\.168\.0\.1$|192\.168\.1\.1$)
You can add multiple IPs using the above regex.
How to exclude dynamic IP addresses
© 2020 www.focusoncode.com