]> git.0d.be Git - panikweb.git/blobdiff - panikweb/templates/includes/piwik.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / includes / piwik.html
diff --git a/panikweb/templates/includes/piwik.html b/panikweb/templates/includes/piwik.html
new file mode 100644 (file)
index 0000000..616f0e5
--- /dev/null
@@ -0,0 +1,17 @@
+{% if enabled %}
+<!-- Piwik -->
+<script>
+  var _paq = _paq || [];
+  _paq.push(["trackPageView"]);
+  _paq.push(["enableLinkTracking"]);
+
+  (function() {
+    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.radiopanik.org/";
+    _paq.push(["setTrackerUrl", u+"piwik.php"]);
+    _paq.push(["setSiteId", 1]);
+    var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
+    g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
+  })();
+</script>
+<!-- End Piwik Code -->
+{% endif %}