PDA

View Full Version : Beware of javascript to create order link - track affiliate,


Yuan Yudistira
08-13-2009, 06:06 PM
Dear all

I just notice that in order to tract affiliate, delavo , use javascript to
create a link or image link.

I don't know about the statistic - how many people
disabled javascript - , but some people will disabled javascript.

What happen when they disabled javascript?
There is no order link at all ....

I believe there is a way around to handle ,

here is one you can try :

use
<noscript>
<a href="http://LinkWithoutAffiliateTracking">Order Link</a>
</noscript>

the block <noscript> </noscript> will be run automatically when
users disabled javascript



Thanks

Yuan

Paula Fugaro
08-24-2009, 04:37 PM
You make a good point Yuan.

But if you create your sales page as a .php file instead of .htm or .html, then you can still pass your affiliate and campaign info onto the order page.

If your affiliate is sending someone to your sales page with a link like this:

http://www.yourdomain.com/salespage.php?aff_id=xxx&camp_id=yyy

Then you can still pass that info onto your order link like this:

<noscript>
<a href="http://LinkWithoutAffiliateTracking<?php echo '?aff_id='.$_GET['aff_id'].'&camp_id='.$_GET['camp_id']; ?>">Order Link</a>
</noscript>

The affiliate info will not be cookied this way, but your affiliate will get credit for the sale.

Hope this helps someone,
Paula.

P.S. There's a way to cookie the affiliate info using PHP as well, and I'll post the code here if anyone asks for it.