11 Mar 2020
10:41 AM
- last edited on
30 Sep 2022
01:07 PM
by
MaciejNeumann
Hi,
I have an Application where i have the Login Name for User Tagging in the Variable localStorage["ls.user.userId"]. If i want to put that into the JavaScript Variable, i am not able to put it in because of the "[]" (Message from Dynatrace: "Not supported JavaScript expression! ").
Do you now a way to put this localStorage Variable into Dynatrace Managed?
Thanks for your Help, Urs
Solved! Go to Solution.
11 Mar 2020
10:53 AM
- last edited on
16 Oct 2023
03:30 PM
by
random_user
Try yo use it that way localStorage.ls.user.userId Such notation localStorage.<yourvariablename> is working in browsers as well and should work in DT as well. What I'm concerned about are dots in variable name. If this will not work, unfortunately it is not possible to use localStorage.
Here is RFE with explenation:
Sebastian
12 Mar 2020 11:05 AM
Thanks Sebastian. Yes, the dots are right now my problem...