I found a great resource online for a jQuery plugin that logs a javascript error via an ajax request to any site.
https://github.com/pavelpykhtin/jquery.crashreport
I liked the idea, but I would change a few things, such as:
- Instead of building my own reporting tool for this data, I’m going to log the data using GA (Google Analytics). GA uses a dimension called Client ID to track the session so when an error occurs, I’m going to also log the Client ID in order to corrilate both the User Explorer data with the Javascript error. This should give me more information regarding the users actions, environment, etc. I believe there is already a type of event in GA for tracking errors on a site.
- Implement via Google Tag Manager.
Leave a Reply
You must be logged in to post a comment.