Hi,
I'd like to use Google Analytics to track visits to our galaxy instance. It
involves placing a <script></script> block (example below) on all the site's
pages. The recommended location is just before the </body> tag. I'd like to
insert the code snippet in one of the mako templates and am wondering which
template would be most appropriate?
Thanks,
Martin.
<script type="text/javascript">
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"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
</script>