NIHVIVO-154 Added sample google analytics tracking code, and an include to the template.

This commit is contained in:
rjy7 2010-05-14 21:33:43 +00:00
parent 01be04827a
commit a6722233aa
2 changed files with 23 additions and 1 deletions

View file

@ -25,4 +25,5 @@
</div>
<#-- SCRIPT TAGS SHOULD GO HERE -->
<#-- SCRIPT TAGS SHOULD GO HERE -->
<#include "googleAnalytics.ftl">

View file

@ -0,0 +1,21 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- NOTICE: This is SAMPLE Google Analytics code. You must replace it with your institution's code. -->
<#--
<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-5164622-5");
pageTracker._setDomainName("vivo.cornell.edu");
pageTracker._setAllowLinker(true);
pageTracker._trackPageview();
var rollupTracker = _gat._getTracker("UA-12531954-1");
rollupTracker._setDomainName("none");
rollupTracker._setAllowLinker(true);
rollupTracker._trackPageview(location.host+location.pathname);
}
catch(err) {}
</script>
-->