miguelzakharia / aurelia-google-analytics

An Aurelia.io plugin that adds Google Analytics page tracking to your project.
MIT License
29 stars 23 forks source link

Adding exception tracking to aurelia google analytics. #21

Closed rokadias closed 7 years ago

rokadias commented 7 years ago

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.

miguelzakharia commented 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.