Interface: CaptureReferralCodeOptions
Properties
maxAge?
optionalmaxAge?:number
Cookie lifetime in seconds. Default REFERRAL_COOKIE_MAX_AGE (30 days) — the "landing → signup" window, independent of the shop's referral validity setting (see the constant's docs).
paramName?
optionalparamName?:string
Query parameter carrying the code. Default 'ref'.
url?
optionalurl?:string|URL
URL (or search string) to inspect. Defaults to the current
window.location.href.