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
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?
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