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

zabetak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hive-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 4f50371  HIVE-26166: ASF matomo integration for web site analytics (#1)
4f50371 is described below

commit 4f50371c738ede37571c6ae5a244994f8f670c95
Author: Martijn Visser <[email protected]>
AuthorDate: Wed Feb 8 21:08:52 2023 +0100

    HIVE-26166: ASF matomo integration for web site analytics (#1)
    
    https://analytics.apache.org/
    
    Close apache/hive-site#1
---
 themes/hive/layouts/partials/head.html | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/themes/hive/layouts/partials/head.html 
b/themes/hive/layouts/partials/head.html
index de9a48e..cb65c9e 100644
--- a/themes/hive/layouts/partials/head.html
+++ b/themes/hive/layouts/partials/head.html
@@ -37,5 +37,22 @@
         <link rel="mask-icon" href="{{ .Site.BaseURL 
}}/images/safari-pinned-tab.svg" color="#5bbad5">
         <meta name="msapplication-TileColor" content="#da532c">
         <meta name="theme-color" content="#ffffff">
+        <!-- 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', '30']);
+                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>
 <body>

Reply via email to