Alternative Method For Hiding From Google Analytics
If you do not have a wordpress website and you want to hide your visits from your website then use this code.
[php]<?php
$myip=$_SERVER[‘REMOTE_ADDR’];
if($myip!=’your.ip.address’){
echo ‘Paste your Google Analytics code here’;
}else{
echo ”;
}
?>[/php]
You could paste the above code into your header.php in your theme.
Hide Your Analytics Tracking Code From Your IP Address was last modified: June 12th, 2017 by
Summary
Article Name
Hide Your Analytics Tracking Code From Your IP Address
Description
You may want to hide your Google analytics tracking code from your IP address. Why? So you can get more accurate data from the analytics program. If you track your own visits that is not giving you the full picture of your visits. Here is how you do it.
Author
Maximus McCullough
Publisher
A1WEBSITEPRO LLC
Logo
A1WEBSITEPRO Social Media Pages
Here are my social media pages, lets hook up!