diff --git a/doc/user/tnt-html.xsl b/doc/user/tnt-html.xsl index cf270d1d1b618f9e98a476f906578b65fd96211b..e1edda21310f5920444787276722d153b1ee8a57 100644 --- a/doc/user/tnt-html.xsl +++ b/doc/user/tnt-html.xsl @@ -12,4 +12,21 @@ <xsl:param name="highlight.source" select="1"/> <xsl:param name="highlight.xslthl.config">file:////usr/share/xml/docbook/stylesheet/docbook-xsl-ns/highlighting/xslthl-config.xml</xsl:param> +<!-- Add Google Analytics to the generated html--> + +<xsl:template name="user.head.content"> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-22120502-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> +</xsl:template> </xsl:stylesheet>