Google Adwords Configuration

Append the following to the destination URLs of your ads: ?kw={keyword}

This will dynamically enter the keyword into your ad’s destination URL i.e. it will add what the user has searched for.

Landing Page Code

The following PHP code takes the keyword the user searched with to find your Ad and then click on it:

<?php
if ($_GET['kw'])
{
$kw = htmlentities($_GET['kw']);
}
?>
<?php
if ($_GET['kw'])
{
echo "<div id='adwords'>You searched for <b>\"".$kw."\"</b> on www.google.com.</div>";
}
?>

It lifts the keyword and displays it on screen.

Manually test with the URL the page is on – http://www.domain.com/landingpage/?kw=bigtester – You searched for “bigtester” on www.google.com should appear on screen.

Credit goes to – http://streamlinemetrics.com/blog/adwords-conversion-rate-optimization-tip-add-keyword-to-landing-page-with-dynamic-keyword-insertion.php

Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk.