Contrer les blockers
— source : https://www.magentix.fr/blog/matomo-contrer-ad-blockers-pour-des-statistiques-fiables.html
cd /var/www/matomo ln -s matomo.php foobar.php ln -s matomo.js foobar.js sed -i 's/"action_name="/"_=\&action_name="/g' foobar.js
<script> var _paq = window._paq = window._paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://info.example.com/"; _paq.push(['setTrackerUrl', u+'foobar.php']); _paq.push(['setSiteId', '2']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'foobar.js'; s.parentNode.insertBefore(g,s); })(); </script>