Skip to content
14 changes: 14 additions & 0 deletions docs/source/_static/matomo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// script below is used by Matomo web analytics for web site usage statistics
<script>
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.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://cdn.matomo.cloud/openms.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["piwik.js", "matomo.js", "custom.js"]

# -- Options for HTMLHelp output ------------------------------------------

Expand Down