For privacy reasons, TrackJS doesn’t automatically record the request or response payloads from network errors. However, if that’s something you wish to do, the following code provides a general outline of how that might be accomplished.
First, you’ll want to prevent TrackJS from capturing network errors, as we’ll build a custom handler to catch them.
Then, we’ll add a custom error handler to your AJAX system. This can vary quite a bit based on your framework. Here is an example using jQuery: