Capturing HTTP Status Code of the Current Page
If you are using UI SDK and if it is initialized on a page load, Discover now captures the HTTP Status and returns it in a way that facilitates the tracking of error codes by page URL.
- The UI SDK uses window.performance.getEntries()[0].responseStatus to capture the HTTP status code of the currently loaded page where the UI SDK has initialized.
- The result of the call is a payload that matches it to a URL or
pageNameduring eventing or reporting. - If the call returns undefined, return a value of undefined in the payload to filter it out at the reporting layer.
Note: This feature is not supported on Safari browser.