visbits Posted July 7, 2010 Share Posted July 7, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
BarginHosts Posted July 8, 2010 Share Posted July 8, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
visbits Posted July 13, 2010 Author Share Posted July 13, 2010 Tired that, does not work. Any one know a way I can do this? 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted July 13, 2010 Share Posted July 13, 2010 Add the following code to the template: {debug} 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.