4 ms·
How do they handle it? A keep-alive style ping, or something like a beforeunload event hook?
by hnick 6y ago
How 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)