]> git.parisson.com Git - teleforma.git/commitdiff
add matomo code
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 7 Aug 2024 10:29:01 +0000 (12:29 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 7 Aug 2024 10:29:01 +0000 (12:29 +0200)
teleforma/templates/teleforma/base.html

index 17709f54e6de7f97ad4094ea3090f3ebaf4b8614..1413c0986970ccefa0fe4f36a93222733ee7428a 100644 (file)
       (tarteaucitron.job = tarteaucitron.job || []).push('gajs');
     </script>
 
+    <!-- Matomo -->
+    <script>
+      var _paq = window._paq = window._paq || [];
+      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+      _paq.push(['trackPageView']);
+      _paq.push(['enableLinkTracking']);
+      (function() {
+        var u="//matomo.parisson.com/";
+        _paq.push(['setTrackerUrl', u+'matomo.php']);
+        _paq.push(['setSiteId', '1']);
+        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>
+    <!-- End Matomo Code -->
+
+
   {% endif %}
 
   <script type='text/javascript'>