Keywords tracking script

Discussion in 'PHP' started by BudMaking, Sep 26, 2008.

  1. #1
    This is a script for keyword tracking in Google I found from somewhere else. The concept is the get the keyword typed in Google and pass it on to the affiliate link. If the script is working properly I should be able to see the keyword in the control panel of the Affiliate Company.


    Can a php expert tell me why this script is not working?

    Thanks


    Step 1
    Adwords destination URL

    http://www.websitename.com/index.php?KW={KeyWord}


    Step 2 (Landing page)
    <?php
    if (is_null($kw = $_GET['KW'])) $kw='Put a Generic KeyWord Phrase';
    ?>

    Affiliate link:

    <a href="http://www.yourwebsite.com/jump.php?kw=<?php echo $kw ?> 'GOOGLE'


    Step 3(jump page)
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta content="text/html; charset=ISO-8859-1"
    http-equiv="content-type">
    <meta http-equiv="Refresh" content="0; URL=http://z.azjmp/abc123?sub=<?php echo $kw ?>">
    <title>Your Website Name</title
     
    BudMaking, Sep 26, 2008 IP
  2. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Step 3, try this?
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
    <meta http-equiv="Refresh" content="0; URL=http://z.azjmp/abc123?sub=<?php echo $kw; ?>" />
    <title>Your Website Name</title>
    PHP:
    what i edited was echo $kw to echo $kw;
    try if this works?
     
    ads2help, Sep 26, 2008 IP
  3. BudMaking

    BudMaking Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi ads2help,

    Thanks for your answer. It didn't work.

    I can see the keywords as "\'GOOGLE\'" in the affiliate network control panel.

    It looks like something wrong in this code.

    <a href="http://www.yourwebsite.com/jump.php?kw=<?php echo $kw ?> 'GOOGLE'

    Can anyone find why it is not working?

    Thanks
     
    BudMaking, Sep 27, 2008 IP