- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
07-23-2017 11:58 PM
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.
07-25-2017 10:59 PM
07-26-2017 09:47 AM
Hi @Srinivasan. Of course. Sit tight...
08-02-2017 10:37 AM
Hi @Srinivasan. My apologies. I have not been able to find someone to answer your question. :-(
Still trying though...
08-02-2017 12:27 PM
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
Copyright All Rights Reserved © 2008-2023