When googlebot comes (if it does!) to pages that contains this code, you get an e-mail sent to the address you specify.
Insert the PHP code below in all pages where you want to track whether google is visiting the page or not.
<?php
//Change the following to your email address
$email = "myemail@something.com";
if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
{
mail($email, "Googlebot detected",
"Google has crawled : ".$_SERVER['REQUEST_URI']);
}
?>
If you have include a file like header.php, footer.php,.. etc. everywhere then you can simply place this code in any of those files to track all those pages. MT users can place it in their template and all their pages will be tracked.
PERL users can use: