By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,939 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,939 IT Pros & Developers. It's quick & easy.

how can i get keywords by which user is visiting my site.

P: 3
Can u please tell me how can i get keywords by which user is visiting my site.
I read some where by using Request.ServerVariables we can get keywords.
But not sure how can i do that...
please help me
Oct 16 '07 #1
Share this Question
Share on Google+
6 Replies


Plater
Expert 5K+
P: 7,872
What do you mean "keywords" ?
Oct 16 '07 #2

P: 3
what i mean is...

if a customer is visting my site by typing few words in any search engine
how can i get that words using server variable....("request.serverVariable")
Oct 16 '07 #3

Plater
Expert 5K+
P: 7,872
You should be able to read some basic statistics for your site at search engines. Pretty sure google provides it's list free of charge.
A lot of places will charge you.

It's possible that there will be a "referer" header in the server varriables that might tell you where they came from, but unlikly it will tell you what they put in the search box at a search engine.
Oct 16 '07 #4

P: 3
hey thats what i want "what words a user puts in search engine to reach my site"

It would be great if uyou can tell me which server variable can give the words.
Oct 16 '07 #5

Frinavale
Expert Mod 5K+
P: 9,731
hey thats what i want "what words a user puts in search engine to reach my site"

It would be great if uyou can tell me which server variable can give the words.
I don't think that Plater meant that there is a Server variable available in your application to determine what key words were used in a search engine to reach your site.

Plater was implying that Google has a service that you can use (free of charge) to allow you to access to this information.
Oct 16 '07 #6

Plater
Expert 5K+
P: 7,872
Indeed.

The best I can offer is the "Referer" header variable like I mentioned before. Have a look at it and maybe it can help you some.
14.36 Referer
The Referer[sic] request-header field allows the client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI was obtained (the "referrer", although the header field is misspelled.) The Referer request-header allows a server to generate lists of back-links to resources for interest, logging, optimized caching, etc. It also allows obsolete or mistyped links to be traced for maintenance. The Referer field MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard.

Referer = "Referer" ":" ( absoluteURI | relativeURI )
Example:

Referer: http://www.w3.org/hypertext/DataSources/Overview.html
If the field value is a relative URI, it SHOULD be interpreted relative to the Request-URI. The URI MUST NOT include a fragment. See section 15.1.3 for security considerations.
From: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
Oct 16 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.