Empower your affiliates with our coupons feature, designed to enhance their promotional efforts. It lets your affiliates redeem coupon codes assigned to them - and when a customer redeems an affiliate's code at checkout, the conversion is attributed back to that affiliate.
Coupon tracking can be set up in several ways:
Bulk import – add many coupons at once via CSV import.
JS tracking code – placed on your thank-you page.
API – for fully custom integrations.
Native app – e.g. tracking coupons in the Stripe app.
See our pricing page for the coupon limits on each plan. The Coupons feature and its limits depend on your subscription.
Add coupons
Coupons are assigned to individual affiliates. To add one, go to Affiliates → Coupons and click Add new coupon.
You can either create a coupon manually or import many at once from a CSV file.
In order to create a coupon, use the Add new coupon button, fill in the following information, and confirm the coupon creation.
Code - Coupon code your affiliate will be promoting.
Referral ID - Affiliate for which the coupon will be created.
Offer - Offer for which the coupon should be attributed.
Status - If the coupon should be active right away or you want to activate it later.
Import coupons in bulk (CSV)
If you're migrating from another platform or have a large batch of codes, use Import from CSV in the same Add new coupon modal. Your file needs three columns - Code, Offer ID, and Referral ID - and Trackdesk shows a validation preview before you commit. For the full walkthrough, see Import Coupons via CSV.
Redeem a coupon manually
In order to redeem a coupon manually, navigate to the conversion report and use the Manually redeem coupon button and fill in the following information.
Code - Coupon code you want to use (aims to an affiliate and offer).
Conversion type - Conversion type for which you want to redeem the coupon.
Amount - Amount from which the commission will be counted in case of dynamic payout on the offer; if the conversion type is set to fixed, the amount is not required.
Country - Country of the customer who redeemed the coupon; if you don't know the country and have the offer set to global tracking, set it to any value.
Status - Status with which the conversion will be created.
External ID - Optional parameter of External ID.
Customer ID - Optional parameter of Customer ID.
View redeemed coupons
Redeemed coupons appear in two places under Reports: the Conversion Report and the Overview Report.
Tracking coupons via Zapier
Fill in the following information in the Zap action.
Use the Trackdesk action Create Coupon Conversion and fill in:
Coupon code – the code (maps to an affiliate and offer).
Conversion status – the status the conversion is created with.
Revenue origin ID – found on the Settings page under Your Trackdesk identifiers (top-right).
Conversion type code – the conversion type to redeem the coupon for.
Country of customer – the ISO 3166-1 alpha-2 country code; use
XXif unavailable.Amount – required for order-value-based payouts; not required for fixed payouts.
External parameters – External ID, Customer ID, and AdvS1–AdvS5.
For platform-specific setups, see Track Stripe Coupons via Zapier and Track Shopify Coupons via Zapier.
Tracking coupons via JS code
To redeem a coupon via JavaScript, place the relevant snippet on your thank-you page and fill in the coupon code(s).
If the conversion type uses a fixed payout (no order amount needed):
<!-- Trackdesk tracker begin -->
<script async src="//cdn.trackdesk.com/tracking.js"></script>
<script>
(function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");
trackdesk('YOUR_TENANT_ID', 'conversion', {
couponCodes: ["YOUR_COUPON_CODE"],
revenueOriginId: 'YOUR_REVENUE_ORIGIN_ID',
conversionType: 'YOUR_SELECTED_CONVERSION_TYPE'
});
</script>
<!-- Trackdesk tracker end -->
Make sure to replace YOUR_TENANT_ID with your actual Tenant ID. You can find your Tenant ID in the settings page, under the "Your Trackdesk identifiers" button in the upper right hand corner of the screen.
Make sure to replace YOUR_COUPON_CODE with the coupon that was redeemed by the user.
Make sure to replace YOUR_REVENUE_ORIGIN_ID with your actual Revenue origin ID. You can find your Revenue origin ID in the settings page, under the "Your Trackdesk identifiers" button in the upper right hand corner of the screen.
Make sure to replace YOUR_SELECTED_CONVERSION_TYPE with the conversion type you want the coupon to be created with.
In case you have dynamic payouts set on the Offer, please use following code:
<!-- Trackdesk tracker begin -->
<script async src="//cdn.trackdesk.com/tracking.js"></script>
<script>
(function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");
trackdesk('YOUR_TENANT_ID', 'conversion', {
couponCodes: ["YOUR_COUPON_CODE"],
revenueOriginId: 'YOUR_REVENUE_ORIGIN_ID',
conversionType: 'YOUR_SELECTED_CONVERSION_TYPE',
amount: {
value: 'YOUR_ORDER_AMOUNT'
}
});
</script>
<!-- Trackdesk tracker end -->
Make sure to replace YOUR_TENANT_ID with your actual Tenant ID. You can find your Tenant ID in the settings page, under the "Your Trackdesk identifiers" button in the upper right hand corner of the screen.
Make sure to replace YOUR_COUPON_CODE with the coupon that was redeemed by the user.
Make sure to replace YOUR_REVENUE_ORIGIN_ID with your actual Revenue origin ID. You can find your Revenue origin ID in the settings page, under the "Your Trackdesk identifiers" button in the upper right hand corner of the screen.
Make sure to replace YOUR_SELECTED_CONVERSION_TYPE with the conversion type you want the coupon to be created with.
Make sure to replace YOUR_ORDER_AMOUNT with the amount you want to prorate to the system.
Tracking coupons via API
In order to track Coupon conversions use the endpoint POST /api/node/conversions/v1/coupon.
Coupons with recurring subscriptions
If your offer pays affiliates across recurring billing cycles (e.g. monthly subscriptions), coupon attribution needs to persist across renewals. See Coupon Tracking With Recurring Subscriptions for how to set this up.
Note:
The offer a coupon is associated with must be in Active status for the coupon to work. If the offer is Inactive, the coupon won't function regardless of the coupon's own status.







