Skip to content

Template sync: count installer downloads in Matomo - #179

Merged
t0mdavid-m merged 7 commits into
mainfrom
claude/project-thread-338vpi
Nov 20, 2026
Merged

t0mdavid-m merged 7 commits into
mainfrom
claude/project-thread-338vpi

Conversation

@t0mdavid-m

Copy link
Copy Markdown
Member

Requested by Tom · project thread

Template sync

Merges main of 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 named https://<app host>/download/<file name>. Other downloads (results, tables, figures) are not reported. analytics.matomo.track_downloads: false in settings.json turns it off.

The merge applied without conflicts: 5 files (src/common/download_tracking.py, its test, the call in src/common/common.py, track_downloads: true in 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

claude and others added 7 commits November 20, 2026 19:40
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
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 15053eec-ff5d-4c97-b4b8-6590326bcdab
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@t0mdavid-m
t0mdavid-m merged commit 1875999 into main Nov 20, 2026
27 checks passed
@t0mdavid-m
t0mdavid-m deleted the claude/project-thread-338vpi branch November 20, 2026 22:06
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.

2 participants