I am using C# asp.NET and I have searched the internet up and down trying to find a solution to this problem. In google analytics they have the keywords used by search engines so there must be a way to do it. thanks
+1
A:
Do you mean determining the search keywords that led a user to your site? This is done by analyzing the referrer URL.
string referrer = Request.UrlReferrer.ToString();
Most of them are pretty simple, but there are different patterns for different search engines.
jnylen
2009-10-14 17:11:51
Darn..I thought there was a different way to do this
Luke101
2009-10-14 17:14:18
Nope, that's it. You should probably write or find a generic routine to parse a query string, then return a different parameter from the query string based on the value or pattern of `Request.UrlReferrer.Host`.
jnylen
2009-10-14 17:20:10
See also http://stackoverflow.com/questions/1349774/capture-search-engine-keywords-in-php
jnylen
2009-10-14 17:22:34
A:
I found out that besides implementing your own algorithm to extract keywords I can use google analytics to do this. Google has an api for their analytics software and this is what i have been using. The only thing that is difficult is if you have more then 10,000 pages you have to open an adwords account.
Luke101
2009-11-30 22:00:23