Skip to content

Commit 679ed33

Browse files
committed
[FLINK-38925][docs] Add Matomo config to PyDocs
1 parent d762746 commit 679ed33

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

flink-python/docs/_templates/layout.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,23 @@
2121
{{ super() }}
2222
<script src="_static/pyflink.js" ></script>
2323
<link rel="stylesheet" href="_static/pyflink.css" type="text/css" />
24+
<!-- Matomo -->
25+
<script>
26+
var _paq = window._paq = window._paq || [];
27+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
28+
/* We explicitly disable cookie tracking to avoid privacy issues */
29+
_paq.push(['disableCookies']);
30+
/* Measure a visit to flink.apache.org and nightlies.apache.org/flink as the same visit */
31+
_paq.push(["setDomains", ["*.flink.apache.org","*.nightlies.apache.org/flink"]]);
32+
_paq.push(['trackPageView']);
33+
_paq.push(['enableLinkTracking']);
34+
(function() {
35+
var u="//analytics.apache.org/";
36+
_paq.push(['setTrackerUrl', u+'matomo.php']);
37+
_paq.push(['setSiteId', '1']);
38+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
39+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
40+
})();
41+
</script>
42+
<!-- End Matomo Code -->
2443
{% endblock %}

0 commit comments

Comments
 (0)