1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Passing Affiliate ID From ClickBank Cookie

Discussion in 'ClickBank' started by imarketing101, Jul 19, 2010.

  1. #1
    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?
     
    imarketing101, Jul 19, 2010 IP
  2. dlm

    dlm Peon

    Messages:
    3,123
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    dlm, Jul 19, 2010 IP
  3. deanbrown

    deanbrown Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't think you need specific code for that.

    Just type your hyperlink directly and you should be fine.
     
    deanbrown, Jul 19, 2010 IP
  4. imarketing101

    imarketing101 Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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?
     
    imarketing101, Jul 20, 2010 IP
  5. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #5
    Try $_GET["hop"] instead of $_COOKIE["hop"]
     
    Ripped, Jul 20, 2010 IP
  6. imarketing101

    imarketing101 Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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 :(
     
    imarketing101, Jul 20, 2010 IP