Skip to content

Commit

Permalink
chore(script): update script matomo (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccadumazert authored Sep 27, 2024
1 parent 2730d31 commit 133b649
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@
<script>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setExcludedQueryParams", ["simulationId", "_csrf"]]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
var u = "https://stats.data.gouv.fr/";
_paq.push(["setTrackerUrl", u + "piwik.php"]);
_paq.push(["setTrackerUrl", u + "matomo.php"]);
_paq.push(["setSiteId", "286"]);
var d = document,
g = d.createElement("script"),
s = d.getElementsByTagName("script")[0];
g.async = true;
g.src = u + "piwik.js";
g.src = u + "matomo.js";
s.parentNode.insertBefore(g, s);
})();
</script>
Expand Down

0 comments on commit 133b649

Please sign in to comment.