Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Done
-
3.5.5
-
None
Description
Mailing list discussion: https://lists.apache.org/thread/3nm6522slgk3619zc9ylz5yomknk7oh8
The code that needs to added to each page is as follows:
<!-- Matomo --> <script> var _paq = window._paq = window._paq || []; /* We explicitly disable cookie tracking to avoid privacy issues */ _paq.push(['disableCookies']); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://analytics.apache.org/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '27']); 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 -->
Once, this code is added and deployed, we should be able to see the analytics at https://matomo.privacy.apache.org/