Coupons
David Rolenc avatar
Written by David Rolenc
Updated over a week ago

Empower your affiliates with our coupons feature, designed to enhance their promotional efforts. This feature enables your affiliates to redeem coupons assigned to them. When a customer redeems an affiliate's coupon code during the checkout process, you are able to track attribution of the coupon conversion to the affiliate.

Various integrations can be used to set up tracking of coupons - via Zapier, via JS tracking codes and via API.

Free users are limited to 5 active coupons and users in the Growing Business plan to 50 active coupons. Enterprise users have access to unlimited amount of active coupons.

Add coupons

Coupons can be added manually to individual affiliates. In order to add a coupon code for an affiliate, navigate to menu Affiliates, submenu Coupons.

In order to create a coupon, use Add new coupon button, fill the following information and confirm the coupon create.

  • Code - coupon code your affiliate will be promoting

  • Referral ID - affiliate for which coupon will be created

  • Offer - Offer for which the coupon should be attributed

  • Status - If coupon should be active right away or you want to activate it later

Redeem a coupon manually

In order to redeem a coupon manually, navigate to Conversion report and use Manually redeem coupon button and fill 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 commission will be counted in case of dynamic payout on the offer, if conversion type is set to fixed on the offer amount is not filled

  • Country - country of the customer that redeemed the coupon, if you don't know the country and have offer set to global tracking, set any value

  • Status - status with which conversion will be created

  • External ID - optional parameter of External ID

  • Customer ID - optional parameter of Customer ID

View redeemed coupons

Redeemed coupons can be found in two place - in Conversion report and Coupon overview report in menu Reports.

Keep in mind that if you don't have the feature on your Plan then you won't see the Coupon overview report.

Tracking coupons via Zapier

In order to track coupons via Zapier use Trackdesk action Create Coupon Conversion.

Fill the following information in the Zap action.

  • Coupon code - coupon code you want to use (aims to an affiliate and offer)

  • Conversion status - status with which conversion will be created

  • Revenue origin ID - your Revenue origin ID, it can be found in Settings page, at the bottom of the page

  • Conversion type code - conversion type for which you want to redeem the coupon

  • Country of customer - 3 character ISO 3166 shortcut for country, If you don't have a country available use a placeholder XXX.

  • Amount - amount from which commission will be counted in case of dynamic payout on the offer, if conversion type is set to fixed on the offer amount is not filled

  • And external parameters for your values - External ID, Customer ID, Adv S1 - S5 parameters

Tracking coupons via JS code

In order to redeem a coupon via JS code you will need to paste the following code to the thank you page. On the thank you page you will be required to fill used coupons to the code.

In case you have fixed 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'
});
</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, at the bottom of the page.

Make sure to replace YOUR_COUPON_CODE with the value of the redeemed coupon.

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, at the bottom of the page.

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, at the bottom of the page.

Make sure to replace YOUR_COUPON_CODE with the value of the redeemed coupon.

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, at the bottom of the page.

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. Keep in mind that you need to fill a country of the customer in format of ISO 3166of 3 chars (e.g. USA). If you don't have a country available use a placeholder XXX.

Did this answer your question?