This is an automated email from the ASF dual-hosted git repository.
ritesh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone-site.git
The following commit(s) were added to refs/heads/master by this push:
new 7d79b23 HDDS-7671. Embed Matomo Web Analytics tracking code to
website (#31)
7d79b23 is described below
commit 7d79b23ca0bdd521257522ea58ba923bdc7f6765
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Thu Dec 22 09:32:41 2022 +0800
HDDS-7671. Embed Matomo Web Analytics tracking code to website (#31)
---
layouts/partials/header.html | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 4458d64..42935c4 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -33,6 +33,28 @@
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin="anonymous">
<link rel="stylesheet" href="style.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(['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>
<body>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]