Folks, I have a CJ affiliate account. I am using it on my web site. Any product I put on web site, I have to login to CJ account and create the affiliates link and then post it on my web site. Can this be done dynamically(programmatically) by just using original web link & my affiliate ID? Or in other words can I build referral links dynamically? Is there any way or tricks to do that?
I personally haven't done it. But you can setup a Smart Zone with banners that rotate. Under the "Get Links" tab goto the "SmartZone Settings" tab.
Then you would do page scraping with PHP, you use filegetcontents() to access the html of the URL then use REGEX to collect the specific parts you want. It's quite a lot of effort though.
yes it looks like there's no easy way to substitute the original merchant website's links to your CJ equivalent.
Here's how you do it. Look through the merchant's CJ links for one that says "Advertiser allows URL redirects for this link". That's the magic link code for what you want. Now you need to slap on ?url= and then at the end of the equals sign add the urlencoded destination you want to send your visitor too, which in this case is the specific product page. Your final link will look like http://www.tkqlhce.com/click-xxxxxxx-xxxxxxx?url=http%3A%2F%2Fwww.somesite.com%2Fsomedir HTML: See how the url part looks weird...that's because it's urlencoded (look up php's urlencode function). Some merchants don't allow URL redirects btw.