Get Started
Get Started with SweetRef
Quick Start
2.
3.
4.
5.
Installation
1. Add the Script
<head>
section:
Replace YOUR_PROGRAM_ID
with the ID provided during onboarding.
Event Tracking
sweet_ref
from the user's cookies and include it as REFERRAL_CODE
in your signup and payment tracking requests.Reading the sweet_ref
Cookie
sweet_ref
value:
1. Track User Signups
REFERRAL_CODE
:
2. Track Payments
3. Track Refunds
Note: Replace all placeholder values ( USER_ID
,YOUR_API_KEY
, etc.) with your actual data.
Verification
sweet_ref
cookie in your browser to confirm proper setup. This cookie stores the referral code and should be included in your signup tracking request as ref_code
.Modified at 2024-11-17 13:47:51