Prechádzať zdrojové kódy

website: add google analytics for statistics

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 14 rokov pred
rodič
commit
26ca282bc9
1 zmenil súbory, kde vykonal 15 pridanie a 0 odobranie
  1. 15 0
      docs/header.html

+ 15 - 0
docs/header.html

@@ -15,6 +15,21 @@
      td.c2 {font-family: arial, helvetica, sans-serif; font-size: 80%}
      td.c1 {font-family: lucida, helvetica; font-size: 248%}
     </style>
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-21761074-1']);
+  _gaq.push(['_setDomainName', 'none']);
+  _gaq.push(['_setAllowLinker', true]);
+  _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>
 
   <body>