29 May 2025
01:09 AM
- last edited on
30 May 2025
08:58 AM
by
MaciejNeumann
Suppose I retrieve the Dynatrace RUM JS tag based on what I see from here https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/rum/real....
I would like to receive details regarding the dtrum session in the browser. As soon as dtrum is loaded in the browser, I would like to capture the dtrum session Id and any other ID-related data associated with it.
I looked through https://www.dynatrace.com/support/doc/javascriptapi/doc/interfaces/dtrum_types.DtrumApi.html. However, I couldn't find any method that returns this piece of data.
Could someone please provide any suggestions as to how to capture the session id from the DTRUM object?
Thanks, and please let me know if you would like further details.
Solved! Go to Solution.
29 May 2025 09:05 PM
Hi @RR123 ,
You are correct, there are no such methods in the dtrum object, but you can use Dynatrace cookies to get the values you are interested in.