# Web applications: Web request isn't linked to its user action

**URL:** <https://community.dynatrace.com/t/web-applications-web-request-isnt-linked-to-its-user-action/44562>\
**Category:** Troubleshooting\
**Tags:** real-user-monitoring-classic, web-monitoring\
**Created:** [March 19, 2024, 7:30pm UTC](https://community.dynatrace.com/t/web-applications-web-request-isnt-linked-to-its-user-action/44562 "2024-03-19T19:30: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 19, 2024, 7:30pm UTC](https://community.dynatrace.com/t/web-applications-web-request-isnt-linked-to-its-user-action/44562/1 "2024-03-19T19:30:00Z")

</div>

If there appears to be a missing link between a [user action](https://docs.dynatrace.com/docs/shortlink/user-actions)&nbsp;and its distributed trace, check the following&nbsp;for your web application.

- **Verify that web requests are captured** : Make sure that the server handling the web requests is instrumented with OneAgent and the web request is visible in Dynatrace. If some of the expected distributed traces are missing, check if OneAgent has adjusted the amount of data sent to the Dynatrace Server due to heavy load. See&nbsp;[Adaptive traffic management](https://docs.dynatrace.com/docs/shortlink/adaptive-traffic-management-saas)&nbsp;for details.
- **Verify that RUM is supported for the technology** : In general, for distributed traces to be linked to their user actions, the technology on the first instrumented application tier must be one of the technologies listed in&nbsp;[Technology support | Real User Monitoring | Web servers and applications](https://docs.dynatrace.com/docs/setup-and-configuration/technology-support#rum-auto-injection)&nbsp;or, for XHR calls, also in&nbsp;[Deploy OneAgent as AWS Lambda extension](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-lambda-integration/aws-lambda-extension#lambda-cfg-rum).
- **Verify that RUM is enabled on the process group** : You must enable RUM on the process group that handles the request. If your application consists of multiple tiers, enable RUM at least on the first tier (the tier nearest to the browser). For details, see&nbsp;[Real User Monitoring for process groups](https://docs.dynatrace.com/docs/shortlink/rum-for-process-groups).
- **Check if the web request is a cross-origin request**. If it is, follow the instructions in&nbsp;[Link cross-origin XHR user actions and their distributed traces](https://docs.dynatrace.com/docs/shortlink/link-cross-origin-xhrs).
- **Check if there is a cookie domain issue** : Host name determination issues might impair the automatic determination of the cookie domain, or the cookie domain might have been misconfigured manually. See&nbsp;[Configure the RUM cookie domain for web applications](https://docs.dynatrace.com/docs/shortlink/cookie-domain)&nbsp;for details.
- Make sure that your firewalls and proxies let RUM cookies and headers pass through. See&nbsp;[Firewall constraints for RUM](https://docs.dynatrace.com/docs/shortlink/rum-firewall)&nbsp;for details.
- If you configured your infrastructure to add the&nbsp;`HttpOnly`&nbsp;attribute to&nbsp;`dtCookie`, remove this attribute; it is not supported for RUM cookies. See&nbsp;[Cookies](https://docs.dynatrace.com/docs/shortlink/cookies)&nbsp;for details.

Sometimes, it’s also beneficial to know which user action a given web request should be linked to.

- When an action is active with a user input and XHR, the RUM JavaScript sets the&nbsp;`dtPC`&nbsp;request cookie value. This value contains&nbsp;`pageId`&nbsp;and&nbsp;`actionId`&nbsp;and might also contain&nbsp;`serverid`&nbsp;and&nbsp;`visitid`&nbsp;values in the value string.

- To see the values, use Chrome DevTools.

- To see the&nbsp;`dtPC`&nbsp;request cookie value, perform the desired action in your application, go to the&nbsp; **Network** &nbsp;tab, and find the request name in the&nbsp; **Name** &nbsp;column. Select the request name, go to the&nbsp; **Cookies** &nbsp;tab, and check the value for the&nbsp;`dtPC`&nbsp;request cookie, as shown in the following image. The format for the Dynatrace&nbsp;`dtPC`&nbsp;request cookie values is&nbsp;`<serverId>$<pageId>h<actionId>v<visitId>`.
