added piwik tracking code to footer
authorAndrew Engelbrecht <andrew@fsf.org>
Tue, 13 Aug 2019 21:07:41 +0000 (17:07 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Tue, 13 Aug 2019 21:07:41 +0000 (17:07 -0400)
modules/footer/templates/footer.html.twig

index 664f8ed..398b1eb 100644 (file)
@@ -7,3 +7,22 @@
         </p>
 </div>
 
+
+<!-- Piwik -->
+<script type="text/javascript">
+// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0
+  var _paq = _paq || [];
+  _paq.push(["trackPageView"]);
+  _paq.push(["enableLinkTracking"]);
+
+  (function() {
+    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.fsf.org/";
+    _paq.push(["setTrackerUrl", u+"piwik.php"]);
+    _paq.push(["setSiteId", "17"]);
+    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);
+  })();
+// @license-end
+</script>
+<!-- End Piwik Code -->
+