Get Keyword from referrer
This Function should extract the keyword from the referrer URL to get what your visitor was searching for on google, msn, live, altavista, alltheweb, scirus, aol, vivisimo, lycos, aliweb, yahoo and baidu.
-
-
function getKeywordfromRef($orgWord){
-
$ref = $_SERVER['HTTP_REFERER'];
-
return $q;
-
return $query;
-
return $p;
-
return $wd;
-
}else
-
return $orgWord;
-
}
-
you can send a default keyword in case the visitor was not coming from a search engine or just set $orgWord = ”
to call the function
-
-
$myKeyword = getKeywordfromRef($myKeyword)
-

