Przejdź do głównej zawartości

Interface: CaptureReferralCodeOptions

Properties

maxAge?

optional maxAge?: 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?

optional paramName?: string

Query parameter carrying the code. Default 'ref'.


url?

optional url?: string | URL

URL (or search string) to inspect. Defaults to the current window.location.href.