From 9f73d145b6aadb506143b0a3ec1b1d3697f24a04 Mon Sep 17 00:00:00 2001 From: sijanec Date: Wed, 23 Sep 2020 20:33:48 +0200 Subject: added tracking js --- assets/pages-src/misc/matomo.bvr | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 assets/pages-src/misc/matomo.bvr (limited to 'assets/pages-src') diff --git a/assets/pages-src/misc/matomo.bvr b/assets/pages-src/misc/matomo.bvr new file mode 100644 index 0000000..ad6cdd2 --- /dev/null +++ b/assets/pages-src/misc/matomo.bvr @@ -0,0 +1,13 @@ +var _paq = window._paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); + _paq.push(["setDoNotTrack", true]); + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//matomo.gimb.tk/"; + _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.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); -- cgit v1.2.3