From af40e3ca50af812a483cb2a8a5ad8d1290beca0b Mon Sep 17 00:00:00 2001 From: Stamatis Zampetakis Date: Fri, 4 Oct 2024 15:56:52 +0200 Subject: [PATCH] TEZ-4581: ASF matomo integration for web site analytics 1. Use matomo for gathering usage statistics 2. Update the privacy policy link accordingly --- docs/src/site/markdown/privacy-policy.md | 52 ------------------------ docs/src/site/site.xml | 20 ++++++++- 2 files changed, 18 insertions(+), 54 deletions(-) delete mode 100644 docs/src/site/markdown/privacy-policy.md diff --git a/docs/src/site/markdown/privacy-policy.md b/docs/src/site/markdown/privacy-policy.md deleted file mode 100644 index dbcd29fc1b..0000000000 --- a/docs/src/site/markdown/privacy-policy.md +++ /dev/null @@ -1,52 +0,0 @@ - - -Privacy Policy - -Privacy Policy --------------- - -Information about your use of this website is collected using server -access logs and a tracking cookie. The collected information consists of -the following: - -1. The IP address from which you access the website; - -2. The type of browser and operating system you use to access our site; - -3. The date and time you access our site; - -4. The pages you visit; and - -5. The addresses of pages from where you followed a link to our site. - -Part of this information is gathered using a tracking cookie set by the -[Google Analytics](https://www.google.com/analytics/) service and handled -by Google as described in their [privacy -policy](https://www.google.com/privacy.html). See your browser -documentation for instructions on how to disable the cookie if you -prefer not to share this data with Google. - -We use the gathered information to help us make our site more useful to -visitors and to better understand how and when our site is used. We do -not track or collect personally identifiable information or associate -gathered data with any personally identifying information from other -sources. - -By using this website, you consent to the collection of this data in the -manner and for the purpose described above. - diff --git a/docs/src/site/site.xml b/docs/src/site/site.xml index b327a4e308..b69602f561 100644 --- a/docs/src/site/site.xml +++ b/docs/src/site/site.xml @@ -56,7 +56,23 @@ - + + 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', '63']); + 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); + })(); + +