Decibel Insight
Knowledgebase

Configuring Application Error Messages

Application Error messages are collected using the Decibel Insight sendApplicationError JavaScript API end-point. This can be called directly on the page when a message is shown, using one of the following methods.

To provide a single error message to Decibel Insight, simply pass the error message text (this can be hard-coded or retrieved from a data layer JavaScript variable), for example:

<script type="text/javascript">
    decibelInsight('sendApplicationError', dataLayer.errorMessage);
</script>

Alternatively, a CSS selector can be provided that matches all HTML elements on the page that may contain an Application Error message. In this case, zero or more error messages that match the provided CSS selector will be tracked by Decibel Insight.

<script type="text/javascript">
    decibelInsight('sendApplicationError', '.error', true);
</script>

Once implemented, you will be able to use the Application Error Reporting feature, along with being able to use Application Errors as Segment Filters.