Trackli
Use Case|Stripe Checkout

Track Affiliate Referrals for Stripe Checkout

Stripe Checkout provides a conversion-optimized payment experience, but it can break traditional affiliate tracking by redirecting to Stripe-hosted pages. Trackli maintains attribution through the entire Checkout flow using client_reference_id and metadata, so no referral is ever lost.

How to Set Up Stripe Checkout Affiliate Tracking

Get up and running in minutes with these simple steps.

1

Pass Referral Data to Checkout

Add Trackli's client_reference_id to your Stripe Checkout Session creation. This embeds the affiliate identifier directly in the Checkout flow.

2

Listen for checkout.session.completed

Trackli reads the client_reference_id from the completed session and attributes the payment to the referring affiliate.

3

Set commission rules

Percentage or flat-rate, on the gross amount charged, for one-time purchases and for subscriptions started through Checkout. Renewals earn recurring commissions on each invoice.paid.

4

Verify with a referred purchase

Click your own referral link, complete a Checkout, and watch the pending commission appear in the Trackli dashboard for approval.

How It Works

From referral link to commission approval — fully automated with Stripe Checkout. You pay your affiliates however you already do.

Affiliate tracking flow diagram for Stripe Checkout

Frequently Asked Questions

How does Trackli maintain attribution through Stripe Checkout?
Trackli embeds the affiliate identifier in the Checkout Session's client_reference_id field. When Stripe fires the checkout.session.completed webhook, Trackli reads this identifier to attribute the payment to the correct affiliate.
What if the customer clears cookies before paying?
Attribution rides on the client_reference_id inside the Checkout Session itself, so once the session is created with the affiliate's identifier the 90-day first-party cookie is no longer the only link between the click and the payment.
What about multi-product Checkout sessions?
The whole session is one order. Trackli attributes the full gross amount of that order to the referring affiliate and applies their commission rate to it.
Do refunds through Stripe affect commissions?
Yes. When Stripe emits charge.refunded, Trackli reverses the commission tied to that payment, so you never pay out on money you returned.
Do I need to modify my Stripe Checkout code?
One parameter: set client_reference_id when you create the Checkout Session. That is the only code change.

Ready to launch your affiliate program?

Start tracking affiliate referrals in minutes. No complex setup, no enterprise pricing.