PDA

View Full Version : Google Web Search Tracking?


apozielli
09-13-2006, 11:30 AM
I was thinking of adding a search function on my Web site, particularly the Google Free web search box. Is there a way to track the keywords searched through this?

Sebastien Billard
09-13-2006, 11:45 AM
I don't think for Google, but Yahoo Search Builder provides such statistics : http://builder.search.yahoo.com

ujwal
09-13-2006, 11:52 AM
You can track if you place search box using google api

If your real requirement is to know the statistics from google then why don’t you try google webmaster tools

jax-kran

apozielli
09-13-2006, 12:06 PM
Do you know which Google API is for this function?

startlaunch
09-13-2006, 01:03 PM
Here's a quick hack where you could submit a form to a serach.php page - track the page with analytics - and then re-direct to google.


////////// YOUR PAGE WITH SEARCH BOX ON IT /////////
<html>
<head>
<title>Your Page</title>
</head>
<body>
<form method="post" action="search.php">
<input type="text" name="searchterm" size="31" maxlength="255" value="" />
<input type="submit" value="Google Search" />
</form>
</body>
</html>

////////// SEARCH.PHP REDIRECT TO GOOGLE ////////////

//Use a tracking script here like Google Analytics above the 301 redirect

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.google.com/search?hl=en&q=".$searchterm."");
exit();

?>

Hope this helps,

StartLaunch