Tracking code for affiliates

Affiliate Linking Code

You can specify affiliate link code in the config area. Below is an example:

<a href="[AffiliateLinkCode]"><img src="" width="468" height="60" border="0"></a><br> <(a href="[AffiliateLinkCode]")><(img src="" width="468" height="60" border="0")><(/a)><br><br> <a href="[AffiliateLinkCode]"><img src="" width="120" height="60" border="0"></a><br> <(a href="[AffiliateLinkCode]")><(img src="" width="120" height="60" border="0")><(/a)><br><br>

The above code entered in the Affiliates Link section will display the image preview of the banner first and then the code below it for the affiliate to use. The <( and )> is special syntax which you must use so the code is not executed as true HTML. WHMCS modifies this when displaying it to the client so it will appear as normal HTML.

For more advanced link code, you can add it directly to the affiliates.tpl template file of your active template folder using the template field {$referrallink} wherever you want to include the affiliates unique referral url.

Linking to a Product

It is possible to link directly to the order form for a specific product. To do this, simply append &pid=x to the end of the [AffiliateLinkCode] where x is replaced by the ID of the product. So for example:

<a href="[AffiliateLinkCode]&pid=2"><img src="" width="468" height="60" border="0"></a><br> <(a href="[AffiliateLinkCode]&pid=2")><(img src=" width="468" height="60" border="0")><(/a)>

  • 2 Users Found This Useful
Was this answer helpful?