This page is about how an code exception can be tracked and analyzed.
The process is a log process where the exceptions are send as log to a log server.
The following list shows third party that provides a solution:
From Google Analytics (Documentation)
try {
// Runs code that may or may not work.
window.possiblyUndefinedFunction();
} catch(err) {
ga('send', 'exception', {
'exDescription': err.message,
'exFatal': false
});
}