Get Keyword Someone Uses on Google To Find Your Site

Here is a great and simple PHP script that will allow you to echo the keyword used to find your site from the search engines. It is fairly simple to use and could be very effective on converting search engine traffic.

$parsed_url=parse_url($_SERVER['HTTP_REFERER']);
if(stripos($parsed_url['host'],’google’))
{
parse_str($parsed_url['query'],$parsed_query_string);
$keyword_string=$parsed_query_string['q'];
}

If you wish to echo the keyword that was used you would simple call the following.

echo($keyword_string);

Using this you could then use if statements to do alot more. Like redirect to a page for the specific keyword used!

This is an OLD BH Technique so there are rumors that you could get banned by google for doing this. I do not think you should but i dont really know for sure.

  1. No comments yet.

  1. No trackbacks yet.