Proxy Guides
Setting up a proxy (code required)
Around 30% of web visitors use ad-blocking extensions. By routing the Flowsery Analytics script through your own domain, you can avoid being blocked and get more accurate visitor data.
Two pieces: rewrite + real IP header
A complete proxy setup has two parts. Miss either and you lose something:
- Rewrite — proxy
/js/main.jsand/api/trackthrough your own server so the tracker looks first-party and survives ad-blockers. - Real IP header — when your server forwards
/api/trackto Flowsery, it must set the headerx-flowsery-real-ipto the real visitor's IP. Without this, every visitor appears to come from your server's location, because the server-to-server hop resetscf-connecting-ipto your server's IP.
Your framework-specific guide below covers both steps.
1. What technology does your website use?
Frameworks
Next.js, Astro, Express, Laravel, and more.
- Next.js proxy
- Express.js proxy
- Flask proxy
- FastAPI proxy
- Vue.js proxy
- Astro proxy
- Firebase Hosting proxy
- Laravel proxy
- PHP proxy
Self-hosted servers
Nginx, Caddy, and similar.