1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adwords ->Clickbank Redirect

Discussion in 'Clickbank' started by KidSick, Feb 9, 2009.

  1. KidSick


    May 30, 2008
    Likes Received:
    Here's my first contribution. Just a simple script I made when using Adw*rds to promote Cl*ckbank. You can modify this for other uses because it's a pretty simple php redirect.

    When you use Adwords and use the Keyword tracking feature, this will take the Adw*rds keyword tracking link and redirect it to your the Cl*ckbank product you're promoting and allow you to see in your Cl*ckbank account which keyword ad people are clicking.

    Just make an index file on your server with this in it and direct your ads to this. Remember, you must use the keyword tracking feature in Adw*rds for it to work.

    Hope someone might find use of it.

    // Find out or base pure referer.
          $ref = $_SERVER['QUERY_STRING'];
    // Split our URL into bits.
          $url = explode("=",$ref);
    // Take the 2nd part of the url (the main site)
          $surl = $url[1];
    // Get rid of the jibberish such as %20 for spaces
          $kw = urldecode($surl);
    // Insert $kw in the tid below so we can see what keyword was used
    <!DOCTYPE html PUBLIC "-//WSC//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/XHTML/DTD/xhtml1-transitional.dtd">
    <html xmlns=http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=iso8899-1" />
    <meta HTTP-EQUIV="REFRESH" content="0; url=http://***yourcl*ckbankID.camera.hop.clickbank.net/?tid=<?php $kw ?>-e">
    • Thanks Thanks x 3
  2. smileplease

    smileplease Regular Member

    Sep 29, 2008
    Likes Received:
    wrong pace.
    Send this over to a different forum.