我如何找到哪些搜索词(如果有的话)将用户吸引到我的网站? [英] How can I find what search terms (if any) brought a user to my site?
问题描述
我想基于此创建动态内容.我知道它在某个地方,因为Web分析引擎可以获取这些数据来确定人们如何访问您的网站(引荐来源,使用的搜索字词等),但我不知道自己如何获得它.
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.
推荐答案
您可以使用用户发送的请求的引荐来源"部分来找出他要搜索的内容.来自Google的示例:
You can use the "referer" part of the request that the user sent to figure out what he searched for. Example from Google:
因此,您必须在字符串(在ASP(.NET)中,可以在Request.Referer
中查找该字符串)中搜索"q =,然后对内容进行URL解码.
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
这篇关于我如何找到哪些搜索词(如果有的话)将用户吸引到我的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!