Feasible.lol

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: one visitor and no geography, and if your server is at a hosting provider, events filed as datacenter_ip and left out of your reports. 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.

One more: Content Security Policy. Allow the origin in both script-src and connect-src. Getting one and missing the other means the script loads and then silently can’t send anything. There’s no nonce support.

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.

Didn't answer it? Email help@feasible.lol. A person reads it, and if the answer belongs here we'll add it.

Analytics you can afford. And read.

No credit card. $9.99 a month or $99 a year when the trial ends. Cancel any time.