如何确定用户离开我们的网站 [英] how to determine if user left our site

查看:97
本文介绍了如何确定用户离开我们的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正试着推行某种反馈,这是我在MSDN网站看到的。当用户第一次进入到我们的网站上更具体,我想说明一个弹出,这将要求用户留下评论仪式之前,他将离开我们的网站,并根据用户的回答(这将是某种形式的确认框与Yes和No),我想开一个弹出文本框与用户留下反馈。我搜索了这个在互联网,但所有的'时间约为处理window.onload事件,问题是我们有多个页面,所以如果用户请求另一页在我们的web的我就不能确定网站或重定向到另一个网站。
所以这是我的问题,有什么建​​议?我们使用asp.net。
感谢名单提前。

We're tryin to implement some kind of feedback, which I saw in MSDN web-site. More concrete when user first enters to our site, I want to show a pop-up which will ask user to leave comment rite before he would leave our web-site, and depending on user's answer( it would be some kind of confirmation box with Yes and No), I want to open a pop-up with TextBox for user to leave a feedback. I've searched for this in internet, but all of 'em was about handling window.onload event, the problem is we have more than one page, so I won't be able to determine if user requests another page in our web-site or redirects to another web-site. So this is my problem, any suggestions? We're using asp.net. Thanx beforehand.

推荐答案

我敢说这是不可能。在过去,当开发者想要削减用户的十指关,他们完全去除chrome浏览器,因此用户留给点击边框少窗口内只有链接。这是(几乎)的唯一途径为用户关闭窗口,以提供一个按钮关闭

I dare to say this is not possible. In the old days when a developer wanted to cut user's fingers off they removed browser chrome completely, so users were left to clicking only links within the border-less window. This was (almost) the only way for users to close the window to provide a button close.

但这些日子已经一去不复返了。你不能因安全原因隐藏浏览器走了。我个人认为这是非常糟糕的做法也是如此。

But these days are gone. You can't hide browser away anymore due to security reasons. And I personally think that's very bad practice as well.

您只能检测是否有人离开你的页面。但你不能确切地知道他们是否离开由于做你的页面中的一些操作(除非你添加功能,它的每一个动作),或者他们可能点击的的甚至的前进的浏览器历史记录按钮。更何况他们已经在地址栏写的网址或甚至通过搜索栏搜索谷歌... 我甚至不想去思考所有可能的浏览器插件/扩展,可以将用户重定向到任何网页他们喜欢。什么浏览器升级?他们将提供某种特殊的功能,你不能去想?好了太多的变数,这个方程对我的口味。

You can only detect whether someone is leaving your page. But you can't know for sure whether they are leaving due to doing some action within your page (unless you add functionality to every action on it) or they've maybe clicked back or even forward browser history button. Not to mention they've written a web address in the address bar or even searched Google via search bar... I don't even want to think about all the possible browser plugins/extensions that may redirect users to whatever page they like. What about browser upgrades? Will they provide some sort of special functionality you can't think about? Well too many variables to this equation for my taste.

当一个人想离开你的网站,他们要离开它。即使你present他们的调查,他们可以很容易地点击关闭的或去其他地方(甚至高兴将其关闭)。因此,没有明显的理由让你present用户离开这个调查。

When one wants to leave your site, they want to leave it. Even though you'd present them a survey, they could just as easily click close or go elsewhere (maybe even happier to close it). So there is no obvious reason for you to present this survey on user leaving.

即使微软确实是在页面加载。如果有人说的的他们与参与调查psented马上$ P $。而不是等待,直到他们离开网站...

Even Microsoft does it on page load. And if someone says Yes they are presented with participation survey right away. Not waiting until they leave the site...

的唯一原因是要收集他们使用你的网站/应用数据后的当然。那么倒霉。除非你跟踪在这种情况下,你可以present用户调查他们对他们的重访,但他们更忠诚已经如此结果就会出现偏差。

The only reason is of course that you want to collect data after they've used your site/app. Well bad luck. Unless you track users in which case you could present them survey on their re-visit, but they are more loyal already so results would be biased.

否则,人们就不会填补起来。

Otherwise people just won't fill them up.

这篇关于如何确定用户离开我们的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆