After "enableJSErrorTracking" => Uncaught Error: Tracker._xhr.onerror

After setting up error tracking via

_paq.push(['enableJSErrorTracking']);

we often receive the following error logged as an event:

Uncaught Error: Tracker._xhr.onerror

We do not use any Tracker class ourself, so I assume it is connected to Matomo itself. I also couldn’t find any matches on Google for this error message. Any one having an idea? Thanks!

Does no one have any idea?

image

Those are the lines:

			var _paq = window._paq || [];
			/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
			_paq.push(['trackPageView', undefined, undefined, removeBasicGetParameters]);
			_paq.push(['enableLinkTracking']); // line 99
			_paq.push(['enableJSErrorTracking']);

Hi @chr1d
When this error is tracked by Matomo, can you see errors in the browser console log (of the tracked site)?

No, since I cannot reproduce this error on my own (I only see it logged in Matomo).
Most users who have this error seem to use the Safari Browser on an iOS device, but not all.