flextracker
flextracker copied to clipboard
prefer sendBeacon to XMLHttpRequest
when using sendBeacon
, the data is transmitted asynchronously to the web server when the User Agent has an opportunity to do so, without delaying the unload or affecting the performance of the next navigation.
and it has no issue with cross domain requests.