hey,
I am working on a bit of code to split up the referrers link....
basically I need to say that if the referring URL is a search engine, get the keywords from the URL.
so far I use
$c_url = parse_url($GLOBALS[HTTP_REFERER]);
which means I can then use $c_url['host'] etc for accessing the host etc.
I wanted to know if anyone had already written any code which does this for each search engine?
I was thinking of doing
switch ($c_url['host'])
{
case "www.google.com":
//query string starts with "q=xxxxxxxxx"
//split the string up and enter to DB
}
etc etc
basically listing all the search engines and what they use for their query string.
has anything like this been done before??
thanks.