question

Swati B. avatar image
Swati B. asked ·

Auto inject of DT Ruxitjs script not working

Hi All , I am facing a challenge is monitoring user experience of an application. In some pf the pages , ruxitjs is auto inserted, in many it is not. I am able to see dtcookie , dtsa etc in all these pages. Can someone suggest a troubleshooting step.


Thanks

Swati

oneagentdynatrace saasRUMjavascript
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Yos N. avatar image
Yos N. answered ·

Hi @Swati B.

Check documentation on Why don't I see my applications or monitoring data?

There you will find step by step checks

HTH

Yos

4 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

hi @Yos N. thanks for your reply. There is no troubleshooting step given in https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/web-applications/troubleshooting/why-dont-i-see-my-applications-or-monitoring-data/ . in my application some pages dont have javascript tag injected.

0 Likes 0 · ·

Hi @Swati B.

Please scroll down on that page and look for the follows lines and open them one by one

0 Likes 0 · ·
1586258259413.png (49.6 KiB)

hi @Yos N. this article is not useful. There is no mention of troubleshooting steps in case JS is not injecting in pages. The first step How can I confirm the JavaScript tag is injected correctly? holds true . There is no JS injected. But there are no further steps as what do to next.


0 Likes 0 · ·

Hi @Swati B.

Here are the rules specify the criteria for determining a suitable location within an HTML document to inject the JavaScript tag.

Check if your pages compile with those rules.

HTH

Yos

0 Likes 0 · ·
1587114071541.png (64.5 KiB)
1587114076545.png (64.5 KiB)
1587114113978.png (63.0 KiB)
1587114147898.png (57.8 KiB)
domenico b. avatar image
domenico b. answered ·

HI @Swati B.

i take same experience with some of my applications where HTML header was more then 1000 digit. in this case javascript injection did not work property or other javascript stay on top of the code. check to all tag are <>closed </>

In this case try to force Javascript injection in the configuration of your Dynatrace application. Try to put Script near <head> to be sure is the first think you load in the page

Application- edit

in Application settings

Setting--> advance setup-->JavaScript injection (section) --> add custom rules
example:  All pages ( After specific HTML <head> )


1586905282094.png (16.5 KiB)
1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Thanks @Domenico B. I will check the header and see if that is the issue.

0 Likes 0 · ·
Swati B. avatar image
Swati B. answered ·

I also observed unsual value of dtSa cookie . in other applications dtSa cookie has blank value. Is it an issue?


1586256039397.png (2.8 KiB)
Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.