11 Mar 2020
03:41 AM
- last edited on
30 Sep 2022
05:07 AM
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.
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
Thanks Sebastian. Yes, the dots are right now my problem...