• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

Configure AjaxRequest events

In agent version 1211 or higher, all network requests made by a page are recorded as AjaxRequest events. You can configure which requests are recorded and what data is captured:

  • Deny list: Filter which domains and URLs are excluded from AJAX tracking
  • Payload capture: Record full request and response data for debugging failures

Deny list

By default, we record AjaxRequest events for all network requests made by your application.

  • To stop recording all events, add a singular * (asterisk) wildcard character.
    • Example: *
  • To stop recording events for a full site, add the domain name.
    • Example: mywebsite.com
  • To stop recording events for a specific page, add the domain and path.
    • Example: mywebsite.com/photos
  • Starting with agent version 1.307.0, anywhere we find an * (asterisk), we’ll match any length of string.
    • Example: mywebsite.com/shop/* (for a path), *.mywebsite.com (for a subdomain), mywebsite.com/*/shop/*/checkout (for mid-URL strings).

The protocol, port, search, and hash of a URL are ignored by the deny list.

Access the deny list

To update the deny list of URLs your application will filter from creating events, go to the app settings page:

  1. Go to one.newrelic.com > All capabilities > Browser > (select an app) > Settings > Application settings.
  2. Under the AJAX data capture settings section, in the Deny list field, add the filters you would like to apply to your app.
  3. Select Save to update the agent configuration.
  4. Redeploy the browser agent (either restarting the associated agent or updating the copy/paste browser installation).

Validate deny list filters

To validate whether the filters you have added work as expected, run a NRQL query for AjaxRequest events matching your filter.

FROM AjaxRequest SELECT * WHERE requestUrl LIKE '%example.com%'

Payload capture data

중요

Payload capture requires browser agent version 1.317.0 or higher.

You can enable payload capture for all requests or only for failed requests. When enabled, the browser agent captures the request and response payloads for all AJAX calls for all the allowed domains. This is useful for debugging failures that aren't visible from metadata alone, such as errors hidden in response bodies.

When you enable AJAX payload capture, the browser agent adds the following attributes to AjaxRequest events:

  • requestBody: The request payload.

  • requestHeaders: Request headers as JSON.

  • requestQuery: URL query parameters as JSON.

  • responseBody: The response payload.

  • responseHeaders: Response headers as JSON.

  • ajaxRequest.id: Unique identifier for each AJAX request.

    All payload data attributes are truncated at 4096 bytes. When truncation occurs, the last 4 bytes are replaced with ... to indicate that the content was cut off.

Enable payload capture

You can enable payload capture using one of the following methods:

When you enable payload capture for the first time, New Relic automatically adds baseline obfuscation rules to protect common sensitive data:

You can configure obfuscation rules in the New Relic platform to mask sensitive data before it's sent to New Relic. For more details on obfuscation rules, see Obfuscate browser agent data.

After you enable the payload capture setting, you can view the captured payload data at the following pages:

How payload capture interacts with the deny list

Payload capture respects your existing deny list. For any AJAX request:

  • If the URL is on the deny list, the event is dropped entirely and no metadata or payload is captured.
  • If the URL isn't on the deny list, based on your capture payload settings, the agent captures the request and response payloads and applies obfuscation rules before sending the data to New Relic.

Create obfuscation rules

Learn how to create obfuscation rules to protect sensitive data.

Browser agent NerdGraph APIs

Learn about using the NerdGraph APIs for New Relic browser agent.

Troubleshooting AJAX data collection

Learn how to troubleshoot issues with AJAX data collection.

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.