Putting Dynamic Keywords in your Landing Pages
This shows how to dynamically display the keyword the user was searching for on your landing page. This is a simple script that prints the dynamic keyword on the page for users with Tracking202 installed. Below is an example landing page .php file that shows how to place dynamic keywords on your landing page!
Landing Page Code
<?
//grab t202 keyword
$keyword = $_GET['t202kw'];
//if a yahoo keyword exists, over-write the t202 keyword
//for Yahoo OVKEY = the bidded keyword, OVRAW = actual keyword
//you can change $_GET['OVRAW'] to $_GET['OVKEY'] if you would
//like to display the bidded keyword, instead of the actual keyword.
if ($_GET['OVKEY']) { $keyword = $_GET['OVKEY']; }
//now anywhere we call echo $keyword, it will display the dynamic kw!
//extra goodie, uncomment the line below if you would like to capitalize
//the first character in each word
//$keyword = ucwords(strtolower($keyword));
?>
<html>
<head>
<!-- Display the Dynamic Keyword in the Title! -->
<title><? echo $keyword; ?></title>
</head>
<body>
<!-- Display the Dynamic Keyword in the body's content! -->
This is the content on my landing page! You were searching for <? echo $keyword; ?>.
</body>
</html>
Conclusion
Anywhere you now call
<? echo $keyword; ?>
in your .php file, it will print out the dynamic keyword insertion!
