cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Determine DTRUM Session IDs via JS API

RR123
Visitor

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.

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts