You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gr...@apache.org on 2023/11/26 14:17:23 UTC

(logging-site) 01/02: added matomo code

This is an automated email from the ASF dual-hosted git repository.

grobmeier pushed a commit to branch jekyll
in repository https://gitbox.apache.org/repos/asf/logging-site.git

commit 9fb527b1f85b9f00671c04645b006be67de65d70
Author: Christian Grobmeier <cg...@grobmeier.de>
AuthorDate: Sun Nov 26 15:07:17 2023 +0100

    added matomo code
---
 _includes/footer.html | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/_includes/footer.html b/_includes/footer.html
index 66f46443..878b5ed6 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -14,3 +14,20 @@
         </p>
     </div>
 </div>
+<!-- Matomo -->
+<script>
+  var _paq = window._paq = window._paq || [];
+  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+  _paq.push(["disableCookies"]);
+  _paq.push(['trackPageView']);
+  _paq.push(['enableLinkTracking']);
+  (function() {
+    var u="https://analytics.apache.org/";
+    _paq.push(['setTrackerUrl', u+'matomo.php']);
+    _paq.push(['setSiteId', '42']);
+    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>
+<noscript><p><img src="https://analytics.apache.org/matomo.php?idsite=42&amp;rec=1" style="border:0;" alt="" /></p></noscript>
+<!-- End Matomo Code -->
\ No newline at end of file