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

martijnvisser pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 469c75ddf7e824a8b17cd03b68bff06067d3ebc4
Author: Martijn Visser <[email protected]>
AuthorDate: Wed Jan 21 09:11:06 2026 +0100

    [FLINK-38925][docs] Add Matomo config to PyDocs
    
    (cherry picked from commit 679ed331ab7817d89c48eb61fb7af733776df332)
---
 flink-python/docs/_templates/layout.html | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/flink-python/docs/_templates/layout.html 
b/flink-python/docs/_templates/layout.html
index 796d06174e9..6648a735881 100644
--- a/flink-python/docs/_templates/layout.html
+++ b/flink-python/docs/_templates/layout.html
@@ -21,4 +21,23 @@ under the License.
 {{ super() }}
 <script src="_static/pyflink.js" ></script>
 <link rel="stylesheet" href="_static/pyflink.css" type="text/css" />
+<!-- Matomo -->
+<script>
+  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']);
+  /* Measure a visit to flink.apache.org and nightlies.apache.org/flink as the 
same visit */
+  _paq.push(["setDomains", 
["*.flink.apache.org","*.nightlies.apache.org/flink"]]);
+  _paq.push(['trackPageView']);
+  _paq.push(['enableLinkTracking']);
+  (function() {
+    var u="//analytics.apache.org/";
+    _paq.push(['setTrackerUrl', u+'matomo.php']);
+    _paq.push(['setSiteId', '1']);
+    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 -->
 {% endblock %}

Reply via email to