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/js/app.js.bvr | 4 +++- assets/pages-src/misc/matomo.bvr | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 assets/pages-src/misc/matomo.bvr (limited to 'assets') diff --git a/assets/js/app.js.bvr b/assets/js/app.js.bvr index 3d4cc6b..5441c59 100644 --- a/assets/js/app.js.bvr +++ b/assets/js/app.js.bvr @@ -121,4 +121,6 @@ document.addEventListener("DOMContentLoaded", () => { try_app_update(); }, 1000 * BEZIAPP_UPDATE_INTERVAL); -}); \ No newline at end of file +}); + +<@?i matomo@> 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