Console messages can help you to find and understand errors impacting your site that are surfaced within the DevTools Console.
About the DevTools Console
The DevTools Console is a developer tool available on web browsers, commonly used to understand what's happening in your website's code. It displays messages logged by the browser, or added by web developers themselves, which help to identify and troubleshoot problems, such as errors or network issues.
In Error Analysis you can view the console messages added by developers, to help you find and resolve any issues more quickly.
Learn more about viewing and analyzing console messages in Contentsquare.
Up to 20 console messages can be collected per pageview, and this is included in the limit of 20 custom errors per pageview.
In order to view console messages in Error Analysis, you will need to set up and determine the errors you wish to track via your Contentsquare Console.
How to set up console messages
Note, you will need Admin access in order to set this up.
1. In your Contentsquare project, click your profile icon in the top right.
2. Click ‘Console’.
3. From the 'Projects' tab, select the tab ‘Advanced Errors Troubleshooting’.
4. Under Console messages, click ‘Add log levels’ (or 'Edit log levels').
5. Select from one or more of the console message types (Info, Log, Warning, Error, Debug) and click ‘Apply’.
6. Once updated, you will see your selected console message types listed in the ‘Console messages’ box. Use the ‘Edit log levels’ button to make any changes.
FAQs
Why do I see errors/warnings coming from the tag?
To track arguments passed to console functions, the tracking tag needs to monkey patch these functions. Monkey patching is a known technique to extend the code of functions without altering the original source code. In doing so, the tracking tag will appear in the stack trace even if it's not the origin of the call. The tracking tag will never call the console to log errors.
Go further
Use the Error Analysis module to monitor and analyze console messages.