# writing BT in Dynatrace managed

**URL:** <https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381>\
**Category:** Real User Monitoring\
**Tags:** dynatrace-managed, user-actions\
**Created:** [January 31, 2019, 4:25pm UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381 "2019-01-31T16:25:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramakrishnan\_p](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ramakrishnan\_p](https://community.dynatrace.com/u/ramakrishnan_p)\
**Post date:** [January 31, 2019, 4:25pm UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381/1 "2019-01-31T16:25:29Z")

</div>

i have a requirement

user clicks a button in the page. how can we write the same in the Dynatrace managed?

PFA screenshots. which is written in Appmon. i wanted to replicate the same scenario in Dynatrace managed. Adding2 filters with AND condition.

---

<div class="post-metadata">

**Author:** ![ramakrishnan\_p](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ramakrishnan\_p](https://community.dynatrace.com/u/ramakrishnan_p)\
**Post date:** [January 31, 2019, 4:57pm UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381/2 "2019-01-31T16:57:24Z")

</div>

[bt-jan31.jpg](https://answers.dynatrace.com/storage/attachments/19601-bt-jan31.jpg)[user-action.jpg](https://answers.dynatrace.com/storage/attachments/19602-user-action.jpg) forgot to attach the files

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [February 1, 2019, 11:55am UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381/3 "2019-02-01T11:55:56Z")

</div>

If you want to see all user sessions, that have those specific user actions in them you can use multiple _user action name_ filters in the user session view:

 ![19610-user-actoin-name-filter.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/d/3da68edc6eec4c39bb71273c920eacc2df062159.png)

If you want to use it regurarly without having to reenter the filter every time you can just bookmark the page after setting the filters, they are included in the URL.

---

<div class="post-metadata">

**Author:** ![AlexanderSommer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alexandersommer/32/2501_2.png) [@AlexanderSommer](https://community.dynatrace.com/u/AlexanderSommer)\
**Post date:** [February 1, 2019, 3:51pm UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381/4 "2019-02-01T15:51:39Z")

</div>

You can also use the user session rest API to define a query: [https://www.dynatrace.com/support/help/monitor/use…](https://www.dynatrace.com/support/help/monitor/user-sessions/how-can-i-create-custom-queries-based-on-user-session-data/)  
At this point in time you only can use the USQL with the Rest API, but in a few weeks, you can use it also within the new advanced user session query UI.

---

<div class="post-metadata">

**Author:** ![ramakrishnan\_p](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ramakrishnan\_p](https://community.dynatrace.com/u/ramakrishnan_p)\
**Post date:** [February 15, 2019, 2:33am UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381/5 "2019-02-15T02:33:50Z")

</div>

Hello Patrick

thanks for your reply. another question. can we mark this in our Dashboard? [pin dashboard] so that i can monitor easily. also i wanted to know how to put condition whether a Button is available or not?

thanks

RamP

---

<div class="post-metadata">

**Author:** ![ramakrishnan\_p](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ramakrishnan\_p](https://community.dynatrace.com/u/ramakrishnan_p)\
**Post date:** [February 18, 2019, 4:55pm UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381/6 "2019-02-18T16:55:07Z")

</div>

Hello Patrick

thanks for your reply. another question. can we mark this in our Dashboard? [pin dashboard] so that i can monitor easily. also i wanted to know how to put condition whether a Button is available or not?

thanks

RamP

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [February 19, 2019, 10:57am UTC](https://community.dynatrace.com/t/writing-bt-in-dynatrace-managed/19381/7 "2019-02-19T10:57:58Z")

</div>

You can pin that graph to a dashboard unfortunately. You could mark the button click as a key user action and create a custom chart for that though.
