I want to create dynamic content based on this. I know it’s somewhere, as web analytics engines can get this data to determine how people got to your site (referrer, search terms used, etc.), but I don’t know how to get at it myself.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the ‘referer’ part of the request that the user sent to figure out what he searched for. Example from Google:
So you must search the string (in ASP(.NET) this can be found be looking in
Request.Referer) for ‘q=’ and then URLDecode the contents.Also, you should take a look at this article that talks more about referrers and also other methods to track your visitors:
http://www.15seconds.com/issue/021119.htm