Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit d412601

Browse files
Copilotposhul
andauthored
Add Matomo analytics tracking (#264)
* Initial plan * Add Matomo tracking code to documentation Co-authored-by: poshul <146827+poshul@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: poshul <146827+poshul@users.noreply.github.com>
1 parent b95f4b5 commit d412601

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

_static/js/matomo.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Matomo tracking code
2+
var _paq = window._paq = window._paq || [];
3+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
4+
_paq.push(['trackPageView']);
5+
_paq.push(['enableLinkTracking']);
6+
(function() {
7+
var u="https://openms.matomo.cloud/";
8+
_paq.push(['setTrackerUrl', u+'matomo.php']);
9+
_paq.push(['setSiteId', '2']);
10+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
11+
g.async=true; g.src='https://cdn.matomo.cloud/openms.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
12+
})();

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
]
134134

135135
html_js_files = [
136+
'js/matomo.js', # Matomo tracking code for openms.matomo.cloud
136137
'js/piwik.js', # For tracking user statistics on openms-web.piwik.pro
137138
'js/gmc.min.js', # GitHub Manyfaced Cards for showcasing GitHub repos (e.g. nf-core workflows)
138139
]

0 commit comments

Comments
 (0)