Network Error Logging (NEL)

Network Error Logging (NEL) defines a new HTTP response header called NEL that gives you a way to define an endpoint for the browser to report network errors encountered by your users. NEL integrates with the Reporting API to deliver the network errors.

Please note that NEL is a draft specification and is not fully supported by all browsers.


Setting up NEL can be as simple as adding a single HTTP response header to your website.

Ensure you have the report-to header defined as described in setting up the Reporting API.

Add the NEL header to your website.

NEL: {
    "report_to": "raygun",
    "max_age": 10886400,
  }

NEL uses the Reporting API to deliver network errors to Raygun. This allows you to attach user information, custom data, tags and a version number using the method described in the Reporting API setup.