You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2013/02/22 20:00:43 UTC
svn commit: r1449173 -
/cayenne/main/trunk/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl
Author: aadamchik
Date: Fri Feb 22 19:00:43 2013
New Revision: 1449173
URL: http://svn.apache.org/r1449173
Log:
adding GoogleAnalytics code the HTML head
(cherry picked from commit d8226770f507a4c8365c9b524b431072e5849d35)
Modified:
cayenne/main/trunk/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl
Modified: cayenne/main/trunk/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl?rev=1449173&r1=1449172&r2=1449173&view=diff
==============================================================================
--- cayenne/main/trunk/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl (original)
+++ cayenne/main/trunk/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl Fri Feb 22 19:00:43 2013
@@ -126,6 +126,19 @@ body { background-image: url('</xsl:text
<xsl:apply-templates select="." mode="head.keywords.content"/>
</xsl:template>
+ <!-- GoogleAnalytics script for web publishing -->
+ <xsl:template name="user.head.content">
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-7036673-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>
<!--
TOP NAVIGATION