Added Google-Analytics tracking-code to site
authorKai Moritz <kai@coolibri.de>
Tue, 15 Jan 2013 21:33:48 +0000 (22:33 +0100)
committerKai Moritz <kai@coolibri.de>
Tue, 15 Jan 2013 21:40:12 +0000 (22:40 +0100)
src/site/site.xml

index 3c35c97..bf57684 100644 (file)
@@ -1,5 +1,21 @@
 <project>
   <body>
+    <head>
+      <script type="text/javascript"><![CDATA[<!--
+
+        var _gaq = _gaq || [];
+        _gaq.push(['_setAccount', 'UA-571104-3']);
+        _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>
+    </head>
     <menu name="Overview">
       <item name="Introduction" href="index.html"/>
       <item name="Examples" href="examples.html"/>