30 Oct 2023 12:04 AM - last edited on 13 Dec 2023 10:04 AM by Ana_Kuzmenchuk
Hello Folks, We have been using Agentless real user monitoring to monitor some of our Single page applications built in Angular. And to avoid the performance impact, we ended up using Code Snippet (defer) format of injection.
I have realised & noticed that in some cases we don't get the relevant data or user actions which we are supposed to get and I think it could be because it's loading asynchronously. I have few questions around Dynatrace RUM which I will highlight below in points. Also wherever I have mentioned documentation, I am referring to here - https://docs.dynatrace.com/docs/shortlink/rum-injection#manual-insertion
Any guidance on this is appreciated.
Best Regards,
Shashank
Solved! Go to Solution.
02 May 2024 08:01 PM
All great questions @agrawal_shashan. Did you happen to get answers for them. If so could you please share? If not, maybe some other RUM experts can weigh in on the questions.
08 Jul 2024 08:22 PM
1. If you are using Code Snippet deferred, you'll want to inject the code snippet that you download from the portal as sync and as early as possible. It contains the initialization code and the config data for the RUM JS, and when it makes the call to the RUM JS file from the CAG/CDN, it'll make it a deferred request to prevent render blocking.
2. That API is for inserting the latest version of the tag into your code during application build and should not be used to insert/serve the tag to end users.
3. The Code Snippet Deferred option is the only way to ensure the tag is not render blocking. For those concerned about performance of the tag, utilizing a CDN is recommended (especially when using a Cluster ActiveGate) to ensure proper coverage/scaling
4. The POST back is async and does not block any content, so there is no reason to modify it.