That works perfectly.
If you want this in *every* page, add it to both base_panels.mako and base.mako, every template in Galaxy should inherit from one of these.
On Feb 26, 2010, at 10:36 AM, Martin Aryee wrote:
_______________________________________________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>
galaxy-dev mailing list
galaxy-dev@lists.bx.psu.edu
http://lists.bx.psu.edu/listinfo/galaxy-dev