~etalab/code.gouv.fr

6b874637a9464cf06e326de4780baf1475819953 — Bastien Guerry 14 days ago 4ebd0b5
Add Matomo tracking
1 files changed, 14 insertions(+), 0 deletions(-)

M resources/public/index.html
M resources/public/index.html => resources/public/index.html +14 -0
@@ 33,6 33,20 @@
    <div id="app"></div>
    <script src="https://tag.aticdn.net/619928/smarttag.js"></script>
    <script>var ATTag = new ATInternet.Tracker.Tag();ATTag.page.send({name:'Page_Name'});</script>
    <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+'matomo.php']);
	  _paq.push(['setSiteId', '95']);
	  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);
      })();
    </script>
    <script src="/js/codegouvfr.js"></script>
    <script type="module" src="/js/dsfr.module.min.js"></script>
    <script nomodule src="/js/dsfr.nomodule.min.js"></script>