By using the 'alwaysUseSendBeacon' command, the tracking client will use the navigator.sendBeacon() method instead of XHR to post to the Matomo API. This works better in some cases, like outlinks. Some browsers or adblockers may block this method, but my impression is that it's not too many.
By using the
'alwaysUseSendBeacon'
command, the tracking client will use thenavigator.sendBeacon()
method instead of XHR to post to the Matomo API. This works better in some cases, like outlinks. Some browsers or adblockers may block this method, but my impression is that it's not too many.Matomo FAQ page: In JavaScript Tracker, how do I enable the use of navigator.sendBeacon()?