NIHVIVO-154 Added sample google analytics tracking code, and an include to the template.
This commit is contained in:
parent
01be04827a
commit
a6722233aa
2 changed files with 23 additions and 1 deletions
|
@ -26,3 +26,4 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<#-- SCRIPT TAGS SHOULD GO HERE -->
|
<#-- SCRIPT TAGS SHOULD GO HERE -->
|
||||||
|
<#include "googleAnalytics.ftl">
|
21
themes/vivo-basic/ftl/components/googleAnalytics.ftl
Normal file
21
themes/vivo-basic/ftl/components/googleAnalytics.ftl
Normal 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>
|
||||||
|
-->
|
Loading…
Add table
Reference in a new issue