Skip to content

infra(analytics): add Matomo analytics#162

Merged
raymondk merged 1 commit into
mainfrom
infra/matomo-analytics
Apr 28, 2026
Merged

infra(analytics): add Matomo analytics#162
raymondk merged 1 commit into
mainfrom
infra/matomo-analytics

Conversation

@marc0olo
Copy link
Copy Markdown
Member

Summary

  • Inlines the Matomo init script in Starlight's head config (site ID 19, matching the portal)
  • Cookies disabled, link tracking enabled — same configuration as dfinity/portal
  • Updates CSP in public/.ic-assets.json5: adds https://cdn.matomo.cloud to script-src (CDN-loaded tracker) and https://internetcomputer.matomo.cloud to connect-src (tracking pings)
  • No separate matomo.js file needed — this site has no versioning, so the script is baked into every page at build time

Sync recommendation

hand-written

@raymondk raymondk merged commit 20950f9 into main Apr 28, 2026
1 check passed
@raymondk raymondk deleted the infra/matomo-analytics branch April 28, 2026 15:35
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