Skip to content

fix(website): proxy Umami script to bypass ad blockers#31

Merged
AmElmo merged 1 commit intomainfrom
AmElmo/fix-umami-tracking
Feb 23, 2026
Merged

fix(website): proxy Umami script to bypass ad blockers#31
AmElmo merged 1 commit intomainfrom
AmElmo/fix-umami-tracking

Conversation

@AmElmo
Copy link
Copy Markdown
Owner

@AmElmo AmElmo commented Feb 23, 2026

Summary

Umami analytics requests are now routed through /stats/ on the site's own domain instead of loading directly from cloud.umami.is. This prevents ad blockers from filtering out tracking requests.

Changes

  • Added Next.js rewrite rule to proxy /stats/*https://cloud.umami.is/*
  • Updated _app.tsx to load script from /stats/script.js instead of external URL
  • Updated env var from NEXT_PUBLIC_UMAMI_URL to NEXT_PUBLIC_UMAMI_HOST for clarity
  • Added comment explaining the ad blocker bypass strategy

Now visitors with ad blockers will still be tracked, while respecting those who opt out via their browsers.

Route analytics requests through /stats/ rewrite instead of loading
directly from cloud.umami.is, which is commonly blocked by ad blockers.
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec-wright Ready Ready Preview, Comment Feb 23, 2026 0:48am

@AmElmo AmElmo merged commit edcb4b1 into main Feb 23, 2026
10 checks passed
github-actions Bot pushed a commit that referenced this pull request Feb 23, 2026
## [3.6.2](v3.6.1...v3.6.2) (2026-02-23)

### Bug Fixes

* **website:** proxy Umami script to bypass ad blockers ([#31](#31)) ([edcb4b1](edcb4b1))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 3.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant