Dynatrace version 1.224+
While analysis of individual user sessions can be useful in some situations, such analysis is often incomplete. The users of your application behave in unexpected ways, perform different tasks with different goals in mind, reside in various geographic regions, and use countless combinations of devices, operating systems, and browsers.
Dynatrace supports user session segmentation through a powerful filtering mechanism. Dynatrace user session analysis enables you to slice, dice, and combine your application's user sessions into meaningful segments based on shared characteristics of individual user sessions—operating system, browser type, location, or user tag. For example, you might segment your analysis based on the following browser types: desktop, mobile, or synthetic. In this way, you can drill deeply into aggregate results to discover meaningful insights into performance problems that may only be experienced by a small subset of your users.
To analyze a user session
Go to Session Segmentation.
Click the text field at the top of the page (see 1 in the example below), and select one of the available filtering attributes. Once you select an attribute, the available values for that filter are displayed in a list.
Yes
or No
to filter mobile sessions where the device is rooted/jailbroken or genuine. If the device status is unknown or undefined, sessions have the value of null
and don't appear in the results. Custom applications always report unknown or undefined.Yes
or No
to filter sessions based on whether users are new or returning users.Yes
or No
to filter sessions that either were or weren't bounced sessions (bounced sessions are sessions that are immediately abandoned). A bounce is a special type of user session composed of only a single user action. High bounce rates are undesirable.Yes
or No
to analyze those user sessions where the associated conversion goal was or was not achieved.Yes
or No
to explicitly filter sessions that did or didn't encounter errors.In filters, the tilde operator (~
) doesn't work as the LIKE
keyword in USQL.
Select the attribute value you're interested in. Some attributes provide text fields that you can use for free-text search. You can also select multiple values of one attribute; this works as an OR
operator for that attribute.
Repeat this process for as many attributes as you are interested in. Once you've defined your filter, click anywhere outside the text box.
The result of the defined filters provides a list of the first 500 sessions, which are ordered by the start time of the newest session. To change the order, sort the table columns in ascending or descending order.
Select a session timestamp (see 3 in the example below) to go to the user session details page. Alternatively, to analyze the sessions of a single user, select a username (see 2 in the example below) to navigate to that user's details page.
Use the timeframe selector in the menu bar to adjust the analysis timeframe of your user session analysis.
The global timeframe selector serves as a time filter that, in most cases, enables you to select a specific analysis timeframe that persists across all product pages and views as you navigate through your analysis.
The Presets tab lists all standard timeframes available. Select one to change your timeframe to that preset.
The Custom tab displays a calendar. Click a start day, click an end day, and then click Apply to select that range of days as your timeframe.
00:00
). For example, if you select September 3 to September 4 on the calendar, the timeframe starts on September 3 at time 00:00
and ends on September 5 at time 00:00
, so you never miss the last minute of the time range. You can edit these displayed times.The Recent tab displays recently used timeframes. Select one to revert to that timeframe.
The < and > controls shift the timerange forward or backward in time. The increment is the length of the original timerange. For example, if the current timerange is Last 2 hours
(the two-hour range ending now), click < to shift the timerange two hours back, to -4h to -2h
(the two-hour range ending two hours ago).
Hover over the timeframe to see the start time, duration, and end time.
If you select the current timeframe in the menu bar, an editable timeframe expression is displayed.
to
operator, and an end time.to
and now
are implied. For example, -2h
is the same -2h to now
.s
, m
, h
, d
, w
, M
, q
, y
(you can also use whole words such as minutes
and quarter
)Example timeframe expressions
Meaning
today
From the beginning of today to the beginning of tomorrow.
yesterday
From the beginning of yesterday to the beginning of today. Like -1d/d to today
.
yesterday to now
From the beginning of yesterday to the current time today.
previous week
The previous seven whole days. If today is Monday, you get the previous Monday through the previous Sunday (yesterday).
this year
The current calendar year, from January 1 of this year at 00:00
through January 1 of next year at 00:00
.
last 6 weeks
The last 42 days (6 weeks * 7 days) ending now. Equivalent to -6w to now
.
-2h
From 2 hours (120 minutes) ago to the current time (now
is implied). Equivalent to Last 2 hours
and -2h to now
.
-4d to -1h30m
From 4 days (96 hours) ago to 1.5 hours ago.
-1w
The last 7 days (168 hours), from this time 7 days ago to the current time (now
). Equivalent to -7d
and -168h
.
-1w/w
From the beginning of the previous calendar week to the current time (now).
-1w/w
on a Friday afternoon at 3:00, you would get a range of 11 days 15 hours, starting with the beginning of the previous week's Monday, because /w
rounds down to the beginning of the week.-1w
without /w
on a Friday afternoon at 3:00, the start time would be exactly 7 days (168 hours) earlier: the previous Friday at 3:00 in the afternoon.In general, /
used in combination with a unit (such as /d
, /w
, /M
, and /y
) means to round down the date or time to the beginning of the specified time unit. For example, -3d
means exactly 72 hours ago, whereas -3d/d
means three days ago rounded down to the nearest day (starting at time 00:00
, the beginning of the day). Use now/d
to mean the start of today.
-1w/w + 8h
Starting from the beginning of last week plus 8 hours (8:00 AM Monday).
+
and -
operators with units, timestamps, and now
.-1d/d+9h00m to -1d/d+17h00m
Business hours yesterday, from 09:00 - 17:00 (9 AM to 5 PM).
2020-08-16 21:28 to 2020-08-19 10:02
An absolute range consisting of absolute start and end dates and times in YYYY-MM-DD hh:mm
format.
2020-08-16
), the time is assumed to be the beginning of day (00:00
)21:28
), the date is assumed to be today1598545932346 to 1598837052346
Unix epoch millisecond timestamps.
User sessions that are live within the timeframe set in the timeframe selector are shown in the session list. The Analysis over time finding, on the contrary, shows only those sessions that started within the set timeframe.
For instance, if the timeframe is set for 12:00–12:05, and a session that started at 11:55 is still live during that timeframe, that session is shown in the session list but isn't considered for the Analysis over time finding. This is because the session started before the set timeframe.
The findings panel is located on the left side of the User sessions page. This panel contains out-of-the-box findings and different visualizations for various attributes. For example, select the Application versions category to see which of your application version has more user sessions, or select the Applications category to see data on aggregated sessions for each of your applications.
You can focus on the user sessions of a specific user. Select a user from the User column to navigate to that user's overview page.
To search for user sessions of a specific user, select User tag in the Filter by box and then choose the user you're interested in. For example, to display user sessions of a user named Zara
, add the User tag: Zara
filter. Then select Zara in the User column to navigate to this user's overview page.
To learn how to tag each user of your application with a unique user name, check the following pages depending on your application type and operating system:
Select one of Zara
's sessions to view further details. For example, you can check all actions that the Zara
user performed during the selected session. The session details contain important device-related information such as the device resolution, manufacturer, operating system, geolocation, and IP address.
You can also leverage session analysis to get to the details of errors that occur in your application.
To view the error details page
Go to Session Segmentation.
In the Filter by box, set Error type to one of the following values depending on your application type:
Select the user session you're interested in to open the session details page.
Under Events and actions, expand the user action that contains an error, and select Perform waterfall analysis.
Perform one of the following actions depending on the application type:
The error details page provides valuable information about your application's errors.
This displays error details such as the estimated error count, provider (for a request error), technology (for a reported error), and more. The page also lists affected user sessions and affected user actions—select a user action or user session to view its details. The distribution breakdown displays information on the relative frequencies of operating systems, OS versions, application versions, and devices, while the country breakdown shows all affected countries and their corresponding error rate.
When your application doesn't respond quickly, a text label looks like a button, or a toggle is hidden under another toggle, users might repeatedly click or tap the affected UI control in frustration. Dynatrace detects such behavior as a rage event: a rage click or a rage tap.
To view user sessions with rage events
≥1
or Rage tap count: ≥1
.Mobile and custom applications
When a user session ends in a crash, you can leverage session analysis to view the complete sequence of user actions that preceded the crash. You can also open a crash report to get all the code-level information and quickly trace the root causes of that crash.
Go to Session Segmentation.
Set Filter by to the following filters:
Mobile
to display only mobile user sessions or Application type: Custom
to get user sessions captured in custom applicationsYes
to show sessions ended with a crashYes
to display sessions recorded with Session Replay on crashes for Android or iOS applicationsSelect the user session you're interested in to open its session details page.
Mobile applications To watch the Session Replay recording, go to the Session Replay tab, and select Play .
The last event of the session is the crash, which is represented by a red dot in the timeline. Use the Session Replay controls to analyze the crash in detail.
To view all user actions and events that preceded the crash, scroll down to the Events and actions section.
To view the crash report, expand the crash event, and then select Open crash details.
The crash report provides you with the user's device information and stack trace. You can also analyze the crash groups for your mobile and custom applications or download the crash stack trace.
For technical and security reasons, you cannot analyze a single user session across different domains.
Suppose your user visits two completely different domains during a single "session". How would Dynatrace capture this, given that both domains are instrumented with Dynatrace?
You'd actually see two separate user sessions:
This happens for the following reasons:
These examples show how you can gain insight into your users' behavior through Dynatrace user session analysis.
You can filter user sessions by duration: longer or shorter than a certain value or within a certain range. In the screenshot below, user sessions that have a duration of at least 10 seconds are displayed.
You can search for all user sessions that include at least one instance of any one of multiple user actions in their clickpaths.
Check the filter bar in the example below. This search matches on user sessions that meet the following criteria:
test
occurred in the user session.For each category on the findings panel, there's a separate section that shows visualizations and findings for that particular category. For example, Application type shows the current distribution, distribution over time, and geographical distribution of the different application types. The geographical map shows the color of the application type with the highest number of sessions.
You can choose any of the findings and easily apply them by selecting Apply selection as a filter in the lower-left corner of the page.