Hi, I have just set up a t-shirt ranking site. It is a free service but I had intended to add an affiliate code and it would pay for itself that way.
An I had done that or so I thought. I was able to add the affiliate code automatically to the script but I later found that the code was being stripped in the redirect.
The link I am using is as follows...except it is on one line. I broke it up so it wouldn't break up the page.
If you want to check out the link for yourself you can just look at my site - The Shirt List.
I was given the following piece of advice.
Unfortunately I don't know how to do this. If someone can help me I'd appreciate it.
An I had done that or so I thought. I was able to add the affiliate code automatically to the script but I later found that the code was being stripped in the redirect.
The link I am using is as follows...except it is on one line. I broke it up so it wouldn't break up the page.
HTML:
http://theshirtlist.com/cafepress/design_hit.php?
design_id=eccbc87e4b5ce2fe28308fd9f2a7baf3&
design_url=http://www.cafepress.com/deadhippo
/1201429&pid=xxxxxxx&tid=SL1
If you want to check out the link for yourself you can just look at my site - The Shirt List.
I was given the following piece of advice.
You haven't URL encoded the design_url value.
You won't be receiving any commission with that link. It's stripping away at the ampersand before pid. So all that gets passed to your redirect script is: http://www.cafepress.com/deadhippo/12014929
It should be formed like this:
HTML:http%3A%2F%2Fwww%2Ecafepress%2Ecom%2Fdeadhippo +%2F1201429%26pid%3Dxxxxxxx%26tid%3DSL1
You use a function called URLEncode to make the link look like that.
Then you need to decode it on your redirect script. Then redirect. And hey presto you redirect with a pid and a tid. No stripping away at the ampersand.
Unfortunately I don't know how to do this. If someone can help me I'd appreciate it.









