P pikerones Active Member 236 2010 20 0 May 14, 2012 #1 hello, How to block own ip in New Google Analytics? Regards, pikerones
kuskka Active Member 456 2011 110 50 May 14, 2012 #2 You mean, in localhost? Try this: Code: <?php $whitelist = array('localhost', '127.0.0.1'); if(!in_array($_SERVER['HTTP_HOST'], $whitelist)){ ?> Google Analytics code <? } ?> This works for me in Wordpress. Not tested in somewhere else.
You mean, in localhost? Try this: Code: <?php $whitelist = array('localhost', '127.0.0.1'); if(!in_array($_SERVER['HTTP_HOST'], $whitelist)){ ?> Google Analytics code <? } ?> This works for me in Wordpress. Not tested in somewhere else.
P pikerones Active Member 236 2010 20 0 May 14, 2012 #3 bjskid I have wordpress blog, and I using New Google Analytics. I need that, Analitics show only other visitors results.
bjskid I have wordpress blog, and I using New Google Analytics. I need that, Analitics show only other visitors results.
D DrySand Member 19 2012 0 0 May 16, 2012 #4 You can try using the Google Analytics Opt-out Browser Add-on to check if this will help in your case.
You can try using the Google Analytics Opt-out Browser Add-on to check if this will help in your case.