如何记录用户在网站页面的停留时间到数据库

WBOY
Release: 2016-06-13 12:35:26
Original
1261 people have browsed it

怎么记录用户在网站页面的停留时间到数据库?
像ga的统计功能,
老板要求我自己开发一个流量分析功能,记录下用户访问ip,页面来源地址,在我们网站页面上停留了多长时间。把这些数据都放入网站数据库。
在页面停留了多长时间这个怎么搞?别人点击关闭网页时就马上关闭了,不可能获取停留时间吧。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template