Skip to content

fix: skip Matomo tracking on all localhost subdomains#184

Merged
marc0olo merged 1 commit intomainfrom
infra/matomo-localhost-guard
May 4, 2026
Merged

fix: skip Matomo tracking on all localhost subdomains#184
marc0olo merged 1 commit intomainfrom
infra/matomo-localhost-guard

Conversation

@marc0olo
Copy link
Copy Markdown
Member

@marc0olo marc0olo commented May 4, 2026

Summary

  • Use endsWith("localhost") instead of !== "localhost" in the Matomo guard so tracking is also skipped on *.localhost subdomains (e.g. myapp.localhost), which browsers treat as local
  • Aligns with the same fix applied in fix: skip Matomo tracking on localhost icp-cli#538

Sync recommendation

hand-written

@marc0olo marc0olo merged commit 4d7fef2 into main May 4, 2026
1 check passed
@marc0olo marc0olo deleted the infra/matomo-localhost-guard branch May 4, 2026 08:39
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