This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git
The following commit(s) were added to refs/heads/master by this push:
new c874e1a0 Add Matomo analytics
c874e1a0 is described below
commit c874e1a0bf817e19421ef930e4798017f869b47a
Author: Paul King <[email protected]>
AuthorDate: Thu Feb 6 22:14:55 2025 +1000
Add Matomo analytics
---
doc/manual/src/docs/asciidoc/docinfo.html | 30 +++++++++++++-------------
doc/site/templates/main.html | 36 +++++++++++++++----------------
2 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/doc/manual/src/docs/asciidoc/docinfo.html
b/doc/manual/src/docs/asciidoc/docinfo.html
index 73236bf2..2260b261 100644
--- a/doc/manual/src/docs/asciidoc/docinfo.html
+++ b/doc/manual/src/docs/asciidoc/docinfo.html
@@ -1,17 +1,17 @@
-<script type="text/javascript">
-
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-15031038-2']);
- _gaq.push(['_trackPageview', location.pathname + location.hash]);
-
- window.onhashchange = function() {
- _gaq.push(['_trackPageview', location.pathname + location.hash]);
- };
-
+<!-- Matomo -->
+<script>
+ var _paq = window._paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before
"trackPageView" */
+ _paq.push(["setDoNotTrack", true]);
+ _paq.push(["disableCookies"]);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
(function() {
- var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
+ var u="https://analytics.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '73']);
+ 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>
\ No newline at end of file
+</script>
+<!-- End Matomo Code -->
\ No newline at end of file
diff --git a/doc/site/templates/main.html b/doc/site/templates/main.html
index 81e14e23..53601c43 100644
--- a/doc/site/templates/main.html
+++ b/doc/site/templates/main.html
@@ -4,24 +4,23 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Robots" content="index,follow" />
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-15031038-2']);
- _gaq.push(['_trackPageview', location.pathname + location.hash]);
-
- window.onhashchange = function() {
- _gaq.push(['_trackPageview', location.pathname + location.hash]);
- };
-
+ <!-- Matomo -->
+ <script>
+ var _paq = window._paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before
"trackPageView" */
+ _paq.push(["setDoNotTrack", true]);
+ _paq.push(["disableCookies"]);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
(function() {
- var ga = document.createElement('script');
- ga.type = 'text/javascript';
- ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(ga, s);
+ var u="https://analytics.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '73']);
+ 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 -->
<link rel="stylesheet" href="./css/semantic.min.css">
<link rel="stylesheet" href="./css/base.css">
@@ -74,7 +73,7 @@
<div class="ui container">
<a
href="https://lists.apache.org/[email protected]"
class="item">User List</a>
<a
href="https://lists.apache.org/[email protected]"
class="item">Development List</a>
- <a
href="https://lists.apache.org/[email protected]">Notifications</a>
+ <a
href="https://lists.apache.org/[email protected]"
class="item">Notifications</a>
</div>
</div>
@@ -511,7 +510,8 @@ class LoginSpec extends GebSpec {
</div>
<div class="ten wide column">
<h4 class="ui inverted header">About Geb</h4>
- <p>Geb is free, open source software licensed
under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html"
title="Apache License, Version 2.0">Apache License, Version 2.0</a>.</p>
+ <p>Geb is free, open source software licensed
under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html"
title="Apache License, Version 2.0">Apache License, Version 2.0</a>.
+ Geb is a subproject of <a
href="https://groovy.apache.org">Apache Groovy</a>.</p>
</div>
</div>
</div>
@@ -530,7 +530,7 @@ class LoginSpec extends GebSpec {
<script language="javascript" src="./js/base.js"></script>
-<a href="https://github.com/geb/geb" class="github-corner" aria-label="View
source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250"
style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0; right:
0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0
Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7
120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3
125.5,87.3 C122.9,97.6 130.6,101 [...]
+<a href="https://github.com/apache/groovy-geb" class="github-corner"
aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250
250" style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0;
right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250
L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6
C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9
125.5,87.3 125.5,87.3 C122.9,97.6 [...]
</body>
</html>