KamoCRM

Carry a referral code through to the register link

Fixkamo-login
Shipped
6 செப்டம்பர், 2026 அன்று 3:01 AM UTC
Author
Kamo
Commit
80f1526

The referral code normally travels in the apex cookie the marketing site sets (kdsc_src on .<apex>), which register.<apex> reads for itself, so this link does not usually need to carry anything. The ?discount= case is the fallback for when that cookie could not make the hop at all — blocked, cleared, or a cross-apex arrival — and the marketing site now appends the code to its sign-in CTA for exactly that reason. Dropping it here would reintroduce the loss one host later: this page is a waypoint on the way to registering, and a referral that survives the first hop and dies on the second is no better than one that never survived. Validated as a UUID rather than passed through, since it lands in a URL the visitor follows and that is the shape MarketingTrackingCode stores. The host derivation is unchanged and already white-label safe.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing