This simple Cloudflare Workers proxy helps you bypass AdBlockers by serving Umami Analytics from your own custom domain. AdBlockers often block sites that use the default Umami URL, but with this proxy, you can keep your analytics running smoothly without being flagged.
Best of all, it fits neatly within Cloudflare’s free tier.
- Deploy the Proxy
Click the button below to deploy directly to Cloudflare Workers:
-
Set Up Your Custom Domain
Once deployed, go to your Cloudflare dashboard, add a custom domain or subdomain (e.g.,analytics.yourdomain.com), and route it to the Worker you just created. -
Update Your Umami Script URL
Replace the default Umami script URL on your website with your new custom domain:<script async defer data-website-id="YOUR_WEBSITE_ID" src="https://analytics.yourdomain.com/script.js"></script>
Now you're good to go! Umami Analytics will run smoothly without interference from AdBlockers.
I built this project quickly to solve a personal problem and thought it could help others facing the same issue. It’s a simple solution, but I hope it makes your life a little easier!
Built with ❤️ by Elliott.
This project is open-source under the MIT License. Feel free to use, modify, and share!