Can anyone help to log the JS errors which is throwing in Console to capture in Google Analytics interface via Tealium.
Thanks in advance!!!
Solved! Go to Solution.
Hi @Srinivasan. My apologies. I have not been able to find someone to answer your question. :-(
Still trying though...
However, about 3-4 years ago, Chrome and Firefox changed the default security policies for error reporting for very good reasons. This means that errors will only be reported by the onError handler for scripts that are loaded from the same domain as the website, and errors occurring in other 3rd party scripts cannot be recorded (you just get a generic "script error" message, with no details of the actual error).
In summary, you will be able to collect error information from scripts loaded from your own domain, and you could subsequently pass this information to Tealium, and pass it along in turn to your analytics tool, but it will not give you comprehensive coverage of all JS errors. Our Google Analytics tag in the marketplace does support Google's exception tracking functionality, so once you have passed the information to Tealium in a tracking call, it's just a case of mapping the variables to the correct slots in GA. See here for more details from Google's documentation: https://developers.google.com/analytics/devguides/collection/analyticsjs/exceptions