How to accurately obtain the stay time based on traffic statistics

Source: Internet
Author: User
How does traffic statistics get the stay time accurately? I don't know how to trigger the closed state of the browser. I have considered jsonbeforeunloadonunload but cannot tell whether to refresh or close it. please understand that the stateless features of http have the significance of implementing this function ?, Discuss how to get the stay time accurately based on the website traffic statistics that have not been accessed upstairs
How can I get the stay time accurately based on traffic statistics? I don't know how to trigger the closed state of the browser. I have considered js onbeforeunload onunload but cannot tell whether to refresh or close it.

------ Solution --------------------
Please understand the stateless features of http

What is the significance of achieving this function?
------ Solution --------------------
Discussion

I have never accessed the website traffic statistics tool upstairs ,?

------ Solution --------------------
Discussion
How can I get the stay time accurately based on traffic statistics? I don't know how to trigger the closed state of the browser. I have considered js onbeforeunload onunload but cannot tell whether to refresh or close it.

------ Solution --------------------
It's almost enough. it's too accurate ~~~
------ Solution --------------------
1. timed cookie writing, which is the last time the cookie is lost in the middle
2. update the cookie of the previous cycle to the database, and repeat 1.

Refresh can be considered as a stay time with the previous refer. refresh statistics are generally combined with the same refer.

------ Solution --------------------
Meaningless Work
------ Solution --------------------
Google analysis and piwik tools are available

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.