Converting web link to affilicate(CJ) links dynamically

Discussion in 'Affiliate Programs' started by stn2006, Aug 31, 2007.

  1. #1
    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?
     
    stn2006, Aug 31, 2007 IP
  2. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #2
    I don't think you can, unfortunately. If you can then I'm interested too.
     
    JamesColin, Sep 1, 2007 IP
  3. micksss

    micksss Notable Member

    Messages:
    4,427
    Likes Received:
    268
    Best Answers:
    1
    Trophy Points:
    285
    #3
    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.
     
    micksss, Sep 1, 2007 IP
  4. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #4
    live-cms_com, Sep 1, 2007 IP
  5. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #5
    the two last posters missed the point, they don't answer the question
     
    JamesColin, Sep 1, 2007 IP
  6. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #6
    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.
     
    live-cms_com, Sep 1, 2007 IP
  7. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #7
    yes it looks like there's no easy way to substitute the original merchant website's links to your CJ equivalent.
     
    JamesColin, Sep 1, 2007 IP
  8. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #8
    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.
     
    MrX, Sep 1, 2007 IP