Add Matomo for analytics
This commit is contained in:
parent
559c5be55d
commit
9b928ba305
2 changed files with 13 additions and 0 deletions
12
content/assets/js/matomo.js
Normal file
12
content/assets/js/matomo.js
Normal 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);
|
||||
})();
|
|
@ -81,5 +81,6 @@ AUTHORS_BIO = {
|
|||
}
|
||||
}
|
||||
|
||||
JS_OVERRIDE = ['assets/js/matomo.js']
|
||||
# Uncomment following line if you want document-relative URLs when developing
|
||||
# RELATIVE_URLS = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue