How to add an affiliate program to a SaaS billed with Paddle
Add Anderro's snippet to the pages that open Paddle Checkout, pass the visitor ID in customData, and add one notification destination in Paddle. Payments, renewals and refunds are then tracked.
Paddle steps last checked December 4, 2026.
Paddle at a glance
| Snippet | <head> of every page that opens Paddle Checkout |
|---|---|
| Secret key | Not needed; paste the notification destination's secret into Anderro |
| Payments | Paddle Checkout (overlay, inline or HTML buttons) |
| Plan needed | A Paddle Billing account |
Set up in 5 steps
1. Create your program on Anderro
Sign up, add your product and choose what affiliates earn. Anderro then shows your tracking snippet with your public key filled in. It also gives you a secret key for your server.
The public key is safe in browser code. The secret key is not: keep it in your platform's secrets as ANDERRO_SECRET_KEY, never in the page or the chat.
2. Add the snippet
Add it to the <head> of every page, and at least the pages that open Paddle Checkout. Paddle's checkout runs on Paddle's own address, so the visitor ID must be read on your page.
By default the snippet waits for the visitor's consent before it sets its cookie. Call window.anderro.optIn() when they accept cookies. Your setup screen in Anderro tells you if your program is set to track without waiting.
<script src="https://track.anderro.com/a.js" data-key="YOUR_PUBLIC_KEY"></script>
3. Pass the visitor ID in customData
Where you call Paddle.Checkout.open, add anderro_vid to customData. Paddle stores it on the transaction and copies it to the subscription, so every renewal carries it.
Paddle does not include the customer's email in its webhook by default. Add customer_email too if you want sign-ups recorded with an email.
const customData = {};
const vid = window.anderro?.getVisitorId();
if (vid) customData.anderro_vid = vid;
Paddle.Checkout.open({
items: [{ priceId: "pri_...", quantity: 1 }],
...(Object.keys(customData).length && { customData }),
});
4. Add a notification destination
In Anderro, open your product, choose Integrations, then Paddle, and copy your webhook URL.
In Paddle, open Events, then Notifications, and create a new webhook destination with that URL. Select transaction.completed, transaction.paid, adjustment.created and adjustment.updated.
Paste the destination's secret key into Anderro. Without it, payments are still recorded but earn no commission, because only signed events are trusted.
5. Test
Open your site through your own test referral link from Anderro and buy in Paddle's sandbox. Sandbox events go to a separate test URL and never earn a commission.
How a sale is tied to an affiliate
The snippet remembers which affiliate sent a visitor and gives that visitor an ID. Your page passes the ID to Paddle in customData, Paddle sends the transaction to Anderro, and the affiliate who sent the customer is credited. Refunds and chargebacks reach Anderro as adjustments and reduce the commission.
A customer who already bought through one affiliate stays with that affiliate, and an affiliate buying through their own link earns nothing unless you allow it.
What to know on Paddle
- US dollars only: a payment is recorded when the transaction or your payout is in USD. Other currencies still record the sign-up, but no payment or commission.
- HTML checkout buttons (
paddle_button) take the same value indata-custom-data. Set it from the visitor ID with a script before the button is clicked. - Commissions wait out a hold you choose (7 to 90 days), so a refund inside the hold never costs you a commission.
If something does not show up
Payments show but earn no commission
Paste the notification destination's secret key into Anderro. Unsigned events are recorded but never earn a commission.
A non-USD sale is missing
Payments are recorded when the transaction or your payout is in US dollars. Other currencies record the sign-up only.
My test click does not show up
The snippet waits for consent: accept cookies on your site, and check that your cookie banner calls window.anderro.optIn(). If your site sets a Content Security Policy, allow https://track.anderro.com in script-src and connect-src.
A sale shows up, but no affiliate is credited
The visitor ID did not reach the checkout. Open the payment in your billing dashboard and check it carries the ID, and buy in the same browser you opened the referral link in.
Questions
Does Paddle have its own affiliate program?
Paddle runs a referral partner program that rewards you with Paddle credit for referring software companies. That pays you for promoting Paddle. This guide is the other way round: running an affiliate program for an app you built. Looking for more software to promote? Browse SaaS affiliate programs on Anderro.
Do renewals need extra code?
No. Paddle copies customData from the first transaction to the subscription, so every renewal carries the same visitor ID. Renewals earn a commission if your program pays on every payment.
Does Anderro pay my affiliates?
No. Anderro tracks clicks, sign-ups and sales and works out what each affiliate earned. You pay affiliates yourself and mark the payout paid in Anderro.
Do my affiliates need an account on this platform?
No. They join your program on Anderro and get their link there. Their link is your site's address ending in ?ref= and their code.
Sources
Paddle's menus and plans change; these are the pages we checked.
- Paddle docs: Paddle.Checkout.open(), checked December 4, 2026
- Paddle docs: Custom data, checked December 4, 2026
- Paddle docs: HTML data attributes, checked December 4, 2026
- Paddle docs: Notification destinations, checked December 4, 2026
- Paddle docs: transaction.completed, checked December 4, 2026
- Paddle: Referrals, checked December 4, 2026
Paddle is a trademark of its owner. Anderro is not affiliated with or endorsed by them.