≡ Menu

How to add range of IP addresses in Google Analytics filter

If you have Google Analytics account you can set up google analytics ip filter to exclude your internal traffic. This ip filter will exclude the ip’s given. For example you can exclude ips of your own computer or many developers working on the site. If you have random ip addresses of your company, you can generate regular expression for your range of IP addresses.

For example you would have range of IP addresses like

10.18.2.70
10.18.2.56
10.18.2.58
10.18.2.34

Google has a nice tool to automatically generate the regular expression for your range of IP addresses.

First IP Address: 10.18.2.58
Last IP Address: 10.18.2.70

Here is the generated regular expression ^10\.18\.2\.(5[8-9]|6[0-9]|70)$. Just copy the generated regular expression in your google analytics IP filter(Filter Manager) to add range of ip addresses into google analytic filter.

Click the link to generate regular expression.

{ 0 comments… add one }

Leave a Comment