Tracking browser console errors
Using the power of SessionCam Custom Variables you can send a string of data to SessionCam that can be used in the Filters/Segments, Exports, and Alerts to review any sessions that saw an error message. It's not possible to pull all console messages, however the script below should enable you to pull the data you need to debug any possible errors on your site that could impact conversion.
An example of an error that can be caught by this script would be:
- Uncaught exceptions
- throw "some messages"
- cross_origin_iframe.contentWindow.documen, a security exception
- Compile error