You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2022/04/14 06:06:32 UTC

[archiva-parent] branch master updated: use analytics.apache.org

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

olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-parent.git


The following commit(s) were added to refs/heads/master by this push:
     new 8cbd53f  use analytics.apache.org
8cbd53f is described below

commit 8cbd53fd3776709428e2cd936a1fa3cf42877217
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Thu Apr 14 16:04:26 2022 +1000

    use analytics.apache.org
    
    Signed-off-by: Olivier Lamy <ol...@apache.org>
---
 src/site/site.xml | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/src/site/site.xml b/src/site/site.xml
index e70e3a0..10e6910 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -26,7 +26,7 @@
     <!-- have to add the index.html to get the right location, due to bug in Doxia. Still not correct for subdirectories though -->
     <href>http://archiva.apache.org/index.html</href>
   </bannerLeft>
-  <googleAnalyticsAccountId>UA-140879-5</googleAnalyticsAccountId>
+
   <bannerRight>
     <name>Apache Software Foundation</name>
     <src>https://www.apache.org/images/asf_logo_wide_2016.png</src>
@@ -39,7 +39,29 @@
     <artifactId>maven-fluido-skin</artifactId>
     <version>1.6</version>
   </skin>
+
   <body>
+
+    <head>
+      <![CDATA[<!-- 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="//analytics.apache.org/";
+    _paq.push(['setTrackerUrl', u+'matomo.php']);
+    _paq.push(['setSiteId', '10']);
+    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>
+
     <menu ref="reports" inherit="bottom"/>
   </body>
 </project>