Skip to main content

Commission for Clicks

Pay affiliates for clicks by creating a conversion for each click.

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.


​

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., sale or click_commission).

  • Access to website code: You must be able to insert JavaScript or HTML into your landing page.

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.

  1. Copy the script below:

    <!-- Trackdesk tracker with commission on click begin -->
    <script async src="//TENANT_ID.trackdesk.com/main.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("TENANT_ID", "click", {}, (data) => {
    trackdesk("TENANT_ID", "conversion", {
    "conversionType": "CONVERSION_TYPE"
    });
    });
    </script>
    <!-- Trackdesk tracker with commission on click end -->
  2. Paste it into your landing page, as high as possible in the <head>, ideally right after the opening <head> tag, so the click is recorded before the visitor can leave the page.

  3. Replace these values:

    • TENANT_ID: your Tenant ID

    • CONVERSION_TYPE: the code of your fixed Conversion Type

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.

  1. Locate the landing page where users arrive after the redirect.

  2. Use the following URL structure to trigger the commission for a click:

    https://TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=CONVERSION_TYPE&cid=CLICK_ID
  3. Replace these values:

    • TENANT_ID: your Tenant ID

    • CONVERSION_TYPE: the code of your fixed Conversion Type

    • CLICK_ID: the Click ID (CID) passed to your landing page via the URL parameter

Testing

How to verify the setup

  1. Use an affiliate tracking link to visit your landing page in an Incognito/Private browser window.

  2. After the page loads, log in to your Trackdesk account.

  3. Go to Reports → Conversions.

  4. Verify that a new conversion has been recorded for that visit.

Did this answer your question?