Google Analytics for dev.bowdenweb.com | Open Social
Standards Based Development
Typical JavaScript Include
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11154359-4']);
_gaq.push(['_setDomainName', 'bowdenweb.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
php Implementation (Optional)
Create a php file named "analyticstracking.php" with the code above and include it on each php template page. Then, add the following line to each template page immediately after the opening body element:
<?php include_once("analyticstracking.php") ?>