Why configure Error collection
Error collection gives your teams the data they need to find technical problems, understand their effect on users, and prioritize fixes.
Use the Experience Monitoring settings to choose which error data Contentsquare collects for your project. Most error types use a collection status that you can turn on or off.
Understand the web collection settings
| What it collects | What’s to set up | |
| JS errors | JavaScript errors that occur when users visit your site or a supported WebView. | Use the collection status to start or stop collection. A maximum of 20 JS errors are collected per pageview. |
| Script errors | JavaScript errors whose details are hidden by the browser because the script comes from another domain. | Click More about Script error and how to unmask them for the dedicated procedure. |
| Custom errors | Messages that you send when a user action produces a user-facing or business-specific error. | Use the collection status to start or stop collection. Click Configure to create a Custom Error snippet. |
| Console messages | Selected browser or WebView console log levels. | Use the collection status to start or stop collection. Click Set up log levels to choose the levels to collect. |
| Network details | Network traffic that can be displayed in the Session Replay waterfall. | Use the collection status to start or stop collection. Review PII masking before collecting network URLs. |
| API errors | Requests with an error status and basic information such as the status code, method, and endpoint URL. | Use the collection status to start or stop collection. Click View and create rules to configure additional API error details. |
| API troubleshooting details | Additional API requests/responses details selected by a rule. | Click View and create rules to create, review, or edit rules. |
Understand the mobile collection settings
| What’s to configure | Where to find implementation guidance | |
| Native crashes | Integrate and validate the mobile crash collection for the selected SDK. Some platforms require additional crash or symbolication configuration. | The Developer Center documentation for the selected SDK or framework. |
| React native crashes |
Contact Contentsquare to enable collection for your mobile project. Follow the React Native SDK documentation to set up and validate crash collection.
|
The Developer Center documentation for the selected SDK or framework. |
| API errors | Confirm that the SDK or framework collects the relevant native or WebView network activity. Configure additional API details only when supported. | The mobile Error Analysis and API collection documentation for the selected SDK or framework. |
| JavaScript errors | Configure the WebView or hybrid JavaScript collection where supported. | The WebView or hybrid framework Developer Center documentation. |
| Custom Errors | Send Custom Errors through the supported WebView or hybrid implementation. | The implementation documentation for the selected SDK or framework. |
| Console Messages | Enable supported WebView or hybrid console collection and select the required log levels. | The WebView or hybrid framework Developer Center documentation. |
Mobile implementation references
Use the Developer Center documentation for the selected implementation. Relevant current references include:
Before you start
You need:
- Access to the relevant project in the Contentsquare Console.
- Permission to manage Experience Monitoring settings.
- The implementation or SDK changes required for the error type you want to collect.
For mobile data sources, the available error types depend on the SDK, framework, and implementation. Use the relevant Technical Documentation for platform-specific setup.
Modify the Errors settings
- From the Errors module, click on the … menu
- This opens the Advanced tools panel
- Click on the Configure error collection button
→ The Error settings page displays.
Start or stop collection
Collection is turned on by default for all web error types. To check or change a web collection setting, open the card for that error type in the Contentsquare Console and select its collection status. For any mobile error type, contact Contentsquare to enable collection. Additional API troubleshooting details depend on your collection rules.
When data becomes available?
New error data is not always available immediately. Processing time depends on the error type, selected data source, implementation, and the product surface where you view the data.
Use the processing expectations in the dedicated article for each error type. Do not use a missing result immediately after configuration as proof that collection is not working.
Configure API errors
- Open the API errors card.
- Click View and create rules.
- Follow Configure API error collection rules.
The default API error collection captures requests in the 4XX–5XX range with basic information. Use a collection rule when you need additional request or response details or when you need to collect requests outside the default status-code range.
Configure Custom Errors
- Open the Custom errors card.
- Click Configure.
- Follow Set up Custom errors.
You can also send Custom Errors from your implementation by using the dedicated Contentsquare command.
See the Custom Errors Technical Documentation for implementation guidance.
Configure Console Messages
- Open the Console messages card.
- Click Set up log levels.
- Select the log levels you want to collect.
- Apply the setting.
Collect only the levels that support your investigation. Console output can contain personal data or confidential technical information.
Handle personal data
Review the Protect personal data in Errors before you enable Network details, API errors, or troubleshooting details.
The dedicated article explains URL masking, API data protection, Custom Error messages, and Console Messages.