Documentation / @frak-labs/core-sdk / actions / setupReferral
Function: setupReferral()
setupReferral(
client):Promise<void>
Defined in: actions/referral/setupReferral.ts:22
Process referral context and emit a DOM event on success.
- Calls referralInteraction to detect and track any referral in the URL
- On
"success", dispatches a bare REFERRAL_SUCCESS_EVENT onwindow - Silently swallows errors (fire-and-forget during SDK init)
Parameters
client
The initialized Frak client
Returns
Promise<void>