Proxy guides

Get started

Serve the StatSip script from your own domain.

The script normally loads from StatSip and sends visits to /api/event on that same host. Some ad blockers stop third-party scripts. Proxy both paths through your domain and the browser treats them as first-party.

What to forward

  • /t.js on your domain → https://statsip.com/t.js
  • /api/event on your domain → https://statsip.com/api/event

Then use a same-origin snippet. The script posts to /api/event on whatever host it was loaded from.

html
<script defer src="/t.js" data-site="YOUR_SITE_KEY"></script>

If your app already uses /api/event, pick a host name such as stats.yourdomain.com for both paths instead of the site root.

Something unclear or missing? Tell us.