跟踪用户特定的退出链接

发布于 2024-10-04 03:06:11 字数 213 浏览 0 评论 0原文

我想跟踪登录用户的退出链接。我想根据他们的人口统计研究他们的页面导航。我在配置文件表中拥有所需的所有详细信息。 我只需要知道退出链接。我不知道该怎么做。可以使用 PHP/Mysql/Javascript。 退出链接可以来自adsense。

你们能给我正确的方向吗?

仅供参考:谷歌分析和其他类似网站无济于事,因为我需要根据个人用户的用户 ID 进行统计,而不是所有用户的统计数据。

I want to track exit link of a logged in user. I want to study their page navigation according to their demography. I have all the details needed in profile table.
I just need to know the exit link. I don't know how to do that. May b with PHP/Mysql/Javascript.
And the exit links can be from adsense.

Can u guys put me in right direction ??

FYI: Google analytics and other sites like that can't help coz I need stats of individual user according to his/her userid not of all them combined.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

养猫人 2024-10-11 03:06:11

为您认为“退出链接”的所有链接添加 onclick 处理程序。
在此 onclick 处理程序中,发送 AJAX 请求以记录退出链接。根据网络速度等,请求可能会也可能不会发送。如果您始终希望发送它,请阻止链接的默认处理程序,并在 AJAX 请求完成后手动重定向到链接的目标。但是,如果网络连接速度很慢,那么这并不是一个好的用户体验,因为链接不会立即做出反应。

unload 事件可用于可靠地触发 ajax请求? 您可能也会感兴趣。

Add an onclick handler for all your links that you consider "exit links".
In this onclick handler, send an AJAX request to log the exit link. Depending on the network speed etc. the request might or might not be sent. If you always want it to be sent, prevent the default handler of the link and redirect to the link's target manually after the AJAX request has finished. That's not a good user experience though if the network connection is slow as the link will not react immediately.

Can the unload Event be Used to Reliably fire ajax Request? might also be interesting for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文