diff --git a/euphrosyne/assets/js/matomo.js b/euphrosyne/assets/js/matomo.js index f015c1b2..04edf3fc 100644 --- a/euphrosyne/assets/js/matomo.js +++ b/euphrosyne/assets/js/matomo.js @@ -13,3 +13,15 @@ _paq.push(["enableLinkTracking"]); g.src = u + "piwik.js"; s.parentNode.insertBefore(g, s); })(); + +// 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://stats.beta.gouv.fr/js/container_RtFSe5hb.js"; + s.parentNode.insertBefore(g, s); +})();