I would like to configure user tag on dynatrace managed.
The thing I want to capture is the email address used for login on this page https://www.whalet.com.my/cashless/Login/Login.asp...
I have gone through the document https://help.dynatrace.com/user-experience-monitor...
However, I could not understand the document very well.
Appreciate if someone could help me.
With this approach you will need to modify the page source code to call this function.
I recommend to try the first option if possible. Use the second option only if the username cannot be obtained by on the the four methods above.
Please be aware that there is some user tag persistence across sessions the the UI. I'd recommend to clear your cookies when testing the user tag definition, since your sessions might have the AnonymousXXXXX tag even if your user tag definition is correct. (Happened to me few times). The usertag will correctly assigned for new sessions.
As Julius has already mentioned, you can try to identify users by capturing values by looking at cookies, meta-tags, global JS variables or CSS selectors.
Keep in mind that only finished user session (timeout is 30 minutes after the last user action) are visible in the UI. For testing, you can end a user session by entering the following line in the console of your browser: dtrum.endSession();
After this call it last about 2,3 minutes till you see your user session within the UI.
can you please provide the exact code block that must be added to identify the user? Also an example/code block for the endSession() usage would be great
I suppose it should also include a check that the dtrum library is there, right?
We want to pass this information to the development team.
It's available from your tenant in Settings -> Web & mobile monitoring -> Custom user actions.
You should definitely check if the dtrum object is available, so no error is thrown in case monitoring is disabled or the dynatrace script failed to load for some reason.