How to Determine DTRUM Session IDs via JS API

Suppose I retrieve the Dynatrace RUM JS tag based on what I see from here GET OneAgent JavaScript tag — Dynatrace Docs.

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 Types | RUM JavaScript API - 1.351.2. 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.

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.

@Julius_Loman - Thank you. I will be sure to check this out.