request.headers.get("referer") returns null when the header is absent
(e.g. email clients). The Zod schema uses .optional() which accepts
undefined but rejects null, causing silent validation failure and
pixel events not being recorded.
Fixes #4028
request.headers.get("referer") returns null when the header is absent
(e.g. email clients). The Zod schema uses .optional() which accepts
undefined but rejects null, causing silent validation failure and
pixel events not being recorded.
Fixes #4028