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 19:52:36 UTC

svn commit: r1449169 - /cayenne/main/branches/STABLE-3.1/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl

Author: aadamchik
Date: Fri Feb 22 18:52:36 2013
New Revision: 1449169

URL: http://svn.apache.org/r1449169
Log:
adding GoogleAnalytics code the HTML head

Modified:
    cayenne/main/branches/STABLE-3.1/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl

Modified: cayenne/main/branches/STABLE-3.1/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.1/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl?rev=1449169&r1=1449168&r2=1449169&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.1/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl (original)
+++ cayenne/main/branches/STABLE-3.1/docs/docbook/docbook-stylesheets/src/main/resources/stylesheets/html.xsl Fri Feb 22 18:52:36 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