This is an automated email from the ASF dual-hosted git repository. knaufk pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/flink-web.git
commit 124c10b1d03e0adf659e11bf4cc17d21cda88bb6 Author: martijnvisser <[email protected]> AuthorDate: Fri Jan 28 11:12:39 2022 +0100 [FLINK-25864] Add Matomo tracking code to base layout --- _layouts/base.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/_layouts/base.html b/_layouts/base.html index 6b40b87..a153c5d 100755 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -27,6 +27,23 @@ <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> + <!-- 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']); + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//matomo.privacy.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 --> </head> <body> {% comment %} Includes are found in the _includes directory. {% endcomment %}
