# window.dtrum is always undefined using dtrum.d.ts

**URL:** <https://community.dynatrace.com/t/window-dtrum-is-always-undefined-using-dtrum-d-ts/42782>\
**Category:** Real User Monitoring\
**Tags:** user-actions, javascript\
**Created:** [November 22, 2023, 4:57pm UTC](https://community.dynatrace.com/t/window-dtrum-is-always-undefined-using-dtrum-d-ts/42782 "2023-11-22T16:57:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![christiansolano](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@christiansolano](https://community.dynatrace.com/u/christiansolano)\
**Post date:** [November 22, 2023, 4:57pm UTC](https://community.dynatrace.com/t/window-dtrum-is-always-undefined-using-dtrum-d-ts/42782/1 "2023-11-22T16:57:31Z")

</div>

Hi,

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.

Any idea how to solve this issue?

---

_[View the full topic](https://community.dynatrace.com/t/window-dtrum-is-always-undefined-using-dtrum-d-ts/42782)._
