# Autoinject RUM vs Agentless RUM

**URL:** <https://community.dynatrace.com/t/autoinject-rum-vs-agentless-rum/42534>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-monitoring\
**Created:** [November 9, 2023, 1:59am UTC](https://community.dynatrace.com/t/autoinject-rum-vs-agentless-rum/42534 "2023-11-09T01:59:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haziq](https://avatars.discourse-cdn.com/v4/letter/h/9d8465/32.png) [@Haziq](https://community.dynatrace.com/u/Haziq)\
**Post date:** [November 9, 2023, 1:59am UTC](https://community.dynatrace.com/t/autoinject-rum-vs-agentless-rum/42534/1 "2023-11-09T01:59:20Z")

</div>

Hi I have a question regarding the use of agentless RUM vs Auto injected RUM.

Currently have a customer that have OneAgent installed on their application servers however they have RUM disabled. The RUM data being captured is through manual injection instead.

I would like to clarify, do we get the same level of data captured from Auto injected RUM vs Manual injection?  
I’d like to know because when viewing some JavaScript errors faced by customer applications, we are unable to view the stacktrace.  
In addition are they missing out on anything by using manual instead of auto injection?  
Since they have already installed OneAgent on their application servers, should they stick to auto injected RUM?

Thank you.

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [November 9, 2023, 6:10am UTC](https://community.dynatrace.com/t/autoinject-rum-vs-agentless-rum/42534/2 "2023-11-09T06:10:19Z")

</div>

Hello,

They should be the same. Sometimes, the way of injection is affecting the traces on the backend, you need to recheck it and choose the best for you (inline, code snippet, JavaScript tag). you can also check with support through the chat for specific scenarios or cases.

Thanks,

Islam

---

<div class="post-metadata">

**Author:** ![gbaudart](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Post date:** [November 9, 2023, 8:04am UTC](https://community.dynatrace.com/t/autoinject-rum-vs-agentless-rum/42534/3 "2023-11-09T08:04:50Z")

</div>

In certain cases, if you use agentless and if you activate cross-origin, it may be necessary to pass the x-dtc header into CORS in order to be able to link user actions (or errors) to backend traces.

documentation link :&nbsp;[Link cross-origin XHR user actions and their distributed traces in RUM Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/platform-modules/digital-experience/web-applications/initial-setup/link-cross-origin-xhrs)
