cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Variable localstorage as UserTag? Possible?

fernando_albuqu
Organizer

Hello guys,

There are any way to extract the value of a variable in the localstorage of the browser, with the goal to use it as an user Tag? Or I'll should to extract this value manually and implement it (as cookie, javascript value, css selector).

Thank you,
Fernando.

4 REPLIES 4

Jordan_Cogan
Helper

Hi Fernando,

No, Dynatrace is unable to use localstorage for a UserTag. Currently, the only supported expression types for extracting user tags are meta tags, cookies, JavaScript variables, and anything you can identify with a CSS selector, so you would need to make the value available in one of those ways, as you said. If using localstorage is something you would find useful, you could submit an RFE for it here.

Thank you Jordan C.

RFE submitted

https://answers.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/196143/user-tag-from-localstorage-of-the-browser.html

Just for reference here, it is possible to use the localstorage. Set up a User Tag for a JavaScript variable and use: localStorage.<yourvariablename>