Repository navigation
Template sync: count installer downloads in Matomo - #179
Merged
Merged
Conversation
Once a visitor agreed to Matomo, page_setup() adds a script that reports every file the browser saves (download buttons, links to files such as installers, CSV/Excel/image downloads in OpenMS-Insight and Plotly frames) as a Matomo download named by the app's host and the file name, plus a download event for the Tag Manager. analytics.matomo.track_downloads: false turns it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenwbwREtmA2Z33HjhQ
Only files with an installer extension (exe, msi, dmg, pkg, AppImage, deb, rpm) are reported: the installer buttons' links to a release and the bundled Windows installer. Results, tables and figures are not counted, so component frames are no longer watched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenwbwREtmA2Z33HjhQ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenwbwREtmA2Z33HjhQ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenwbwREtmA2Z33HjhQ
They stay reachable through the commit link in the PR description. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenwbwREtmA2Z33HjhQ
Count installer downloads in Matomo, per app, after consent
Brings in OpenMS/streamlit-template#600: installer downloads are reported to Matomo once the visitor agreed to tracking. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenwbwREtmA2Z33HjhQ
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Requested by Tom · project thread
Template sync
Merges
mainof OpenMS/streamlit-template, which brings in OpenMS/streamlit-template#600: once a visitor agrees to Matomo in the consent banner, every desktop installer they download from the app is counted under Behaviour → Downloads. Release links keep their own URL, and the bundled Windows installer is namedhttps://<app host>/download/<file name>. Other downloads (results, tables, figures) are not reported.analytics.matomo.track_downloads: falsein settings.json turns it off.The merge applied without conflicts: 5 files (
src/common/download_tracking.py, its test, the call insrc/common/common.py,track_downloads: truein settings.json and a line in CLAUDE.md). Screenshots are on the template PR.tests/test_download_tracking.py: 9 passed.Merge with a merge commit, not squash, so the next sync stays clean.
Generated by Claude Code