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:
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:
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.
//go.php custom affiliate links
//Define your Clickbank publisher ID
//create the hoplink URL
$hoplink="http://" . $_GET['a'] . "." $publisher . ".hop.clickbank.net/?prod=" . $_GET['prod'];
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.