How do I configure real user monitoring for XHR (AJAX)?

Real user monitoring has a number of helpful settings enabled by default, including bandwidth checks, W3C timings, and third party content detection.

Capture XHR (AJAX) actions

Dynatrace offers support for a number of XHR (AJAX) frameworks, including JQuery, Dojo, Angular.js, and more. If your application relies on one of these frameworks, you should enable this support. Go to Settings > Monitoring overview > Applications and select your new application. Then go to Content capture and select the XHR (AJAX) framework that's appropriate for your environment.

  • If your application uses a framework that isn't explicitly supported, select Basic XHR Detection (GWT, ZK, ASP.NET Ajax, RichFaces). This setting uses a generic approach to capture XHR (Ajax) calls.
  • If you're capturing XHR (AJAX) actions from older versions of Microsoft Internet Explorer, be sure to also enable the ActiveXObject detection setting.
  • Depending on the XHR (AJAX) framework or architecture of your application, you may additionally need to enable the Timed action support setting at the bottom of the Content capture settings page. This setting is necessary in situations where an application doesn't trigger XHR (AJAX) calls directly in event handlers of HTML elements but rather defers them via SetTimeout calls.

You can also customize real user monitoring using the JavaScript API.