Proxy with NextJS
You can use NextJS to route all tracking traffic though your own (or Vercel) server and domain. This will help prevent AdBlockers from blocking analytics.
Step 1: Add rewrites
Add the following rewrites to the next.config.js
Step 2 - Script Tag
You will need to add `data-host`
to the script tag like so:
This will rewrite all requests to the `/toolbird.js`
endpoint to the script endpoint on the Toolbird Server.
Step 2 - JavaScript Package
When using the Javascript Package you will need to add another option to the initalising function.
Last updated