cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to check if Javascript is injected to application

SNampally
Participant
 
3 REPLIES 3

rajanikanthanka
Inactive

Hi Sunayana,

You can go to your website and right click and select view page source. You can search for dtagent.

If it is not there then it is not injected.

Is this for UEM data? Did you already do UEM Health Check?

Thanks,
Rajani

Babar_Qayyum
Leader

Hello Sunayana,

Also review the below documentation for ‘How to instrument a web application’ and ‘How to use UEM Health Check’.

https://www.dynatrace.com/support/doc/appmon/user-experience-management/how-to-instrument-a-web-appl...

https://www.dynatrace.com/support/doc/appmon/user-experience-management/user-experience-management-a...

Regards,

Babar

Hi, You can also check by manually going int the developers tool (Javascrpt Console) and try checking if the agent objects are defined or not:

if (!window.dT_) console.log("No agent injected.");

Basically it checks if Window.dT_ JS agent object has been defined or not.

Regards, Rajesh