You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2026/01/21 11:10:28 UTC
(flink) 03/03: [FLINK-38925][docs] Add Matomo config to PyDocs
This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a commit to branch release-1.18
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 0115a6e279be2f086786c3c8baf0c9df523d395c
Author: Martijn Visser <29...@users.noreply.github.com>
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 %}