This is an automated email from the ASF dual-hosted git repository. shuber pushed a commit to branch UNOMI-871-replace-ga-with-matomo in repository https://gitbox.apache.org/repos/asf/unomi-site.git
commit 52f04958e0f934dbf68094807db89072e4a0231d Author: Serge Huber <shu...@jahia.com> AuthorDate: Wed Jan 22 10:41:34 2025 +0100 UNOMI-871 Replace Google Analytics with Matomo --- src/main/webapp/_layouts/default.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/webapp/_layouts/default.html b/src/main/webapp/_layouts/default.html index e9794cb..01a1687 100644 --- a/src/main/webapp/_layouts/default.html +++ b/src/main/webapp/_layouts/default.html @@ -9,6 +9,24 @@ <title>{{ site.title }} | {{ page.title }}</title> + <!-- Matomo --> + <script> + var _paq = window._paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(["setDoNotTrack", true]); + _paq.push(["disableCookies"]); + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="https://analytics.apache.org/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '61']); + 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 --> + <!-- Bootstrap core CSS --> <link href="/assets/css/bootstrap.min.css" rel="stylesheet"> <!-- Fontawesome CSS CDN -->