Don’t miss site errors - manually tracking

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". 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 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>

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.