Hide Your Analytics Tracking Code From Your IP Address

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.

 

Only cool people share!

Hide Your Analytics Tracking Code From Your IP Address was last modified: June 12th, 2017 by Maximus Mccullough
Summary
Hide Your Analytics Tracking Code From Your IP Address
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
Publisher
A1WEBSITEPRO LLC
Logo

Pages:Previous 1 2

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.