Jul

30

How to filter your dynamic IP in Google Analytics


Since I’ve changed my Internet connection to RDS fiberlink, my computer gets a dynamic IP. So, I was challenged to find the solution at dynamic IP filtering in Google analytics.

Challenged is too much, as the solution is already offered by Google here.

To make the story short, you have to create a new empty page that should contain the below Java code:

Visit that page. And create a customized filter as below:

If you need more help, leave a comment at this post or contact me by email.

Update:

The nice part was when I realized that I implemented Google Analytics new code :) . So, what I wrote above wasn’t right. Especially thanks to the fact that the function was deprecated. Anyway, thanks to Madalin Dinu, I did it. For Google Analytics asynchronous code, the function is _setCustomVar and it can be called as below:

Function could be called in the body of the file, too.

| More