How to track and redirect clickbank by php landing pages

Discussion in 'ClickBank' started by Robineast, Apr 5, 2010.

  1. #1
    I know a simple way to track clickbank hoplink from PPC to landing pages.like this:
    But the CB affiliate link is visable, I want to cloak it.How to do it?

    Please help!
    Thanks!
     
    Robineast, Apr 5, 2010 IP
  2. Robineast

    Robineast Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have tried this: http://forums.digitalpoint.com/showthread.php?t=1007979
    I put this code in the landing page,
    but it does't work.I don't know where I go wrong.

    Please help me!
     
    Robineast, Apr 5, 2010 IP
  3. TigerPublishing

    TigerPublishing Member

    Messages:
    451
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    35
    #3
    Save this in a file called "go.php"
    
    <?php
    header("Location: http://affid.vendorid.hop.clickbank.net/?tid=".$_GET["tid"]);
    ?>
    
    Code (markup):
    Then use it like this:
    
    <a href="go.php?tid=xxxxx">Click here to see my fantabulous product</a>
    
    Code (markup):
    Also, read this: http://tinyurl.com/ygthpeh
     
    TigerPublishing, Apr 5, 2010 IP
  4. Robineast

    Robineast Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks! I try it now.
     
    Robineast, Apr 5, 2010 IP
  5. gasura

    gasura Active Member

    Messages:
    209
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Finally got this working.. took me awhile to figure out how to redirect PLUS tracking. The tid just wouldn't appear on the purchase page.

    On the very top of your landing page you put

    <?php

    $seedvar=$_GET['id'];

    ?>


    and then just as what tiger said, create a page called go.php on your website and insert this code

    <?php
    header("Location: http://affid.vendorid.hop.clickbank.net/?tid=".$_GET["tid"]);
    ?>


    When you want to insert a link to your merchants website on your landing page do this:

    <a href="go.php?tid=<?php echo $seedvar; ?>">Click here to see my fantabulous product</a>
     
    gasura, May 5, 2010 IP
  6. forthright

    forthright Active Member

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #6
    Hmm wow. thanks for the script gasura. I'm going to test this out. not sure why everyone is obsessed with cloaking everything. hijacking links is a big a thing as people think or everyone would be doing it.
     
    forthright, May 6, 2010 IP