我怎么确定用户来自于asp.net?
问题描述:
我如何能够确定用户来自当他们降落在我的网页。
How can I determine where a user came from when they land on my webpage.
- 难道他们来自谷歌的链接?
- 难道他们用户的收藏夹链接?
- 他们是否在URL中键入?
答
如果用户通过超链接浏览到您的网站,下面将提供以下信息:
If the user browsed to your site via a hyperlink, the following will provide this information:
Request.ServerVariables["HTTP_REFERER"]
虽然注意到在它上面是可能的浏览器阻止值(空值)。
Although note on the above it is possible for browsers to block the value (empty value).
您也将不能够检测用户是否专门用一个喜爱,输入了链接等是什么的客户端或服务器端code中的范围之外,这些都是浏览器动作可以检测,一旦用户土地在您的网站。
You also won't be able to detect if the user specifically used a favorite, typed in the link, etc. These are browser actions that are outside the scope of what client or serverside code can detect once the user lands on your site.