update matomo link #59

Merged
mik-tf merged 2 commits from main_matomo into main 2025-01-28 16:33:13 +00:00
2 changed files with 34 additions and 0 deletions

View File

@ -54,6 +54,11 @@ const config: Config = {
'/js/crisp.js',
async: false,
},
{
src:
'/js/matomo.js',
async: true,
},
],
themeConfig: {

29
static/js/matomo.js Normal file
View File

@ -0,0 +1,29 @@
/* Matomo Tag Manager */
var _mtm = window._mtm = window._mtm || [];
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
(function() {
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://analytics.threefold.io/js/container_47J8h6pI.js'; s.parentNode.insertBefore(g,s);
})();
/* End Matomo Tag Manager */
/* Matomo */
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.threefold.io/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '20']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
/* End Matomo Code */