Add Matomo tracking code via static JavaScript file#500
Merged
Conversation
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Matomo tracking code to the application
Add standard Matomo tracking via layout template
Jan 29, 2026
Contributor
|
@copilot Can you add a file matomo.js similar as was done for piwik.js |
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
Add standard Matomo tracking via layout template
Add Matomo tracking code via static JavaScript file
Jan 29, 2026
Contributor
|
@copilot can you keep the reference to piwik.js in conf.py. we will remove piwik tracking in a future PR |
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
Contributor
Author
Updated Matomo Analytics tracking code to use new URL and site ID.
Contributor
There was a problem hiding this comment.
Lintly has detected code quality issues in this pull request.
Added a comment explaining the purpose of the script.
Contributor
There was a problem hiding this comment.
Lintly has detected code quality issues in this pull request.
Added installation of PyOpenMS after dependencies.
Contributor
There was a problem hiding this comment.
Lintly has detected code quality issues in this pull request.
Contributor
There was a problem hiding this comment.
Lintly has detected code quality issues in this pull request.
Contributor
|
@copilot Can you leave .github/workflows/test-pr-sphinx.yml unchanged and run checks again? |
Co-authored-by: tjeerdijk <26492048+tjeerdijk@users.noreply.github.com>
Contributor
Author
tjeerdijk
approved these changes
Jan 30, 2026
Contributor
tjeerdijk
left a comment
There was a problem hiding this comment.
Looks good, thx copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan for Adding Matomo Tracking Code
Summary
Successfully added Matomo analytics tracking to the pyOpenMS documentation using a static JavaScript file approach, while keeping the existing piwik.js tracking.
✅ Created
docs/source/_static/matomo.jswith standard Matomo tracking code✅ Updated
docs/source/conf.pyto include bothpiwik.jsandmatomo.jsinhtml_js_files✅ Reverted
.github/workflows/test-pr-sphinx.ymlto its original state✅ Verified both tracking codes are properly included in generated HTML
✅ Tested with Sphinx build - both files correctly loaded and copied to output
Technical Details
docs/source/_static/matomo.js(13 lines)docs/source/conf.py(includes bothpiwik.jsandmatomo.js).github/workflows/test-pr-sphinx.yml(kept unchanged as requested)https://openms-web.containers.piwik.pro/977a289b-8290-4244-920c-847eb3da6b09piwik.jsimplementationCurrent State
Both
piwik.jsandmatomo.jsare now included in the documentation. The piwik.js tracking will be removed in a future PR as planned by the team.Impact
Both Matomo tracking implementations will be included on all documentation pages when built by Sphinx. This allows for a transition period before removing the old piwik.js tracking.
Original prompt
💡 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.