You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/04/29 20:08:16 UTC

[arrow-site] branch master updated: ARROW-16411: [Website] Migrate to Matomo from Google Analitics

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f8e1a3d11 ARROW-16411: [Website] Migrate to Matomo from Google Analitics
1f8e1a3d11 is described below

commit 1f8e1a3d115a6f30e355f6013a5f37bd73cc198d
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Sat Apr 30 05:08:00 2022 +0900

    ARROW-16411: [Website] Migrate to Matomo from Google Analitics
    
    It's for becoming compliant with the GDPR (the European Union's
    General Data Protection Regulation).
    
    See also:
    
    * https://privacy.apache.org/policies/privacy-policy-public.html
    * https://privacy.apache.org/faq/committers.html
    
    Closes #206 from kou/matomo:
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 _includes/analytics.html | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/_includes/analytics.html b/_includes/analytics.html
index db0e0b762f..37e9130c0b 100644
--- a/_includes/analytics.html
+++ b/_includes/analytics.html
@@ -1,9 +1,17 @@
-<!-- Global Site Tag (gtag.js) - Google Analytics -->
-<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107500873-1"></script>
+<!-- Matomo -->
 <script>
-  window.dataLayer = window.dataLayer || [];
-  function gtag(){dataLayer.push(arguments)};
-  gtag('js', new Date());
-
-  gtag('config', 'UA-107500873-1');
+  var _paq = window._paq = window._paq || [];
+  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+  /* We explicitly disable cookie tracking to avoid privacy issues */
+  _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', '20']);
+    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 -->