I've just downloaded the Simple Google Analytics mod v1.2.5
What pages is it advised to place the Google Analytics Code?
One of the pages i understand the code should be placed is the
/common/tpl_main_page.php
Where in this page does the following code go?
Google says to place the code just before the tag </header>PHP Code:<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_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);
})();
</script>
Unfortunately that tag does not exist.
Any help would be appreciated


Reply With Quote
