How do you find traffic estimations for your website? Tracking software from a third-party is one option, but keep in mind that your online visitors may disable JavaScript or have that particular tracking software that you are using blocked in their host file or with their browser’s plugin, making it totally useless to you.
If you have access to an email account, you can add a code to your pages (error pages are recommended over live pages) or template that will email you each time a page loads, whether the visitor is a bot or human. The best part about the script is that it will not show up in the view source, so visitors will not know it is there, and bots will not have a chance to harvest the email address.
<!– Email Tracking : Open –>
<?php $ip = getenv (“REMOTE_ADDR”);
$requri = getenv (“REQUEST_URI”);
$servname = getenv (“SERVER_NAME”);
$combine = $ip . ” tried to load ” ;
$url = $servname . $requri ;
$httpref = getenv (“HTTP_REFERER”);
$httpagent = getenv (“HTTP_USER_AGENT”);
$today = date(“D M j Y g:i:s a T”);
$message2 = “On $today, $combine:\n
http://$url\n
User-Agent = $httpagent \n
$httpref – http://www.ns1ns2.com/$ip”;
$to = “send@example.com”;
$subject = “Traffic Estimations”;
$from = “From:receive@example.com\r\n”;
mail($to, $subject, $message2, $from);
?>
<!– Email Tracking : Close –>
<?php $ip = getenv ("REMOTE_ADDR");
$requri = getenv ("REQUEST_URI");
$servname = getenv ("SERVER_NAME");
$combine = $ip . " tried to load " ;
$url = $servname . $requri ;
$httpref = getenv ("HTTP_REFERER");
$httpagent = getenv ("HTTP_USER_AGENT");
$today = date("D M j Y g:i:s a T");
$message2 = "On $today, $combine:\n
http://$url\n
User-Agent = $httpagent \n
$httpref - http://whois.domaintools.com/$ip";
$to = "send@example.com";
$subject = "Traffic Estimations";
$from = "From:receive@example.com\r\n";
mail($to, $subject, $message2, $from);
?>