Re: Re: How can I add the Google Analytics tracker to every page
That does not work (anymore?).
In version 2.2, I added it in the header.tpl. That seemed to work (the footer.tpl was not working!)
In version 2.3, nothing worked anymore, but I did something much easier.
I added Google Analytics tracker code in Admin->Look & Feel in Custom Site Footer
And that worked excellent!
Copy to clipboard
{literal} var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("XX-9999999-1"); pageTracker._trackPageview(); } catch(err) {} {/literal}