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

0 Comments

Please sign in to leave a comment.
Powered by Zendesk