We recently upgraded to Vercel Pro and are implementing custom event tracking on a static HTML website.
During controlled browser testing, we established that:
- The documented
beforeSendhook successfully removes query parameters and fragments from the page URL. - The analytics payload separately includes the full referrer URL in the
rfield. - Attempting to modify the referrer through
beforeSenddoes not change the transmitted value.
For data minimisation purposes, we want to retain Web Analytics and custom event functionality while either suppressing the referrer entirely or reducing it to the hostname.
Could a Vercel engineer please clarify:
- Is there a supported method of suppressing or sanitising the
rfield before transmission? - Are sensitive query parameters and advertising identifiers automatically removed from referrer URLs before storage?
- Does Vercel retain full referrer URLs, and if so, for how long?
- Is there an alternative supported configuration that addresses this requirement for both page views and custom events?
We are using standard Vercel Pro and the documented static HTML analytics implementation.
The Vercel support assistant was unable to identify a supported solution or escalate our request to technical support.
Any guidance would be appreciated.