SessionCam detects pre-defined error messages on your site. In order for this to take place, SessionCam will look for any classes in your HTML which contain the string "error", “invalid”, and many others terms. Unfortunately not all in-page errors are marked with classes that match our search terms.
To allow the tacking of errors which fall outside of this detection method, or to include any 'custom' messages, you can add the class 'sessioncamlogerror' to any parent element to capture the contents of the element as an error.
For example; the code below will return the error message: "An Error has been encountered"
<div class="message-text">
<br/>
<h2 class="sessioncamlogerror">
<br> An Error has been encountered
<br>
<br>
</h2>
<p>
<br> The database lookup failed with exit code: 1234
<br>
</p>
<br>
</div>
If however, you implement the class as below, in the parent element of both visible items, it will result in the message:
"An Error has been encountered The database lookup failed with exit code: 1234"
<div class="message-text sessioncamlogerror">
<br>
<h2>
<br> An Error has been encountered
</h2>
<br>
<p>
<br> The database lookup failed with exit code: 1234
</p>
</div>
You will find these errors listed as normal on your in-page error page in the SessionCam console https://console.sessioncam.com/Console/ErrorReporting.
Error Detection runs once per day so it may take up to 48 hours for your newly tagged errors to appear in the list.
For more general information on SessionCam Error Detection, please view our help article section on this in the User Guide https://help.sessioncam.com/hc/en-gb/sections/360001327538-Errors
As always if you have any questions please contact our support team at support@sessioncam.com