<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Agentless Real User Monitoring with Code Snippet (defer) in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Agentless-Real-User-Monitoring-with-Code-Snippet-defer/m-p/250125#M6102</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;4. The POST back is async and does not block any content, so there is no reason to modify it.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 19:22:47 GMT</pubDate>
    <dc:creator>tyler_rowe</dc:creator>
    <dc:date>2024-07-08T19:22:47Z</dc:date>
    <item>
      <title>Agentless Real User Monitoring with Code Snippet (defer)</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Agentless-Real-User-Monitoring-with-Code-Snippet-defer/m-p/226922#M5439</link>
      <description>&lt;P&gt;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 &lt;STRONG&gt;Code Snippet (defer)&lt;/STRONG&gt; format of injection.&lt;/P&gt;
&lt;P&gt;I have realised &amp;amp; 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 -&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/rum-injection#manual-insertion" target="_self"&gt;https://docs.dynatrace.com/docs/shortlink/rum-injection#manual-insertion&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Dynatrace recommends to add the script as early as possible. Does it matter if we do it sync or async? The recommended way is to use the JavaScript tag but that is a sync call and lets say for some reason, call to the cluster active gate is taking longer to response, than that will affect my application to load. How can we avoid this scenario?&lt;/LI&gt;
&lt;LI&gt;If we use&amp;nbsp;&lt;SPAN&gt;Inline Code (&lt;/SPAN&gt;jsInlineScript&lt;SPAN&gt;) and manage it using the API as mentioned in the documentation, will that have the same affect as JavaScript tag?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;I don't want to loose any monitoring data and neither I want to have a performance impact. Is there a way to achieve this?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;As far as I know, there are 2 requests made to Dynatrace in case of RUM, one is to GET the JavaScript Code or monitoring Code and then another is POST to send the data captured from browser. Are both calls sync or just the 1st one?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Any guidance on this is appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Shashank&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 10:04:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Agentless-Real-User-Monitoring-with-Code-Snippet-defer/m-p/226922#M5439</guid>
      <dc:creator>agrawal_shashan</dc:creator>
      <dc:date>2023-12-13T10:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Agentless Real User Monitoring with Code Snippet (defer)</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Agentless-Real-User-Monitoring-with-Code-Snippet-defer/m-p/244687#M5958</link>
      <description>&lt;P&gt;All great questions&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22988"&gt;@agrawal_shashan&lt;/a&gt;. 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.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 19:01:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Agentless-Real-User-Monitoring-with-Code-Snippet-defer/m-p/244687#M5958</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2024-05-02T19:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Agentless Real User Monitoring with Code Snippet (defer)</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Agentless-Real-User-Monitoring-with-Code-Snippet-defer/m-p/250125#M6102</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;4. The POST back is async and does not block any content, so there is no reason to modify it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 19:22:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Agentless-Real-User-Monitoring-with-Code-Snippet-defer/m-p/250125#M6102</guid>
      <dc:creator>tyler_rowe</dc:creator>
      <dc:date>2024-07-08T19:22:47Z</dc:date>
    </item>
  </channel>
</rss>

