Google Analytics has a build in filter that allows you to traffic from an IP address. It works fine when you have a static IP but when the IP is dynamic is does not work (If you are not familiar with how IP filtering works then I will write about it later). In this post I will explain how to exclude internal traffic using a method other than IP address
Use Custom Filter
Custom filter allows to exclude traffic by Cookie Content set via setVar.
How to exclude traffic by cookie:
- Let’s call this page do-not-track-me.html
- Visit http://www.yourdomian.com/do-not-track-me.html page from all computers and browsers that you would like to exclude the traffic from i.e. all your internal computers and browsers. (Once set, you can check this value by looking at _utmv cookie on your computer)
- Create an Exclude filter to remove data from visitors with this customer variable value:
Filter Type: Custom filter > Exclude
Filter Field: User Defined
Filter Pattern: Exclude
Case Sensitive: No
Note: If at any point you override the cookie or delete the cookie, your traffic will no longer be excluded.