That works perfectly.
Thanks!
Martin.

On Fri, Feb 26, 2010 at 10:39 AM, James Taylor <james@bx.psu.edu> wrote:
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




--
Post-doc
Yegnasubramanian Lab / Irizarry Lab
Johns Hopkins Schools of Medicine and Public Health