Features
Reverse-proxy support
Track clicks on the client-side using a reverse proxy
Tracking clicks via a reverse proxy
To avoid ad-blockers from blocking your click-tracking requests, we recommend setting up a reverse proxy.
Depending on which backend framework you’re using, there are a few different ways to do this:
Once you’ve set up your reverse proxy, don’t forget to update the apiHost
parameter in the <Analytics />
component to point to your proxy URL.
Loading the script via a reverse proxy
To avoid ad-blockers from blocking the @dub/analytics
script, it is recommended to use a reverse proxy.
Depending on which backend framework you’re using, there are a few different ways to do this:
Once you’ve set up your reverse proxy, don’t forget to update the scriptProps.src
parameter in the <Analytics />
component to point to your proxy URL.