Rewrites are matched in order, so keep the
track rule before the catch-all.
The catch-all also serves the files the script loads itself, like the
identity
variant’s
agent.Pointing the script at your proxy
Once you’ve set up your reverse proxy, load the script from your proxy and set the API host to your proxy URL.scriptProps.src stops the DubAnalytics component from picking the script variant for you, so point it at the variant you use, for example /_proxy/dub/script.conversion-tracking.identity.js.