# Web applications: User action data is missing

**URL:** <https://community.dynatrace.com/t/web-applications-user-action-data-is-missing/44565>\
**Category:** Troubleshooting\
**Tags:** real-user-monitoring-classic, web-monitoring\
**Created:** [March 21, 2024, 1:50pm UTC](https://community.dynatrace.com/t/web-applications-user-action-data-is-missing/44565 "2024-03-21T13:50:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maliborskaya](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@maliborskaya](https://community.dynatrace.com/u/maliborskaya)\
**Post date:** [March 21, 2024, 1:50pm UTC](https://community.dynatrace.com/t/web-applications-user-action-data-is-missing/44565/1 "2024-03-21T13:50:00Z")

</div>

If [user action](https://docs.dynatrace.com/docs/shortlink/user-actions) data is missing from your monitored [web application](https://docs.dynatrace.com/docs/shortlink/web-applications-landing), you can perform the following checks in Google Chrome with&nbsp;[Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/)&nbsp;open, and then use Chrome DevTools to verify that certain data exists to see if user action data is captured properly. Select&nbsp; **F12** &nbsp;to open Chrome DevTools in Chrome.

- **Make sure the user action triggers network traffic**. Open the&nbsp; **Network** &nbsp;tab in Chrome DevTools, and then clear all requests. Perform the action you would like to check and inspect the action’s network traffic. To do this, check the&nbsp; **Type** &nbsp;column in the&nbsp; **Network** &nbsp;tab. If there are no&nbsp;`xhr`&nbsp;or&nbsp;`fetch`&nbsp;type requests, this is not an action and the RUM JavaScript won’t report it. Images and CSS information don’t count as&nbsp;`xhr`&nbsp;or&nbsp;`fetch`&nbsp;and won’t cause an action to be generated. If you see no&nbsp;`xhr`&nbsp;or&nbsp;`fetch`&nbsp;requests, use the&nbsp;[RUM JavaScript API](https://docs.dynatrace.com/docs/shortlink/api-rum)&nbsp;to manually monitor this action.

- **Make sure the action does not use&nbsp;`setTimeout(async)`**. Perform the action you would like to check and use Chrome DevTools to make sure there is an&nbsp;`xhr`&nbsp;request in the&nbsp; **Network** &nbsp;tab. If an&nbsp;`xhr`&nbsp;request exists, hover over the&nbsp; **Initiator** &nbsp;column in that row and see if there is a line that reads&nbsp;`setTimeout(async)`. If that is the case, see if enabling&nbsp;`Timed action support`&nbsp;helps capture this action. If this does not work, or if the&nbsp; **Initiator** &nbsp;contains&nbsp;`setInterval(async)`&nbsp;or&nbsp;`Promise(async)`, manual instrumentation is necessary. See&nbsp;[Missing XHR actions when promises are used](https://docs.dynatrace.com/docs/shortlink/capture-xhr-actions#missing-actions-due-to-promises)&nbsp;for more details.  
The following image shows a typical&nbsp;`xhr`&nbsp;request in Chrome DevTools, with&nbsp;`setTimeout(async)`&nbsp;in the initiator data.

- **Make sure the correct modules are activated**. Perform the action and use Chrome DevTools to see if the&nbsp; **Network** &nbsp;tab contains a request with the&nbsp;`fetch`&nbsp;or&nbsp;`xhr`&nbsp;type. Enable the correct module—fetch or a more specialized module for fetch, BasicXHR, or a more specialized module for XHR actions.

If XHR actions do not have timing information, check whether&nbsp;the&nbsp;[Timing-Allow-Origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin)&nbsp;HTTP response header is set if your page requests resources from other domains. Otherwise, the browser can’t supply the values, and they can’t be displayed in the&nbsp;[Contributors breakdown chart](https://docs.dynatrace.com/docs/shortlink/user-action-analysis#contributors-breakdown-chart-and-waterfall-analysis). If this happens, a message appears in the chart area stating that network and server time can’t be calculated because Dynatrace didn’t receive W3C resource timings.

 ![rum-troubleshooting-cors-xhrnotimings-1580-51f65a3cd8](https://global.discourse-cdn.com/dynatrace/original/2X/e/e9e66a1523d477ce79c15e6a9b56bc565b79770f.png)
