How Referral Attribution Works
Attribution connects a Stripe sale to the affiliate who referred the customer. Partnersify uses several signals depending on how the sale was created.
Visits and cookies
When a visitor arrives via an affiliate link:
- The pixel records a visit
- A first-party cookie stores the affiliate ID and a timestamp
- At checkout, the cookie is read and passed to Stripe (for Checkout Sessions) or matched automatically (for Payment Links)
Last-click wins — if a customer clicks two different affiliate links before buying, the second one gets credit.
Checkout attribution
For Stripe Checkout Sessions, attribution is checked in this order:
- Affiliate promo code on the session (Growth+)
metadata.psfy_partnerpassed by your serverclient_reference_idon the session- Cookie match via customer email (if sign-in tracking is active)
For Payment Links, the pixel injects tracking automatically. No server code needed.
Subscription renewals
For recurring subscription payments, Partnersify attributes renewals to the same affiliate who was credited on the customer's first payment. This prevents renewals from being re-attributed to newer affiliate referrals.
If no affiliate is attached to the original payment, renewals go unattributed.
What promo codes do
When a customer enters an affiliate promo code at checkout, that takes priority over the cookie. This makes promo codes a reliable backup when cookies are cleared.
If a customer somehow has multiple valid affiliate promo codes, the affiliate with the oldest relationship wins.
Updated