# Opt-Out Cookie based on User Preferences

**URL:** <https://community.dynatrace.com/t/opt-out-cookie-based-on-user-preferences/42599>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, data-privacy-and-product-security, javascript\
**Created:** [November 14, 2023, 7:55am UTC](https://community.dynatrace.com/t/opt-out-cookie-based-on-user-preferences/42599 "2023-11-14T07:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohanraj](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Mohanraj](https://community.dynatrace.com/u/Mohanraj)\
**Post date:** [November 14, 2023, 7:55am UTC](https://community.dynatrace.com/t/opt-out-cookie-based-on-user-preferences/42599/1 "2023-11-14T07:55:41Z")

</div>

In order to abide by the Cookie Law, I am putting in place a cookie consent banner in our application.

According to user preferences, is there a way to disable the Dynatrace Cookie?

I read the documentation on opting out using dtrum.disable(), however this only stops data collecting. But the cookies were still saved.

The identical question was posted a few years ago, and there were no options at the time. Is it possible to disable the storage of cookies in the new version? If yes, how?

Regards,  
Mahan

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 14, 2023, 10:35am UTC](https://community.dynatrace.com/t/opt-out-cookie-based-on-user-preferences/42599/2 "2023-11-14T10:35:53Z")

</div>

From the information I have found, cookies are being deleted:&nbsp;[https://community.dynatrace.com/t5/Real-User-Monitoring/Does-dtrum-disable-clear-all-dynatrace-cookies/m-p/119953](https://community.dynatrace.com/post/119953)
