This guide walks you through how to track affiliate referrals, handle commission events, and grow your revenue with trusted affiliate partnerships via Dodo Payments.
We have partnered with Affonso, a leading affiliate management platform to power your sales. Follow the steps below to connect your Dodo Payments account with Affonso and begin tracking affiliate-driven sales.
1
Connect with Dodo Payments
To get started, connect your Dodo Payments account by adding your API key.
After saving the webhook in Dodo Payments, copy the signing key provided
Paste it back into Affonso under the Dodo Payments webhook settings
3
Add the Tracking Script
Place the Affonso pixel on your site to start tracking affiliate visits and conversions.
Copy
<!-- Place in <head> tag --><script async defersrc="https://affonso.io/js/pixel.min.js"data-affonso="YOUR_PUBLIC_PROGRAM_ID"data-cookie_duration="YOUR_COOKIE_DURATION"></script>
This script:
Tracks affiliate visits
Sets a cookie with the referral ID (affonso_referral)
Enables signup and payment tracking
4
Track User Signups
To gain funnel visibility and optimize affiliate performance, track user signups as leads.
Copy
// After successful registrationwindow.Affonso.signup(userEmail);
This will:
Log a new referral as a LEAD if the user came via an affiliate link
Display it in your dashboard and the affiliate’s stats
5
Pass Referral Data to Dodo Payments
To attribute commissions correctly, pass the referral ID from Affonso to Dodo Payments during checkout.