Clickbank Affiliate ID Post Thank You Page

4 replies
Hi,

Looking to find out of this is possible.

I want to try and pass the CB Affiliate Nickname to the Thank You page, so I can incorporate it into my own backend for special purposes. This is not for pitchplus upsells, but for my own special upsell/offer?

Has anyone done this or know if it is possible?

Thanks,

Gaz
#affiliate #clickbank #page #post
  • Profile picture of the author MilesBaker
    Hello Gaz,

    Yes, this is possible, you need a special script to do it. Basically you don't collect the nickname from the thank-you page though, you collect it from the URL "hop" variable when the visitor comes to your site. There are probably a few ways to do it, but the way we do it, is instead of listing our website in ClickBank as "mysite.com", instead we list it as "mysite.com/script.php", then that script gets the hop variable, it does other things as well, such as redirecting the affiliates to a certain page if they added additional variables to their hoplink, etc.

    Anyway, once you read that hop variable you can write it to a cookie or whatever.

    Nonetheless, it CAN be done.
    {{ DiscussionBoard.errors[7700099].message }}
    • Profile picture of the author eramedia
      I also found this, which leads me to believe it can be done from the thank you page directly too.

      Passing Data

      With every transaction, ClickBank passes nine query string parameters to your Thank You Page. The nine are listed below. You can use this data to personalize the messaging on your Thank You Page. For example, you could say “Welcome [Customer's Name].” Personalizing data on the Thank You Page can enhance customer satisfaction by creating a heightened sense of security about the purchase.

      ClickBank receipt number (cbreceipt)
      Epoch time of the order (time & seconds)
      ClickBank item number (item)
      ClickBank proof of purchase (cbpop)
      Customer name (cname)
      Customer e-mail (cemail)
      Customer zip (czip)
      Customer country (ccountry)
      Affiliate nickname (cbaffi)
      Vendor variables (up to 128 bytes)
      {{ DiscussionBoard.errors[7700171].message }}
      • Profile picture of the author Brandon Tanner
        Easy. If you want to save the affiliate ID to a PHP variable, then do this on your thankyou page...

        <?php $affiliate = $_GET['cbaffi']; ?>

        Or if you just want to display the ID somewhere on the page, do this...

        <?php echo $_GET['cbaffi']; ?>

        Just make sure your thankyou page has a .php extension.
        Signature

        {{ DiscussionBoard.errors[7700768].message }}

Trending Topics