18 Feb 2025 10:51 AM - edited 04 Nov 2025 12:49 PM
When investigating injection issues, it can be helpful to enable dtHealthCheck to gather diagnostic information. This article provides more information on this and how to enable this feature.
dtHealthCheck is a OneAgent diagnostic feature, enabled by adding the User-Agent header value dtHealthCheck. The OneAgent technologies supporting Real User Monitoring add headers to the responses of any requests made with this User-Agent, and sometimes an HTML marker is included in the body. If automatic injection problems occur, these headers provide diagnostic details, which may help identify the issue.
The following instructions guide you through capturing diagnostic data with dtHealthCheck using Google Chrome or Microsoft Edge.
Open Developer Tools using one of the options below:
Open Network Conditions using one of the options below:
In the same tab that you have set the User-Agent to "dtHealthCheck" in the "Network Conditions" settings, open or reload the webpage and create the session.
Note: the actions must be completed in the same tab as the Network Conditions setting is made, as otherwise the option will be reset to the default.
It can be confirmed that the dtHealthCheck User Agent has been applied by checking for it in the response headers of resources.
For further information on creating HAR files, see How to generate a HAR file.
Export the HAR file as described in How to generate a HAR file.
If you've been asked to provide the HAR file to support, then please do that. You can also find futher troubleshooting in Troubleshooting automatic RUM injection failures and more generally for RUM here.
If you've completed troubleshooting steps but still can't identify the root cause of your issue and resolve it, please contact Dynatrace via the in-product chat or by creating a support ticket.
To help our support team investigate efficiently, include the following information:
dtHealthCheck enabled, as described above.Providing this information upfront will help speed up the resolution process.