How do I track affiliate sales by coupon code?

Set up affiliate coupon codes and verify that the first coupon order is credited to the right partner.

Trackdesk AI workflow animation
For:Affiliate ManagerAsks before changes
Most useful for:
  • eCommerce
  • SaaS
  • Nutra & Health

How to set up coupon tracking with Trackdesk AI

Create coupon codes for your affiliates in one go, set a special rate for coupon sales and track every redemption to the right partner.

Qualified Trackdesk AI Crew agents can run eligible tasks automatically in Autopilot, within the rules you set.

Trackdesk AI

Help me set up coupon tracking on the offer Store: create SUMMER codes for my 12 top affiliates and pay 8% on coupon sales.

Trackdesk AI

12 codes for 12 affiliates on the offer "Store" Created after your approval: SUMMER-ANNA, SUMMER-DEALSBLOG and 10 more Coupon sales pay 8% (pricing group "Coupons") In Shopify: create the same 12 codes Check: a test order with SUMMER-ANNA should be credited to Anna Reviews

Approve this change?

Trackdesk AI shows exactly what will change. Nothing happens until you approve, and the action is logged under your user.

Ask a follow-up…

Open Trackdesk AI to run this task or ask a follow-up using your own program data.

New to Trackdesk? Start a free trial.

Good to Know

  • Whether the click or the coupon wins when both are present is one setting for the whole account.

Run this check in Claude, ChatGPT or Cursor

Connect Trackdesk to your AI tool, paste the setup prompt, then fill in the placeholders in the task prompt.

Task Prompt
# Help me set up coupon tracking
Trackdesk · Setup · asks before any change

Inputs (edit before you run)
- Offer: {name}
- Affiliates and codes: {list, or "top 12 by sales" with a pattern like SUMMER-NAME}
- Coupon rate, if different: {8%}

Steps
1. POST /api/node/offers/v1/list and POST /api/node/coupons/v1/list (filters at the top level, pagination required): the offer and codes that already exist. Top affiliates, if asked: the overview report grouped by REPORT_GROUPING_SOURCE.
2. Build the list of new codes; check none exists already.
3. After my yes: POST /api/node/coupons/v1, one call per code: {source: {id}, offerId, code, status: COUPON_STATUS_ACTIVE} (I approve the whole list once). If a coupon rate is wanted: a targeting group whose rules[].coupons lists every code (there’s no “any coupon” rule), sent with the full pricing in PUT /api/node/offers/v1/{id}/pricing.
4. Tell me what to create on the store or Stripe side so the codes match exactly.

Rules
- Codes must match exactly in the store and in Trackdesk.
- Change nothing until I say yes.

Answer
- The codes per affiliate, the rate, what I do in my store, and how to test.

Trackdesk AI is built into the Trackdesk affiliate platform and uses your live program data to answer questions and prepare work for your review.

See how it works