Skip to content

Release: codebar analytics on the feedback page - #51

Merged
StanBarrows merged 1 commit into
productionfrom
main
Oct 25, 2026
Merged

StanBarrows merged 1 commit into
productionfrom
main

Conversation

@StanBarrows

Copy link
Copy Markdown
Contributor

Summary

  • The signed feedback page loads the analytics.codebar.ch tracker in production when CODEBAR_ANALYTICS_URL is set: nonce'd, crossorigin="anonymous" (no third-party cookie).
  • CSP adds connect-src <analytics origin> only then; everything else stays default-src 'none'.
  • The tracker sends the page URL including the link signature; analytics drops the query string before storing (only /feedback/<id> is kept).
  • CODEBAR_ANALYTICS_URL is already set on Cloud production; the project feedback.codebar.ch exists in analytics.

Test plan

  • New test: no tracker and no connect-src outside production; in production the nonce'd tracker, connect-src https://analytics.codebar.ch, exactly 2 scripts
  • Feature + Unit 385 passed, Arch 11 passed, Larastan, Pint
  • CI

🤖 Generated with Claude Code

In production, when CODEBAR_ANALYTICS_URL is set, the signed feedback
page loads the analytics.codebar.ch tracker with the page's nonce and
crossorigin="anonymous" (no third-party cookie). The CSP gains
connect-src for the analytics origin only then; everything else stays
default-src 'none'. The tracker sends the page URL including the link
signature, which analytics drops with the query string before storing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StanBarrows
StanBarrows merged commit c265ae2 into production Oct 25, 2026
15 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.

1 participant