Log a referral code that arrives with no visitor guid

FixSecurityService
Shipped
September 6, 2026 at 2:58 AM UTC
Author
Kamo
Commit
e7edace

A signup carrying a marketing code but no visitor guid had its referral dropped in complete silence — the branch that publishes the attribution event is gated on the guid, and there was no else. The gate is right and stays: the guid is the key the whole feature is built on. MediaService reads visitorGuid as a REQUIRED field and every later conversion is matched on the visitor row it names, so publishing without one would produce a malformed envelope rather than a rescued conversion. The fix belongs at the door, and it is now there — kamo-register mints a guid and writes the apex cookies whenever a code arrives without one. Which makes this branch unreachable from a current register site, and that is exactly why it logs. This is a members commission going missing; if a client ever regresses, one WARN is the difference between a five-second diagnosis and an unexplained empty report.

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