Need A PHP code that redirects visitors to the merchant page please...

Discussion in 'ClickBank' started by rickybuitrago, Oct 4, 2008.

  1. #1
    The reason I need a PHP code and not a simple domain redirect is b/c I need that the browser actually takes visitors to the page at least for a millisecond and then redirect it to the sales page..this is why:

    Im using Google Website Optimizer to split test, and in order to record a conversion, optimizer needs of a java script in the conversion page, so I thought...I can´t add a code on the merchant´s page (or at least its very difficult), so I need to have control over the page I´m directing people to from my landing page...so I thought..if I add to a simple white page the google optimizer java code, and a php code that redirects people to the merchant page then I would take people from my landing page to this white page but since the php code instantly redirects people to the merchants page visitors wouldn't even notice and google optimizer would read the conversion!! I mean people would just see the merchants page after clicking on my landing page continue link...

    You would say...google optimizer really makes things difficult but actually if you have control over the conversion page its VERY VERY simple.

    ..and I already tried split testing with the famous rotating php code but reading stats is difficult and in fact impossible with google analytics so I think that if I can get this php code I´m asking for I could really get this working and I promise Ill open a thread with a detailed step by step guide to split testing landing pages the easy way!!

    Thanks
    Ricky
     
    rickybuitrago, Oct 4, 2008 IP
  2. Supper

    Supper Peon

    Messages:
    1,539
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
  3. wowhaxor

    wowhaxor Banned

    Messages:
    1,507
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #3
    clickbank has it in their faq, its also posted in this forum many times.
     
    wowhaxor, Oct 4, 2008 IP
  4. ScoTech

    ScoTech Peon

    Messages:
    310
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think this is what you are looking for. This code will redirect to your hoplink only after the google javasciprt for conversions, or even google anaylitcs runs first. As a bonus, it will email you, letting you know about, if you want. I use a version of this to send people to a paylink, rather than a hoplink, so if you get lots of hops, the email might get annoying.

    <?php
    mail("your email address here","Pay Click","Pay Click"); 
    ?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta>
    <title>Your Publisher Page Loading...</title>
    </head>
    <body>
    Click <a href="your hoplink goes here">here</a> if your browser does not refresh after 15 seconds...
    
    Google Conversion Javascript goes here
    
    Google Analytics Code goes here
    
    <meta http-equiv="Refresh" content="0;URL=your hoplink goes here" />
    </body>
    </html>
    PHP:
     
    ScoTech, Oct 4, 2008 IP