Closed rokadias closed 7 years ago
@rokadias Thank you for the contribution! I'll merge this tomorrow and publish it to npm. Thanks for the link to GoogleAnalytics-WebTester. I've been wanting to add some tests to this library, but didn't get around to looking up how to do that.
Exceptions that occur within window.onerror are sent for tracking in google analytics. It doesn't look like the data is very robust, but at least there can be some level of tracking of the amount of client side errors that occurring.
Based on analytics documentation: https://developers.google.com/analytics/devguides/collection/analyticsjs/exceptions
and example: https://philsawicki.github.io/GoogleAnalytics-WebTester/examples-exception-tracking.html
Tested within my own project.