Redirecting Customers From Your HopLink Target Page

A redirect system automatically redirects customers from your HopLink target URL to one of your product pitch pages. This lets you sell a wider variety of products through a single account without confusing your customers. It also lets you test different versions of pitch pages.

The redirect system consists of a script, which is hosted on your server, and a set of parameters that match to your pitch pages. Your affiliates pass the correct parameter with their HopLinks, and the script directs customers to the associated pitch page.

The following subjects are covered in this article:

Overview

Each vendor account has a single HopLink target URL. When an affiliate uses a HopLink to promote an account, the customers are directed to this URL. However, many vendors have a large number of products, and it may be confusing for customers to redirect themselves to the correct product.

One solution is to set up a script on the HopLink target URL that automatically redirects customers to the pitch page for a specific product. The affiliate includes a parameter which specifies the product, and you create a script to direct the customer to the pitch page for that product. The redirection system preserves the affiliate information so the affiliate receives credit for the sale.

Developer-Required Feature

You have to be familiar with scripts to create a redirection system. If you don’t feel comfortable creating scripts, you should find a developer who can help you.

Configuring a Redirection System

Creating a redirection system involves the following steps:

  • Create a URL structure that links parameter names with their target pitch pages.
  • Create a script that redirects incoming visitors to the correct pitch page based on the parameter passed with the HopLink.
  • Set the page with the redirection system as the HopLink Target URL in your account.
  • Explain your URL structure to affiliates so that they can pass the correct parameters.

Creating a URL Structure

The URL structure is a one-to-one mapping of parameter names to their corresponding pitch page URLs. This lets you plan your redirection script, and lets affiliates understand what parameter to use for each pitch page.

For example, this is the URL structure used in the example script:

Parameter Pitch Page
sku1 http://www.yoursite.com/product1
sku2 http://www.product2url.com/

Creating a Redirection Script

Once you have created a URL structure, you can create a redirection script. This script processes the parameter passed by the affiliate and redirects the customer to the corresponding pitch page.

See the Example Script section for a version of the script using example parameters.

Once you have created a redirection script, upload it to your HopLink target URL so that it can redirect customers.

Setting the HopLink Target URL

You must verify that the HopLink target URL with your script is listed correctly in your ClickBank account.

  1. Log in to your ClickBank account.
  2. Click the Settings tab.
  3. Click My Site.
  4. Click Edit to the right of the Marketplace Information section.
  5. Enter your HopLink Target URL in the top field.
  6. Click Save Changes.

Communicating With Affiliates

Once you have implemented your script, you must explain your redirection system to affiliates, so that they can use the correct parameters for each customer. You can do so by creating an affiliate resources page, and either explaining the parameters, or creating a tool to automatically generate HopLinks with the correct parameters for each affiliate. See the Attracting Affiliates to Promote Your Offerings article for more information about creating an affiliate resources page.

Example Script

The following is an example of a script that redirects customers based on the pid parameter.

NOTE – You may have to modify this script based on your environment and account, in addition to replacing the example URL and parameter values. If you do not know how to do so, you should find a developer who can help you.

<?php

//define url for product #1 or version 1 of your Landing Page
$url1="http://www.yoursite.com/product1";

//define url for product #2 or version 2 of your Landing Page
$url2="http://www.product2url.com/";

if ($_GET['pid'] == "sku1")
{
if($_ser)
header("Location: $url1".preserve_qs());
}
elseif ($_GET['pid'] == "sku2")
{
header("Location: $url2".preserve_qs());
}



//if there is no product variable, go to the first product
//URL, since there are affiliates who started promoting
//the first product before this script was set up and
//we don't want them to lose sales.
//if you have no prior affiliates, you might want to
//send people elsewhere if they arrive on a hoplink
//without a variable.

else
{
header("Location: $url1".preserve_qs());
}



function preserve_qs() {
if (empty($_SERVER['QUERY_STRING']) && strpos($_SERVER['REQUEST_URI'], "?") === false) {
return "";
}
return "?" . $_SERVER['QUERY_STRING'];
}

?>
Have more questions? Submit a request

8 Comments

  • 0
    Avatar
    Bradley Woods

    Can you give an example url for how to pass the parameter to redirect script? This is the only part I do not understand about this guide.

  • 0
    Avatar
    Owen Allen

    Bradley,

    The affiliate part - actually passing the parameter - is covered in the related affiliate article.

  • 0
    Avatar
    Maria judelena Cua

    Hi Owen!

    Do you have any video to show how to do this? I am a vendor in ClickBank and I have several products listed with ClickBank, My product 1 is the only one showing in the marketplace. 

    I am not a technical person, but I want to do this myself because I want to show this to my students and I hope you can help me.

    What I want is to provide my students their affiliate link for my product #11 (this product is discounted product that I only want to distribute to my students), so how to create an affiliate hoplink directing them to this product. 

    Please advise. hope to hear from you soon. 

  • 0
    Avatar
    Owen Allen

    Maria,

    There isn't currently a video for this process, although I can let my coworkers know that you'd be interested in one.

    If you or your students have experience with scripts, they can modify the example script in this article to work on your account. If you replace the product SKUs and the URLs, you should be able to make this work.

    Once you've done that, your students can use the related affiliate procedure to make HopLinks that work with your redirection system.

    I hope that's helpful. Let me know if you have further questions.

  • 0
    Avatar
    Maria judelena Cua

    Hi Owen!

    Thanks for your prompt reply. 

    I have current affiliates already selling my product#1.

    Here are my concerns and please let me know if I understand this correctly.

    1.  URL Structure: You mean I need to create a new URL for each of my Pitch pages and I just need to add the word "product1" & "product2" or "product3" to the URL's of those pitch pages?

    2.  Script: On the above script all I need is just copy the whole script and I will just replace the line that says  "www.yoursite.com" & "www.product2url.com"?

    $url1="http://www.yoursite.com/product1";
    $url2="http://www.product2url.com/";

    And I will just simply copy the whole script all the way down to:
     return "?" . $_SERVER['QUERY_STRING'];
    }

    ?>

    Now, I am a bit confused about the URL structure for product 2.

    Do I need to create something like http://www.mysite.com/product2 ?

    Also, where to place this script?

    3. Setting the Hoplink target URL: This target hoplink url should indicate my main product that is listed in the marketplace right? and not the secondary or other products. Is this correct?

    Please advise and looking forward to hearing from you soon.

    Sincerely,

    Maria

     

  • 0
    Avatar
    Owen Allen

    Maria,

    I'll do my best.

    For the URL structure, to make a redirection system work, each product has to have a separate pitch page. You don't need to change those URLs, but each product needs to have its own.

    The redirection script goes on your hoplink target page. That way, it fires when a potential customer comes there via a hoplink.

    The only place you'd need to put your product pitch pages is at the top of the script.

    If you've set up this sort of system, your hoplink target page wouldn't need to be one of your pitch pages - it could be a separate page that redirects to your pitch pages using the script.

    I hope that's helpful. Let me know if you have further questions.

  • 0
    Avatar
    Maria judelena Cua

    Hi Owen!

    Yes,  I have 2 separate pitch pages for these 2 SKU's.

    Here's what I did...

    Here's my URL Structures:

    SKU1: http://www.mybizbreakthroughs.com/breakthroughs-mastery-course/
    SKU 11: http://www.mybizbreakthroughs.com/online-business-career-special-price/

    I inserted the below scripts to my  (PRODUCT1) Main Product Page That is listed  With ClickBank Market Place.  Please kindly check if I do this correctly.

    <?php

    //define url for product #1 or version 1 of your Landing Page
    $url1="http://www.mybizbreakthroughs.com/breakthroughs-mastery-course/";

    //define url for product #11 or version 11 of your Landing Page
    $url11="http://www.mybizbreakthroughs.com/online-business-career-special-price/";

    if ($_GET['pid'] == "sku1")
    {
    if($_ser)
    header("Location: $url1".preserve_qs());
    }
    elseif ($_GET['pid'] == "sku11")
    {
    header("Location: $url11".preserve_qs());
    }

     

    //if there is no product variable, go to the first product
    //URL, since there are affiliates who started promoting
    //the first product before this script was set up and
    //we don't want them to lose sales.
    //if you have no prior affiliates, you might want to
    //send people elsewhere if they arrive on a hoplink
    //without a variable.

    else
    {
    header("Location: $url1".preserve_qs());
    }

     

    function preserve_qs() {
    if (empty($_SERVER['QUERY_STRING']) && strpos($_SERVER['REQUEST_URI'], "?") === false) {
    return "";
    }
    return "?" . $_SERVER['QUERY_STRING'];
    }

    ?>

    Now, after doing all the above, how come when I tested and visit the below URL's it directs ONLY to PRODUCT 1 & NOT TO PRODUCT 11?

    http://jengclick.jengclick.hop.clickbank.net/?pid=sku1

    http://jengclick.jengclick.hop.clickbank.net/?pid=sku11

    Please advise why it doesn't work for SKU11?

     

    Sincerely,

    Jeng

  • 0
    Avatar
    Owen Allen

    Jeng,

    I'm not sure that the script is active - I can see it in the code of your HopLink target page, but I can't tell if it's active or not. You can test this by putting in a different URL in every part of the script and seeing if it redirects. If not, then you'll have to correct the issue that's preventing the script from being active

    If it's not working, I'm not sure that I can help. If you file a support ticket, they may be able to help further.

Please sign in to leave a comment.
Powered by Zendesk