Problem with capture the user action property

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?

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

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!