September 29, 201115 yr Ok, apart from the obvious 'filter IP', is there any other options to block my visits on my sites from showing in Google Analytics as my IP often changes.
September 29, 201115 yr i would blackhole google analytics by adding the following to your host file 127.0.0.1 www.google-analytics.com to find your hosts file here is a list for each OS http://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system
September 29, 201115 yr If it's Wordpress, there's a fair few Google Analytics plugins out there that let you ignore specific users when tracking: http://wordpress.org/extend/plugins/google-analytics-for-wordpress/
October 2, 201115 yr Ok, apart from the obvious 'filter IP', is there any other options to block my visits on my sites from showing in Google Analytics as my IP often changes. Couldnt you just have your server side script detect a special cookie you set on your computer and not output the js for GA?
October 2, 201115 yr Author Couldnt you just have your server side script detect a special cookie you set on your computer and not output the js for GA? Feel free to elaborate....
October 10, 201115 yr Feel free to elaborate.... test_cookie.php <? if($_COOKIE['blocktracking']==1){ echo "not outputting code for tracking. (blocking cookie found)"; } else{ echo "outputting code for tracking. create blocking cookie? <a href='set_cookie.php'>Here</a>"; } ?> set_cookie.php <? setcookie("blocktracking", 1,time()+60*60*24*30*999); header("Location: test_cookie.php"); ?> demo: http://websetgo.net/test_cookie.php
Create an account or sign in to comment