This feature allows you to reward affiliates for every click they generate, rather than waiting for a specific sale or lead. This is achieved by automatically triggering a conversion event the moment a user lands on your site through an affiliate link.
⚠️ Important:
Offer Configuration: You must have an offer with exactly one fixed conversion type created before setting this up.
Recurrence Settings: We strongly recommend setting the conversion recurrence to Once. This prevents the system from creating duplicate commissions if a user refreshes the page or visits the same link multiple times.
Placeholder Replacement: You must manually replace all placeholders (e.g.,
YOUR_TENANT_ID) with your actual account data for the tracking to function.
1. Before You Start
Before implementing the code, ensure you have the following:
Tenant ID: Found in your Trackdesk dashboard under Settings > Your Trackdesk identifiers (top right corner).
Conversion Type Code: The specific code for the conversion you created (e.g.,
saleorclick_commission).
Access to Website Code: You must be able to insert JavaScript or HTML into your landing page.
2. Step-by-Step Instructions
Option 1: Integration for Direct Linking
If you use Direct Linking, you do not need separate scripts for clicks and conversions. Instead, use this combined script on your landing page to handle both actions simultaneously.
Copy the script below.
Paste it into the
<head>section of your landing page.
Replace YOUR_TENANT_ID and YOUR_CONVERSION_TYPE with your actual data.
<!-- Trackdesk tracker with commission on click 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", "click", {}, (data) => {
trackdesk("YOUR_TENANT_ID", "conversion", {
"conversionType": "YOUR_CONVERSION_TYPE"
});
});
</script>
<!-- Trackdesk tracker with commission on click end -->
Option 2: Integration for Redirect Tracking
If your program uses the Redirect tracking method, you must trigger a conversion via a postback URL or a tracking pixel when the user reaches the landing page.
Locate the landing page where users arrive after the redirect.
Use the following URL structure to trigger the commission for a click:
https://YOUR_TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=YOUR_CONVERSION_TYPE&cid=OUR_CID
Replace the placeholders:
YOUR_TENANT_ID: Your unique account identifier.
YOUR_CONVERSION_TYPE: The code for your fixed conversion.
OUR_CID: The Click ID (CID) passed to your landing page via the URL parameter.
3. Testing
How to verify the setup:
Use an affiliate tracking link to visit your landing page in an Incognito/Private browser window.
After the page loads, log in to your Trackdesk account.
Go to Reports > Conversions.
Verify that a new conversion has been recorded for that visit.
