This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch ozone-1.3
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/ozone-1.3 by this push:
new 545a811ab8 HDDS-7684. Embed Matomo Web Analytics tracking code in
docs. (#4111)
545a811ab8 is described below
commit 545a811ab8dacc6634bea5601c295abea9444b76
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Thu Dec 22 05:06:51 2022 +0800
HDDS-7684. Embed Matomo Web Analytics tracking code in docs. (#4111)
Change-Id: Ia93f96acb8321233ac280c259007ba2be8ae52f0
(cherry picked from commit 58283b62301099bd678c71a1da7f046de8c753ca)
---
.../themes/ozonedoc/layouts/partials/header.html | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/hadoop-hdds/docs/themes/ozonedoc/layouts/partials/header.html
b/hadoop-hdds/docs/themes/ozonedoc/layouts/partials/header.html
index 8f475b61f8..eec45e7cc3 100644
--- a/hadoop-hdds/docs/themes/ozonedoc/layouts/partials/header.html
+++ b/hadoop-hdds/docs/themes/ozonedoc/layouts/partials/header.html
@@ -31,4 +31,26 @@
<!-- Custom styles for this template -->
<link href="{{ "css/ozonedoc.css" | relURL}}" rel="stylesheet">
+ <!-- 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(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="//analytics.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '34']);
+ 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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]