Add Matomo for analytics

This commit is contained in:
Yorick Barbanneau 2020-03-10 00:34:55 +01:00
parent 559c5be55d
commit 9b928ba305
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//a.xieme-art.org/";
_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);
})();

View file

@ -81,5 +81,6 @@ AUTHORS_BIO = {
} }
} }
JS_OVERRIDE = ['assets/js/matomo.js']
# Uncomment following line if you want document-relative URLs when developing # Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True # RELATIVE_URLS = True