You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by mi...@apache.org on 2022/07/20 08:20:42 UTC
[kafka-site] branch asf-site updated: KAFKA-13868: Replace Google Analytics with Matomo (#424)
This is an automated email from the ASF dual-hosted git repository.
mimaison pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/kafka-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new a207e99a KAFKA-13868: Replace Google Analytics with Matomo (#424)
a207e99a is described below
commit a207e99a9e2b5f5dbff9c7eedc136e89dff9e350
Author: Divij Vaidya <di...@amazon.com>
AuthorDate: Wed Jul 20 10:20:36 2022 +0200
KAFKA-13868: Replace Google Analytics with Matomo (#424)
Reviewers: Mickael Maison <mi...@gmail.com>, Martijn Visser <ma...@apache.org>
---
google29eadbd0256e020c.html | 1 -
google7bff870a0cde1d0d.html | 1 -
googlebc99ea69c42cb214.html | 1 -
includes/_footer.htm | 11 -----------
includes/_header.htm | 17 +++++++++++++++++
5 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/google29eadbd0256e020c.html b/google29eadbd0256e020c.html
deleted file mode 100644
index f022843c..00000000
--- a/google29eadbd0256e020c.html
+++ /dev/null
@@ -1 +0,0 @@
-google-site-verification: google29eadbd0256e020c.html
\ No newline at end of file
diff --git a/google7bff870a0cde1d0d.html b/google7bff870a0cde1d0d.html
deleted file mode 100644
index e0928fd9..00000000
--- a/google7bff870a0cde1d0d.html
+++ /dev/null
@@ -1 +0,0 @@
-google-site-verification: google7bff870a0cde1d0d.html
\ No newline at end of file
diff --git a/googlebc99ea69c42cb214.html b/googlebc99ea69c42cb214.html
deleted file mode 100644
index 79763ff2..00000000
--- a/googlebc99ea69c42cb214.html
+++ /dev/null
@@ -1 +0,0 @@
-google-site-verification: googlebc99ea69c42cb214.html
\ No newline at end of file
diff --git a/includes/_footer.htm b/includes/_footer.htm
index 7e80e7d9..af2fb800 100644
--- a/includes/_footer.htm
+++ b/includes/_footer.htm
@@ -382,16 +382,5 @@
});
}());
</script>
-
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-7818013-4', 'apache.org');
- ga('send', 'pageview');
-
- </script>
</body>
</html>
diff --git a/includes/_header.htm b/includes/_header.htm
index d1e0487a..c8dd9b1d 100644
--- a/includes/_header.htm
+++ b/includes/_header.htm
@@ -59,4 +59,21 @@
}
}
</script>
+ <!-- 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', '26']);
+ 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>