April 2025posted on 04.10.2025Send analytics data using the Beacon API The navigator.sendBeacon() method is intended to be used for sending analytics data to a server. navigator.sendBeacon("/log", analyticsData); It sends the HTTP POST request asynchronously, with no access to the server response. The request is non-blocking, causing no delay to unload or the next navigation. See documentation on usage.No reactions yet
Send analytics data using the Beacon API
The
navigator.sendBeacon()method is intended to be used for sending analytics data to a server.See documentation on usage.