Background
⌘K

Tracking debug checklist

Step-by-step diagnostic when affiliate clicks come in but referrals or commissions don't.

Silvestro
Written by Silvestro
Updated more than a week ago

Affonso tracking works in two stages: a browser-side cookie set by the pixel script, and a server-side metadata field forwarded into your payment provider. This checklist walks through each stage so you can pinpoint where attribution is failing.

1. The pixel script is installed on the live site

View source on your live site and search for affonso. The pixel <script> tag must be present. Site redesigns or deploys can silently remove it.

If missing, reinstall from the appropriate framework guide.

  1. Visit your site with an affiliate link, e.g. https://yourdomain.com/?atp=test.
  2. Open DevTools → ApplicationCookies → your domain.
  3. Look for affonso_referral.

Cookie present → the browser-side tracking is working. Cookie missing → the script isn't loading correctly or is blocked by a consent banner.

3. Single-page apps load the script before bootstrap

For Angular, React Router, Vue Router, and other SPAs, the pixel must load before your app's JavaScript bootstraps. Place it in index.html (in <head> or just before </body>), not inside a component or layout file.

4. Stripe is in live mode

Affonso ignores Stripe test-mode webhooks. For end-to-end testing, use live mode with a 100% off coupon. See Stripe test mode and Affonso tracking.

The cookie value must be forwarded as metadata when you create the checkout session:

  • Stripe: metadata.affonso_referral
  • Polar / Creem / Dodo / Paddle: see the relevant integration guide.

Open one of your transactions in the provider's dashboard and confirm the metadata field is present.

6. The webhook endpoint is configured

Each payment provider needs its webhook pointed at Affonso so transaction events reach us. Configure under Tracking & Coupons → Connect.

Was this article helpful?

If you still need help, our support team is here for you.

Contact Support
bg

Ready to Scale Your SaaS?

Affonso is the easiest way to launch your own affiliate program. We take care of the technical stuff, so you can focus on growing your business.