4 ms·
Out-of-the-box, no. With custom work, yes. The amount of effort is not large, and there are off-the-shelf solutions available. The name commonly used is "engage
by lmkg 6y ago
Out-of-the-box, no. With custom work, yes. The amount of effort is not large, and there are off-the-shelf solutions available. The name commonly used is "engagement timer."
By default, GA only sends one hit on page load. If there's no second hit, there's no way to tell if someone was looking at the page for a second or a minute or an hour.
- hnick 6y agoHow do they handle it? A keep-alive style ping, or something like a beforeunload event hook?
- e_y_ 6y agoIn theory the correct way to send analytics when leaving the page is via navigator.sendBeacon, although it's not clear how reliable it is: https://volument.com/blog/sendbeacon-is-broken https://volument.com/blog/sendbeacon-is-broken (note: read the comments for some rebuttals to the article)