I'm trying to pass the clickbank affiliate ID from the cookie to my referral system and newsletter. Yes, I want to be nice to affiliates How do I put it on the site as PHP? <?php if (isset($_COOKIE["hop"])) echo "http://" . $_COOKIE["hop"] . "hop.clickbank.net"; else echo "http://www.mydomain.com/"; ?> PHP: Doesn't seem like I got it right... Can anyone help? Maybe "hop" isn't the right variable?
I don't know enough PHP to help you...but... In your newsletter, as long as you link directly to the domain name (www.profitlancebonus.com or whatever), the user's cookie will not be overwritten and the original affiliate will still get credit for the sale.
I don't think you need specific code for that. Just type your hyperlink directly and you should be fine.
Ok, I think i didn't explain well. You know how ClickBank sets a cookie when someone clicks on the affiliate link? I just want to get the part of this cookie that credits the affiliate and use PHP to write it on a page so when the user submits a form it will send the code to my aweber. Sorry, the PHP I had created was just to test that I could display it on the page. Makes sense?
Thanks... didn't work though. The parameter might be called something else like "cbhop" I've been searching around and even emailed CB, but so far... nothing