Jump to content

Affiliate Tracking Pixel Intergration


Recommended Posts

Hi Everyone, some of our affiliates want to use tracking pixels but I don't feel safe putting there pixel on the checkout because it would be for every checkout.


Is there a way I can use the WHMCS affiliate setup to only show there tracking pixel when the customer comes in from there WHMCS affiliate link?


Some sort of : if(affiliate_ID){ tracking pixel code here} ??


Thanks in advance. :-)

Link to comment
Share on other sites

It would be like:

{if}{$affiliate_ID} CODE here {else} {/if}


Im not 100% sure as im not a coder here i just edit WHMCS :)


What it says there is if Affiliate_ID show this else show nothing.


But id wait for a reply, if its possible could you post the full code when completed here it sounds good :)

Link to comment
Share on other sites

Add the following code to the template:




And then go through a test order after you've been referred by an affiliate, and on the completed checkout page the {debug} code will produce a pop-up box showing you all of the available variables that you can use.


You'll then be able to see if the affiliate referrer variable is available, as well as the correct name for it.


At which point you'll be able to use the following code:


{if $variable eq "their aff ID"}put custom tracking cookie here{else}<!-- Not their aff ID, so show nothing -->{/if}


^^That's untested but it should work

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated