Beacon API was purpose built for tracking/analytics requests.
With the Beacon API, data is transmitted asynchronously when the User Agent has an opportunity to do so, without delaying the next navigation (If the browser was navigating to a new page).
Previously we had the Beacon API be an opt-in system.
Every browser except for Internet Explorer now supports Beacon API (https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon#Browser_compatibility) so we should use it by default and fallback to XHR for Internet Explorer.
Beacon API was purpose built for tracking/analytics requests.
With the Beacon API, data is transmitted asynchronously when the User Agent has an opportunity to do so, without delaying the next navigation (If the browser was navigating to a new page).