From 6c6419dfd9b69574a6e0a27c5e6cd08998e4500b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 29 Jan 2026 22:00:29 +0000
Subject: [PATCH 01/11] Initial plan
From 08a9df08fcb7187c3e1057c85b0cf795ee733da0 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 29 Jan 2026 22:03:27 +0000
Subject: [PATCH 02/11] Add Matomo tracking code via layout.html template
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
---
docs/source/_templates/layout.html | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 docs/source/_templates/layout.html
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html
new file mode 100644
index 000000000..7650b3374
--- /dev/null
+++ b/docs/source/_templates/layout.html
@@ -0,0 +1,21 @@
+{% extends "!layout.html" %}
+
+{# Add Matomo tracking code to the head section #}
+{% block extrahead %}
+{{ super() }}
+
+
+
+{% endblock %}
From 4587e9eba6952036cbd43a53bd4078b6ff157a1b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 29 Jan 2026 22:05:55 +0000
Subject: [PATCH 03/11] Remove duplicate piwik.js to avoid double-tracking
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
---
docs/source/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 9219f72c3..ff3b355e4 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -187,7 +187,7 @@
html_static_path = ["_static"]
html_css_files = ["custom.css"]
# adding custom icons probably only possible with newest pydata theme version
-html_js_files = ["piwik.js", "custom.js"] #, "custom_icon.js"]
+html_js_files = ["custom.js"] #, "custom_icon.js"]
# -- Options for HTMLHelp output ------------------------------------------
From 37c47218e04d698dd265adcc579a0c6f8fdf7c12 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 29 Jan 2026 22:17:16 +0000
Subject: [PATCH 04/11] Use matomo.js static file instead of layout.html
template
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
---
docs/source/_static/matomo.js | 12 ++++++++++++
docs/source/_templates/layout.html | 21 ---------------------
docs/source/conf.py | 2 +-
3 files changed, 13 insertions(+), 22 deletions(-)
create mode 100644 docs/source/_static/matomo.js
delete mode 100644 docs/source/_templates/layout.html
diff --git a/docs/source/_static/matomo.js b/docs/source/_static/matomo.js
new file mode 100644
index 000000000..65cdaef83
--- /dev/null
+++ b/docs/source/_static/matomo.js
@@ -0,0 +1,12 @@
+// Matomo Analytics tracking code
+var _paq = window._paq = window._paq || [];
+/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+_paq.push(['trackPageView']);
+_paq.push(['enableLinkTracking']);
+(function() {
+ var u="https://openms-web.containers.piwik.pro/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '977a289b-8290-4244-920c-847eb3da6b09']);
+ 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);
+})();
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html
deleted file mode 100644
index 7650b3374..000000000
--- a/docs/source/_templates/layout.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% extends "!layout.html" %}
-
-{# Add Matomo tracking code to the head section #}
-{% block extrahead %}
-{{ super() }}
-
-
-
-{% endblock %}
diff --git a/docs/source/conf.py b/docs/source/conf.py
index ff3b355e4..04e766f12 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -187,7 +187,7 @@
html_static_path = ["_static"]
html_css_files = ["custom.css"]
# adding custom icons probably only possible with newest pydata theme version
-html_js_files = ["custom.js"] #, "custom_icon.js"]
+html_js_files = ["matomo.js", "custom.js"] #, "custom_icon.js"]
# -- Options for HTMLHelp output ------------------------------------------
From c8ba265057fbc17059eeddf84a770adbbad2cafc Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 29 Jan 2026 22:22:21 +0000
Subject: [PATCH 05/11] Keep piwik.js reference alongside matomo.js in conf.py
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
---
docs/source/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 04e766f12..75fc1eef4 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -187,7 +187,7 @@
html_static_path = ["_static"]
html_css_files = ["custom.css"]
# adding custom icons probably only possible with newest pydata theme version
-html_js_files = ["matomo.js", "custom.js"] #, "custom_icon.js"]
+html_js_files = ["piwik.js", "matomo.js", "custom.js"] #, "custom_icon.js"]
# -- Options for HTMLHelp output ------------------------------------------
From fd72727c56d512cbc816db64fad39c9095211ad5 Mon Sep 17 00:00:00 2001
From: Tjeerd Dijkstra
Date: Thu, 29 Jan 2026 23:29:04 +0100
Subject: [PATCH 06/11] Revise Matomo tracking code for new endpoint
Updated Matomo Analytics tracking code to use new URL and site ID.
---
docs/source/_static/matomo.js | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/docs/source/_static/matomo.js b/docs/source/_static/matomo.js
index 65cdaef83..56e96685c 100644
--- a/docs/source/_static/matomo.js
+++ b/docs/source/_static/matomo.js
@@ -1,12 +1,13 @@
-// Matomo Analytics tracking code
-var _paq = window._paq = window._paq || [];
-/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
-_paq.push(['trackPageView']);
-_paq.push(['enableLinkTracking']);
-(function() {
- var u="https://openms-web.containers.piwik.pro/";
- _paq.push(['setTrackerUrl', u+'matomo.php']);
- _paq.push(['setSiteId', '977a289b-8290-4244-920c-847eb3da6b09']);
- 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);
-})();
+
From 04490aabd509513de9ca48b830f72a2cf200b650 Mon Sep 17 00:00:00 2001
From: Tjeerd Dijkstra
Date: Thu, 29 Jan 2026 23:30:23 +0100
Subject: [PATCH 07/11] Add comment for Matomo analytics script
Added a comment explaining the purpose of the script.
---
docs/source/_static/matomo.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/source/_static/matomo.js b/docs/source/_static/matomo.js
index 56e96685c..c59490e3e 100644
--- a/docs/source/_static/matomo.js
+++ b/docs/source/_static/matomo.js
@@ -1,3 +1,4 @@
+// script below is used by Matomo web analytics for web site usage statistics