Welcome to WebmasterWorld Guest from

Forum Moderators: eljefe3 & skibum

Message Too Old, No Replies

Merchant advises against PHP to mask affiliate links

But links seem to redirect fine and preserve aff info

10:13 am on Dec 17, 2010 (gmt 0)

Full Member

10+ Year Member

joined:Sept 27, 2004
posts: 201
votes: 0

I've been using the common PHP code to hide my CJ aff links

header ("Location: $URL");

This has worked fine for all my sites and merchants so far. However, I've had a tracking problem with one of the merchants recently (sales were not tracked at all) and they advised against using PHP redirects as that may not track properly.

I've done a server headers check on both masked and non-masked links and the affid is preserved in both cases. I can't see how it wouldn't track properly but if it's true, then I'm concerned that some of the sales may not track for ALL my other merchants with Commission Junction and other networks.

So, in your experience, could the code above cause problems? Also, could it only fail with some of the sales or is it safe to say that if it works (e.g. tracks sales), then I can expect it to be consistent?

7:59 am on Jan 4, 2011 (gmt 0)

Full Member

10+ Year Member

joined:July 12, 2002
votes: 1

There is NO problem with the code for tracking. Problem is with your merchant. Stop promoting them.