Matomo.html 1.3 KB

12345678910111213141516171819202122232425262728
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace st=Opentalent\OtStats\ViewHelpers}
  3. <f:comment>
  4. <!-- render the matomo script for the current website (if stats are enabled) -->
  5. </f:comment>
  6. <f:comment><!--Matomo partial: contains the integration code of matomo ...--></f:comment>
  7. <v:variable.set name="matomo_site_id" value="{st:matomoSiteId()}" />
  8. <f:comment><!-- Matomo --></f:comment>
  9. <script type="text/javascript">
  10. var _paq = window._paq || [];
  11. _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
  12. _paq.push(["setDomains", ["*.opentalent.fr"]]);
  13. _paq.push(['trackPageView']);
  14. _paq.push(['enableLinkTracking']);
  15. (function() <f:format.raw>{</f:format.raw>
  16. var u="https://stats.2iopenservice.com/";
  17. _paq.push(['setTrackerUrl', u+'matomo.php']);
  18. _paq.push(['setSiteId', '{matomo_site_id}']);
  19. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  20. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  21. <f:format.raw>}</f:format.raw>)();
  22. </script>
  23. <noscript><p><img src="https://stats.2iopenservice.com/matomo.php?idsite={matomo_site_id}&amp;rec=1" style="border:0;" alt="" /></p></noscript>
  24. <f:comment><!-- End Matomo Code --></f:comment>