mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Moved Google Analytics stuff to the end of the head section.
This commit is contained in:
parent
e1c2bdcbdb
commit
082f05ea2c
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user