Add Google Analytics to the preamble for Worg pages.
authorBastien Guerry <bzg@altern.org>
Tue, 9 Oct 2012 06:23:37 +0000 (08:23 +0200)
committerBastien Guerry <bzg@altern.org>
Tue, 9 Oct 2012 06:23:37 +0000 (08:23 +0200)
preamble.html [new file with mode: 0644]

diff --git a/preamble.html b/preamble.html
new file mode 100644 (file)
index 0000000..74a6a72
--- /dev/null
@@ -0,0 +1,13 @@
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-7691209-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>