Overview
Choose how to track affiliate sales with Stripe.
Choose Your Method
Not sure? Start with Coupon Codes — works everywhere with zero code.
How Tracking Works
Click — Visitor clicks affiliate link (
yoursite.com?ref=CODE)Cookie — Referral is stored in a cookie (30 days default)
Purchase — Visitor buys via Stripe
Webhook — Stripe sends payment event to PromoteBoost
Attribution — Sale is matched to the affiliate
Commission — Amount is calculated and recorded
Attribution Priority
When multiple affiliates could get credit, this order decides:
1st
Coupon Code
Customer used JOHN20
2nd
Metadata
promoteboost_referral in Checkout
3rd
Cookie
Last click from ?ref=john
Coupon codes always win — even if the customer clicked a different affiliate's link.
Install the Tracking Script
For most methods, add this to all pages:
What it does:
Captures
?ref=CODEfrom the URLStores referral in a first-party cookie
Makes
window.promoteboost_referralavailable to your code
Find your Org ID: Settings → Integration
Testing Your Integration
1. Create a Test Affiliate
Go to Affiliates → Create and add a test affiliate with code test123.
2. Click the Referral Link
Visit your site with the referral parameter:
3. Check the Cookie
Open browser DevTools → Console:
4. Make a Test Purchase
Use Stripe test mode with card 4242 4242 4242 4242.
5. Verify in Dashboard
Go to Conversions — you should see a new pending conversion attributed to your test affiliate.
Troubleshooting
promoteboost_referral is undefined
Check if tracker.js is loaded (Network tab)
Cookie not set
Make sure you're on HTTPS
Sale not tracked
Check Stripe webhook logs
Wrong affiliate credited
Check attribution priority above
→ See FAQ for more help.
Last updated