The User Sessions chart helps you analyze your users through various sessions-based metrics. Sessions are recorded in the following three ways:
- Server-side: Sessions can be tracked server-side using the HTTP API by including a value in the session_id field. The session_id is the number of milliseconds since epoch, counting from the start of the session.
- Client-side (mobile): By default, using our mobile SDKs, events triggered within 5 minutes of each other are counted towards the current session (the same session_id). The time of the first event marks the start time of a session and the last event triggered marks the end time of a session. For example, the first event could be marked by an 'Open App' event. In addition, events that are sent within five minutes of each other are counted towards the current session (the same session_id).
Table of Contents
User Sessions Metrics
The User Sessions chart can display three different views on sessions information. To select which metric you want to view, use the "..measured by" dropdown menu in the left panel of the chart control panel.
The metrics you can measure are:
- Session Length Distribution: Shows the distribution of session lengths in a histogram.
- Average Session Length: Graphs the average session length.
- Average Sessions Per User: Graphs the average number of sessions per user per day.
Chart Control Panel
The left module is used to select the particular session metric you want to see in your chart. The right module in the control panel functions analogous to the right module in an Event Segmentation chart. You can read more about how to compare user segments here.
You can set up and interpret any User Sessions chart easily as the UI allows you to read the parameters like a sentence. For example, the following chart shows you the average session length for all your users grouped by country daily for the last seven days.
You can use the date picker to choose a more specific time range to analyze your data and can switch between "Last", "Between", and "Since".
Additionally, you have the option to view data in daily, weekly, or monthly units by toggling between the different options in the dropdown menu next to the date picker. If you are looking at multiple segments in your chart, you can manually select and deselect each segment by hovering over the segment name in the bar below the chart and removing it or by clicking the "+" button to add it back. Finally, you can click on any data point in the chart to inspect the users that make up that data point by using Microscope.
Underneath the chart is a data table of sessions data. The below image is an example data table of the average session length per day segmented with the "+Group By" function. You can select or deselect which segments you see in the graph by clicking on the segment name in the data table. Furthermore, the data table can display some simple calculations for you.
Lastly, you can download the data table by clicking the "Share" icon in the top right of the page and choosing "Download as CSV".