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.


Hello
thanks for the article, i do the same steps, because i am using dynamic ip.
but can you please help me that how it will be redirect to google. i think there is no code which will redirect it to google. i use the same settings but not able to find the correct solution.
may be i am on wrong somewhere.
regards,