# Problem with capture the user action property

**URL:** <https://community.dynatrace.com/t/problem-with-capture-the-user-action-property/44420>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-actions\
**Created:** [March 4, 2024, 2:25pm UTC](https://community.dynatrace.com/t/problem-with-capture-the-user-action-property/44420 "2024-03-04T14:25:38Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [March 4, 2024, 2:25pm UTC](https://community.dynatrace.com/t/problem-with-capture-the-user-action-property/44420/1 "2024-03-04T14:25:38Z")

</div>

Hi,  
I have an identifier set in the page source (data-dynatrace-id) and would like to capture it as a user action property. I’m trying to use the CSS selector, but it doesn’t quite work. Does anyone have any ideas?

 ![image.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/3/53af26c7c6f03ff78e1ce2cbc0085be81171f931.png)

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [March 4, 2024, 3:52pm UTC](https://community.dynatrace.com/t/problem-with-capture-the-user-action-property/44420/2 "2024-03-04T15:52:06Z")

</div>

Hi,

Maybe a JavaScript variable can help but developers should add it.

Other option, since it is a button, do you know that information can be catched using request attributes? If yes, you can link that property that specific request attribute.

Best regards

---

<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:** [March 5, 2024, 3:12pm UTC](https://community.dynatrace.com/t/problem-with-capture-the-user-action-property/44420/3 "2024-03-05T15:12:26Z")

</div>

Hey,

Unfortunately, the option with Request Attribute could not work because it is in the code of the page.  
This css selector worked: [data-dynatrace-id]@data-dynatrace-id

Radek  
Thanks for your help!
