Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Adds Matomo analytics tracking to all documentation pages, connecting to openms.matomo.cloud with site ID 2.

Changes

  • _static/js/matomo.js: New JavaScript file containing the Matomo tracking code for page views and link tracking
  • docs/conf.py: Added matomo.js to html_js_files for automatic inclusion in all generated pages

Notes

The documentation now includes both Piwik Pro (piwik.jsopenms-web.piwik.pro) and Matomo (matomo.jsopenms.matomo.cloud) tracking.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add Matomo tracking code</issue_title>
<issue_description>Please add the Matomo tracking code listed below

<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', '2']); 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>

<agent_instructions>Please add the Matomo tracking code listed below

<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', '2']); 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>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: poshul <146827+poshul@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Matomo tracking code Add Matomo analytics tracking Jan 29, 2026
Copilot AI requested a review from poshul January 29, 2026 18:50
@tjeerdijk tjeerdijk self-requested a review January 29, 2026 19:03
Copy link

@tjeerdijk tjeerdijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thx copilot.

@tjeerdijk tjeerdijk marked this pull request as ready for review January 29, 2026 19:05
@tjeerdijk tjeerdijk merged commit d412601 into develop Jan 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Matomo tracking code

3 participants