<?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 window.dtrum is always undefined using dtrum.d.ts in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/window-dtrum-is-always-undefined-using-dtrum-d-ts/m-p/229700#M5490</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I trying to use the dtrum API. However, it is not working even after configuring the Dynatrace folder on the typeRoots section under the compilerOptions of the tsconfig.json.&lt;/P&gt;
&lt;P&gt;Any idea how to solve this issue?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2023 15:44:23 GMT</pubDate>
    <dc:creator>christiansolano</dc:creator>
    <dc:date>2023-12-12T15:44:23Z</dc:date>
    <item>
      <title>window.dtrum is always undefined using dtrum.d.ts</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/window-dtrum-is-always-undefined-using-dtrum-d-ts/m-p/229700#M5490</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I trying to use the dtrum API. However, it is not working even after configuring the Dynatrace folder on the typeRoots section under the compilerOptions of the tsconfig.json.&lt;/P&gt;
&lt;P&gt;Any idea how to solve this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 15:44:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/window-dtrum-is-always-undefined-using-dtrum-d-ts/m-p/229700#M5490</guid>
      <dc:creator>christiansolano</dc:creator>
      <dc:date>2023-12-12T15:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: window.dtrum is always undefined using dtrum.d.ts</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/window-dtrum-is-always-undefined-using-dtrum-d-ts/m-p/252876#M6155</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Firstly, it’s important to note that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dtrum.d.ts&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file is only a types file and does not contain any actual logic. This means that simply configuring the Dynatrace folder in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;typeRoots&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;section under&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;compilerOptions&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tsconfig.json&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;won’t make the API work on its own.&lt;/P&gt;&lt;P&gt;To ensure the dtrum API functions correctly, you should validate that the RUM JavaScript snippet is running properly in your environment. This is crucial as this snippet is responsible for the actual implementation of the dtrum API.&lt;/P&gt;&lt;P&gt;Additionally, for a robust implementation, it’s a good practice to treat the dtrum API as optional in your JavaScript code. This way, your application can gracefully handle scenarios where the API might not be available.&lt;/P&gt;&lt;P&gt;More related documentation:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/web-applications/additional-configuration/customize-rum" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/platform-modules/digital-experience/web-applications/additional-configuration/customize-rum&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 07:23:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/window-dtrum-is-always-undefined-using-dtrum-d-ts/m-p/252876#M6155</guid>
      <dc:creator>Matthias____</dc:creator>
      <dc:date>2024-08-08T07:23:48Z</dc:date>
    </item>
  </channel>
</rss>

