From d1cb30a01013e8d8df6c950bb8f438d6bf8dabf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dellac=C3=A0?= Date: Fri, 10 Jul 2020 12:26:59 +0200 Subject: [PATCH] forgot to include matomo js --- scripts/matomo.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/matomo.js b/scripts/matomo.js index 29180ed..5bb7e0f 100644 --- a/scripts/matomo.js +++ b/scripts/matomo.js @@ -1 +1,15 @@ -// JavaScript Document \ No newline at end of file +// JavaScript Document +var _paq = window._paq || []; +// require user consent before processing data +_paq.push(['requireConsent']); +_paq.push(['trackPageview']); +/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ +_paq.push(['trackPageView']); +_paq.push(['enableLinkTracking']); +(function() { +var u="//admin.mind-overflow.net/matomo/"; +_paq.push(['setTrackerUrl', u+'matomo.php']); +_paq.push(['setSiteId', '1']); +var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; +g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); +})(); \ No newline at end of file