Skip to content

Commit

Permalink
Merge pull request #1061 from betagouv/feat/add-matomo-tag-manager
Browse files Browse the repository at this point in the history
feat: add matomo tag manager
  • Loading branch information
wiwski authored Sep 13, 2024
2 parents 4dd1f50 + c0c141f commit cffb24c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions euphrosyne/assets/js/matomo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})();

0 comments on commit cffb24c

Please sign in to comment.