Clickbank Publisher Hacks, Part 2: Why should Clickbank get all the link love?

Yesterday I created a simple (very, very simple) script to allow Clickbank merchants to redirect their hoplink to different products.

This is beneficial because it allows you to run affiliate programs for up to 50 products from one account, without creating a distracting intermediary page listing all your products. Running all your programs from one account also will increase the gravity of your account, making it look more appealing to affiliates in the Clickbank marketplace.

Today I’m going to create a script to go along with yesterdays redirection code to fix another problem I have with Clickbank. It’s nice to have a lot of affiliates linking to your products, but they’re not really linking to you. They’re linking to hop.clickbank.net.

Since we’re already giving affiliates custom codes to link to our products, why not add a second redirection script so that those custom affiliate codes give us the link love instead of Clickbank?

Yesterday we created a file called hop.php, and once we were done, our affiliate hoplink codes looked a little like this:

http://AFFILIATE.PUBLISHER.hop.clickbank.net/?prod=1

Today, we’re going to create a file called go.php which will bounce visitors to the correct hoplink from our site. The hoplink directs those visitors to hop.php back on our domain, and hop.php directs them to the correct sales page, wherever that may be. If the average visitor even had a clue how much jumping around they were doing in the background, they’d feel a little bit like Tigger. Fortunately it will generally be instantaneous and invisible to most users.

We want our actual affiliate links to look like this:
http://www.oursite.com/go.php?a=AFFILIATE&prod=1

Our script needs to take the variables passed in that URL and send them in the correct format to Clickbank.

All you need to change in this script is your publisher id.


<?php
//go.php custom affiliate links


//Define your Clickbank publisher ID
$publisher="PUBLISHER";

//create the hoplink URL
$hoplink="http://" . $_GET['a'] . "." $publisher . ".hop.clickbank.net/?prod=" . $_GET['prod'];

//redirect
header("Location: $hoplink");
?>

And that’s all there is to it!

Tomorrow I’ll tackle the final problem I have with Clickbank by showing you how you can own your own affiliates while still using Clickbank to run your program.

5 comments

  1. […] by affiliates to oodles of different product sales pages from one clickbank account, and created custom affiliate URLs to ensure that affiliates are linking to your site, not Clickbank’s, for their affiliate […]

  2. Holger says:

    I am busy building a website for the purpose of redirecting visitors to clickbank merchant sites but do not want my clickbank ID to show in the address bar.

    The following code does not do it.

    If you’re not redirected to the proper page in 5 seconds,
    Click
    Here
    .

    Could you perhaps help me with that?
    Thank you,
    Holger

  3. Chris Monty says:

    OK, you’re making my head hurt a little bit but I think I get it. Good trick. Thanks.

  4. Thanks for the post.. this is awesome. I always wondered how I could market multiple product from a single account. Honestly, I didn’t think it was possible. I’ll give this a try and report back. Thank you!

  5. Joe Ward says:

    Look forward to reading more from you in the future. check out my site and let me know what you think, its got other freebies as well as phone tricks, hope you like 🙂

Leave a Reply

%d bloggers like this: