GTM support inline error detection which can be recorded as a GA event:

image116

Event: gtm.pageError,

Error Message: “ReferenceError: startTimer is not defined“,

Page URL: “,

Error Line Number: 155

image117

This was announced here:

image119

https://plus.google.com/+BrianKuhn/posts/c5WuFmtw3Na

0117 3361103