Moved Google Analytics stuff to the end of the head section.

This commit is contained in:
Davis King 2014-06-16 18:43:51 -04:00
parent e1c2bdcbdb
commit 082f05ea2c

View File

@ -290,7 +290,18 @@ function BigToggle(node)
margin-right: auto;
}
</style>
<xsl:if test="$is_chm != 'true'">
<script> <!-- Google Analytics -->
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51919357-1', 'dlib.net');
ga('send', 'pageview');
</script>
</xsl:if>
</head>
<body bgcolor="{$background_color}">
<a name="top" />
@ -344,17 +355,6 @@ function BigToggle(node)
</div>
<xsl:if test="$is_chm != 'true'">
<script> <!-- Google Analytics -->
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51919357-1', 'dlib.net');
ga('send', 'pageview');
</script>
</xsl:if>
</body>
</html>
</xsl:template>