Filtering a range of IP addresses from Google Analytics

In order to exclude false site visits from my Google Analytics, I have implemented a filter that excludes everything from an IP address range.

First, I check my IP address.  I used my “WAN” ip address since that’s what Google sees when I visit my site.  I don’t have a static IP so this will likely change over time.

Screenshot 2014-10-27 17.13.01

Now that I know my current IPaddress… what is the IP allocation range for ViaSat? Lets look at ARIN (American Registry for Internet Numbers), for the answer…

Screenshot 2014-10-27 17.46.29

This gives us a nice range of 131,072(2x256x256) IPv4 addresses.   I decided to just filter out anyone who is coming in over ViaSat’s ip range.  Sorry ViaSat visitors but your only being filtered from Analytics, so this isn’t such a big deal.

Log in to your Google Analytics account, then click on Admin.  Click “All Filters” then click “New Filter.”   Give it a name, then select “Custom” filter type.

Select “IP Address” in the Filter Field if it’s not already.  Then in the “filter Pattern” text box, you put a “regular expression” that suits the range you want.  In this case I am doing


This should exclude the range from to

I used the free IP address range regex generator from

Hope this helps someone.

One thought on “Filtering a range of IP addresses from Google Analytics

  1. Emil

    Skype has opened up its internet-based buyer beta for the world, soon after
    introducing it largely inside the United states and U.K. earlier this
    30 days. Skype for Internet also now works with Linux and Chromebook for immediate online messaging connection (no video
    and voice but, all those require a connect-in installment).

    The increase of the beta brings help for an extended list of spoken languages to aid bolster that
    overseas functionality


Leave a Reply

Your email address will not be published. Required fields are marked *