30 Jan 2018 05:41 PM - last edited on 30 Sep 2022 01:21 PM by MaciejNeumann
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.
Solved! Go to Solution.
30 Jan 2018 06:01 PM
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.
30 Jan 2018 06:09 PM - last edited on 16 Oct 2023 04:08 PM by random_user
01 Feb 2018 08:05 PM
Just for reference here, it is possible to use the localstorage. Set up a User Tag for a JavaScript variable and use: localStorage.<yourvariablename>