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

github-bot pushed a commit to branch site
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/site by this push:
     new bde3a7f739 [CALCITE-6610] ASF matomo integration for website analytics
bde3a7f739 is described below

commit bde3a7f739bccf19d868d17b598bb2b264ab705f
Author: Stamatis Zampetakis <[email protected]>
AuthorDate: Sat Oct 5 00:29:52 2024 +0200

    [CALCITE-6610] ASF matomo integration for website analytics
    
    The analytics will be available under: https://analytics.apache.org/
    
    Close apache/calcite#3993
---
 site/_includes/top.html | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/site/_includes/top.html b/site/_includes/top.html
index 2776ddde7a..ebca5d6e38 100644
--- a/site/_includes/top.html
+++ b/site/_includes/top.html
@@ -8,4 +8,21 @@
   <link rel="stylesheet" 
href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic,900">
   <link rel="stylesheet" href="{{ site.baseurl }}/css/screen.css">
   <link rel="icon" type="image/x-icon" href="{{ site.baseurl }}/favicon.ico">
+  <!-- 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', '64']);
+          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 -->
 </head>

Reply via email to