Handle null referrer in pixel tracking route

Fixkamo-analytics
Shipped
February 13, 2026 at 7:39 AM UTC
Author
juanisidoro
Commit
3d8d5a7

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

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing