Try it free

User sessions

  • Latest Dynatrace
  • Reference
  • Preview

User sessions aggregate user events into sessions, providing a comprehensive view of a user's journey through the application. A user session—also known as a "visit," "journey," or "clickpath"—is a sequence of user actions that are performed by the same user in your application during a limited period of time. A single session typically includes multiple page or view loads, third-party content requests, service requests, and user actions such as clicks or taps. Each user session includes at least one user navigation or one user action.

The session provides a summary of the user events and interactions with your application, as well as errors, properties, and other metadata. It does this by monitoring all events and generating aggregates from them.

User session

A user session—also known as a "visit," "journey," or "clickpath"—is a sequence of user actions that are performed by the same user in your application during a limited period of time. A single session typically includes multiple page or view loads, third-party content requests, service requests, and user actions such as clicks or taps. Each user session includes at least one user navigation or one user action.

Query

Searches for all user sessions.

fetch user.sessions

Top-level fields

AttributeTypeDescriptionExamples
durationdurationstable
Display name: Duration
The difference between start_time and end_time in nanoseconds.
42
end_reasonstringexperimental
The reason why the user session was closed.
timeout
end_timetimestampstable
Display name: End time
End time of a data point. Value is a UNIX Epoch time in nanoseconds and greater than or equal to the start_time. Time correction is applied.
1649822520123123165
navigation_countlongexperimental
The number of navigation events.
6
page_summary_countlongexperimental
The number of page summary events.
12
request_countlongexperimental
The number of request events.
56
start_timetimestampstable
Display name: Start time
Start time of the user event. The value is a UNIX Epoch time in nanoseconds and less than or equal to the end_time. Time correction is applied.
1649822520123123123
user_action_countlongexperimental
The number of user action events.
124
user_interaction_countlongexperimental
The number of user interaction events.
112
view_summary_countlongexperimental
The number of view summary events.
12

end_reason MUST be one of the following:

ValueDescription
durationThe user session reached the maximum duration
synthetic_execution_finishedThe synthetic execution finished
timeoutThe user session timed out

User experience fields

AttributeTypeDescriptionExamples
experience.scoredoubleexperimental
Weighted average Experience Score for the user session, computed from all events with experience.level set. Calculated as sum(level_value × weight) / sum(weights) where satisfied = 1, tolerating = 0.5, and frustrated = 0. Values range from 0 (all frustrated) to 1 (all satisfied).
0.94; 0.75; 0.42
experience.score.bandstringexperimental
Predefined quality band derived from experience.score. Maps the numeric score to a human-readable category: excellent (≥ 0.94), good (≥ 0.85), fair (≥ 0.70), poor (≥ 0.50), unacceptable (< 0.50). Omitted when experience.score is absent.
excellent; good; fair; poor; unacceptable

experience.score.band MUST be one of the following:

ValueDescriptionDisplay name
excellentexcellentExcellent
fairfairFair
goodgoodGood
poorpoorPoor
unacceptableunacceptableUnacceptable

User fields

AttributeTypeDescriptionExamples
user.identifierstringstable
The user identifier for identifying individual users across different browsers, devices, and user sessions.
Tags: sensitive-user-events
john.doe@dynatrace.com

User session fields

AttributeTypeDescriptionExamples
session_properties.__property_name__anystable
Contains the value for the session property named __property_name__ defined by the event and session property configuration. The data type of the value depends on the definition; default is data type string.
session_properties.patientid:DFTR123455; session_properties.customers_cohort: premium

User session characteristics fields

AttributeTypeDescriptionExamples
characteristics.has_replaybooleanexperimental
If set to true, at least part of the user session was recorded with Session Replay and can be replayed.
true
characteristics.is_invalidbooleandeprecated
Primary characteristic: If set to true, the user event was marked invalid during validation.
false

User session error fields

AttributeTypeDescriptionExamples
error.anr_countlongexperimental
The number of ANR (Application Not Responding) errors.
12
error.countlongexperimental
The overall number of errors.
1
error.csp_violation_countlongexperimental
Display name: Error CSP violation count
The number of CSP rule violations.
1
error.exception_countlongexperimental
Display name: Error exception count
The total number of exceptions that are observed, including exceptions that are not captured.
1
error.has_crashbooleanexperimental
true indicates that the user session contains a crash. It only counts for mobile applications.
true
error.http_4xx_countlongexperimental
Display name: Error HTTP 4xx count
The number of HTTP request errors with an http.response.status_code of 400-499.
1
error.http_5xx_countlongexperimental
Display name: Error HTTP 5xx count
The number of HTTP request errors with an http.response.status_code of 500-599.
1

User session app fields

AttributeTypeDescriptionExamples
app.short_versionstringresource stable
Display name: App version
The application's publicly visible version number, as, for example, displayed in App Store or Google Play. Usually this is just the major and minor version with no patch number.
5.23
app.versionstringresource stable
Display name: App build version
The application's internal build number, which can include information such as patch number and build number.
5.23.15789; 143542

User session browser fields

AttributeTypeDescriptionExamples
browser.namestringresource stable
Display name: Browser name
The browser name.
Chrome
browser.versionstringresource stable
Display name: Browser version
The browser version.
Version 142.0.7444.176
browser.window.heightlongstable
Display name: Browser window height
The browser window's inner height, in pixels.
384
browser.window.widthlongstable
Display name: Browser window width
The browser window's inner width, in pixels.
2048

User session OS fields

AttributeTypeDescriptionExamples
os.namestringresource stable
Display name: OS name
The OS name in a short, human-readable format.
iOS
os.versionstringresource stable
Display name: OS version
The complete OS version, including patch, build, and other information.
15.3.1; Ubuntu 16.04.7 LTS (Xenial Xerus) (kernel 4.15.0-206-generic); Windows Server 2022 Datacenter 21H2 2009, ver. 10.0.20348

User session device fields

AttributeTypeDescriptionExamples
device.is_rootedbooleanresource stable
Display name: Device is rooted
If set to true, the device is rooted or jailbroken.
false
device.manufacturerstringresource stable
Display name: Device manufacturer
The device manufacturer.
Apple
device.model.identifierstringresource stable
Display name: Device model identifier
The device model identifier.
iPhone 17 Max Pro
device.screen.heightlongresource stable
Display name: Device screen height
The device's screen height in its natural orientation.
1152
device.screen.widthlongresource stable
Display name: Device screen width
The device's screen width in its natural orientation.
2048

User session client fields

AttributeTypeDescriptionExamples
client.ipipAddressexperimental
Display name: Client IP address
The IP address of the client that makes the request. This can be IPv4 or IPv6.
Tags: sensitive-spans sensitive-user-events
194.232.104.141; 2a01:468:1000:9::140
client.ispstringexperimental
Display name: Client ISP name
The name of the Internet Service Provider (ISP) associated with the client's IP address.
Internet Service Provider Name

User session RUM fields

AttributeTypeDescriptionExamples
dt.rum.application.entitiesarrayexperimental
The entity IDs of type APPLICATION or MOBILE_APPLICATION based on dt.rum.application.entity.
Tags: entity-id
['APPLICATION-EA7C4B59F27D43EB', 'MOBILE_APPLICATION-E8A8751A60D5BCE8']
dt.rum.application.typestringexperimental
The application type determined based on dt.rum.agent.type.
web
dt.rum.instance.idstringresource stable
Display name: RUM instance ID
A persistent pseudonymous identifier representing the same device (browser user agent or mobile app installation) across multiple user sessions. Used to analyze returning users and long-term journeys. Formerly known as "Visitor ID" or "internal user ID." For information on the real user identity, see user.identifier.
3735928559; 1742973444821E7E6Q3E3SG28ATQPAGTT6T8HU92VFRFQ
dt.rum.session.idstringstable
Display name: User session ID
A unique identifier for a user session. Use this field to join user events with user sessions in DQL queries.
HOPCPWKILUKHFHWRRQGBHHPAFLUJUOSH-0; 23626166142035610_1-0
dt.rum.user_typestringresource experimental
Display name: User type
The RUM user type.
real_user

dt.rum.application.type MUST be one of the following:

ValueDescription
hybridA hybrid application
mobileA mobile application
webA web application

dt.rum.user_type MUST be one of the following:

ValueDescriptionDisplay name
real_userThe user event was produced by a real user.Real User
robotThe user event was produced by a bot user.Robot
syntheticThe user event was produced by a synthetic test.Synthetic

User session DT fields

AttributeTypeDescriptionExamples
dt.retain.sizelongexperimental
Display name: Retain size
The size of the retained data point in bytes.
2005

User session geolocation fields

AttributeTypeDescriptionExamples
geo.country.iso_codestringresource stable
Display name: Country ISO code
The two-letter country code. The format complies with ISO 3166-1 alpha-2.
CA; GB

User session OpenPipeline fields

AttributeTypeDescriptionExamples
dt.openpipeline.sourcestringresource experimental
Display name: OpenPipeline ingest source
Identifies the source (such as API endpoints or OneAgent) used for ingesting the record into OpenPipeline.
/platform/ingest/v1/events; oneagent

User session synthetic fields

User session synthetic fields are available only when dt.rum.user_type is SYNTHETIC.

AttributeTypeDescriptionExamples
dt.entity.synthetic_locationstringresource deprecatedThis field is deprecated and will be removed in the future. Use dt.smartscape.synthetic_location instead.
Display name: Synthetic location
An entity ID of an entity of type SYNTHETIC_LOCATION.
Tags: entity-id
SYNTHETIC_LOCATION-D140F3B85BCCBD1A
dt.entity.synthetic_teststringresource deprecatedThis field is deprecated and will be removed in the future. Use dt.smartscape.browser_monitor instead.
Display name: Synthetic test
An entity ID of an entity of type SYNTHETIC_TEST.
Tags: entity-id
SYNTHETIC_TEST-A140F3B85BCCBD1A
dt.entity.synthetic_test_stepstringresource deprecatedThis field is deprecated and will be removed in the future. Use dt.smartscape.browser_monitor_step instead.
Display name: Synthetic test step
An entity ID of an entity of type SYNTHETIC_TEST_STEP.
Tags: entity-id
SYNTHETIC_TEST_STEP-A140F3B85BCCBD1A
dt.entity.synthetic_test_stepstring[]resource deprecatedThis field is deprecated and will be removed in the future. Use dt.smartscape.browser_monitor_step instead.
Display name: Synthetic test step
An array of entity IDs of an entity of type SYNTHETIC_TEST_STEP.
Tags: entity-id
['SYNTHETIC_TEST_STEP-A140F3B85BCCBD1A', 'SYNTHETIC_TEST_STEP-6349B98E1CD87352']
dt.security_contextstringresource stable
Display name: DT security context
The security context is used in access permissions to limit the visibility. Learn more about the Dynatrace permission model
Tags: permission
dt.smartscape.browser_monitorsmartscapeIdresource stable
Display name: Browser monitor ID
Smartscape ID referencing a browser monitor entity.
Tags: smartscape-id
BROWSER_MONITOR-A140F3B85BCCBD1A
dt.smartscape.browser_monitor_stepsmartscapeIdresource stable
Display name: Browser monitor step ID
Smartscape ID referencing a browser monitor step entity.
Tags: smartscape-id
BROWSER_MONITOR_STEP-A140F3B85BCCBD1A
dt.synthetic.monitor.idstringresource experimental
Display name: Synthetic monitor ID
The identifier of the monitor.
HTTP_CHECK-6349B98E1CD87352
dt.synthetic.monitor.namestringexperimental
The name of the monitor.
Monitor name
dt.synthetic.monitor.smartscape.idsmartscapeIdresource experimental
The Smartscape ID of the monitor.
HTTP_MONITOR-017198AD253CBD63
dt.synthetic.monitored_entity_idsstring[]resource experimental
Display name: Synthetic monitored entity ids
IDs of monitored entities.
['APPLICATION-EA7C4B59F27D43EB']
dt.synthetic.monitored_smartscape_idssmartscapeId[]resource experimental
Display name: Synthetic monitored entity Smartscape ids
The Smartscape IDs of monitored entities.
[['FRONTEND-E0D8F94D9065F24F']]
dt.synthetic.step.idstringresource experimental
Display name: Synthetic step ID
The identifier of the monitor step.
HTTP_CHECK_STEP-5349B98E1CD87352
dt.synthetic.step.namestringexperimental
The name of the step.
Step name
dt.synthetic.step.sequence_numberlongexperimental
The sequence number of the step within the synthetic browser monitor, indicating the order of execution of the steps.
42; 5; 1
dt.synthetic.step.smartscape.idsmartscapeIdresource experimental
The Smartscape ID of the monitor step.
HTTP_MONITOR_STEP-6349B98E1CD87352
dt.synthetic_engine.processing.end_timestamptimestampexperimental
Display name: Synthetic engine processing end timestamp
The end timestamp of the step/monitor execution as reported by executor.
1629891693487
dt.synthetic_engine.processing.start_timestamptimestampexperimental
Display name: Synthetic engine processing start timestamp
The start timestamp of the step/monitor execution as reported by executor.
1529891693487
event.idstringstable
Display name: Event ID
Unique identifier string of an event; is stable across multiple refreshes and updates.
5547782627070661074_1647601320000
primary_tags.__key__stringresource experimental
Display name: Primary tag
Primary Grail tags are used to tag a resource in a meaningful way. __key__ is populated with the tag name, for example, primary_tags.ownership. In case of single-value tags, the value is a string. In case of multi-value tags, the value is an array of strings.
team-alpha; team-bravo
Related tags
Digital Experience