Google Analytics
At separate times I have placed the code below in the footer.tpl and in the Admin > look and feel > Custom Site Footer field. In both cases the code showed up in the "source view" for whatever page on my web site. So far so good, except that in both cases the code with my Google ID is parsed out.
The whole portion:
{
var pageTracker = _gat._getTracker("UA-1891201-9");
pageTracker._trackPageview();
Is gone...
Why?
Google needs that portion to get accurate data does it not?
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write"%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E";
try {
var pageTracker = _gat._getTracker("UA-1891201-9");
pageTracker._trackPageview();
} catch(err) {}
--
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write"%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E";
try catch(err)