Can I proxy the script from my own domain?
Yes, and on a site with a technical audience it’s worth doing.
You proxy two things - the script and the endpoint that receives events - through paths on your own domain. Then you tell the tag where they are:
<script defer data-api="/stats/api/event"
src="/stats/js/fs-k7m2q4x5r3n6t2v5.js"></script>
data-api is used verbatim, and a relative path is fine. Full Caddy and nginx configurations are in the proxying docs.
The one thing to get right: your proxy has to forward the visitor’s real IP address and user agent. If it doesn’t, every event arrives looking like it came from your server, and you get one country, one visitor and no geography at all. It’s the single most common way a proxy setup goes wrong, and the health panel watches for that pattern - it tells you which header the address was read from, and warns when it’s reading the socket instead. What that looks like when it happens.
Two more:
- Content Security Policy. Allow the origin in both
script-srcandconnect-src. Getting one and missing the other means the script loads and then silently can’t send anything. There’s nononcesupport. - On WordPress, don’t do this by hand. The plugin proxies the script and the endpoint from your own domain automatically, on randomized path segments generated at activation, and forwards the address and agent for you.
What this buys you is fewer blocked requests - and it’s a real improvement, not a permanent one. Randomized paths raise the cost of blocking; they don’t end it. Anyone selling proxying as a guaranteed escape from blocklists is overselling it.
More on installing the script
Didn't answer it? Email help@feasible.lol. A person reads it, and if the answer belongs here we'll add it.