From: maxious Date: Thu, 05 May 2011 03:12:51 +0000 Subject: Add page speed analytics, stop googlebot-image from ruining site hits X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=c097ff8584a4aba3c98adfdfce6cf935277257da --- Add page speed analytics, stop googlebot-image from ruining site hits --- --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -5,6 +5,7 @@ function googleAnalyticsGetImageUrl() { global $GA_ACCOUNT, $GA_PIXEL; + //if (stristr($_SERVER['HTTP_USER_AGENT'], 'Googlebot') return ""; $url = ""; $url.= $GA_PIXEL . "?"; $url.= "utmac=" . $GA_ACCOUNT; @@ -187,6 +188,7 @@ var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-22173039-1']); _gaq.push(['_trackPageview']); + _gaq.push(['_trackPageLoadTime']); "; echo ' --- a/robots.txt +++ b/robots.txt @@ -1,4 +1,6 @@ User-agent: * Allow: / +User-agent: * +Disallow: /lib/ga.php sitemap: http://bus.lambdacomplex.org/sitemap.xml.php