Overview
Session analytics help you understand how users interact with your website during individual visits. Track session duration, bounce rates, and session flow.Query Types
Session Metrics
Get aggregate session statistics including duration and bounce rate. Query Type:session_metrics
Total number of sessions in the period.
Average session duration in seconds.
Percentage of single-page sessions (0-100).
Total events across all sessions.
Session Duration Distribution
Analyze how session durations are distributed across time ranges. Query Type:session_duration_distribution
Duration bucket:
0-30s, 30s-1m, 1m-5m, 5m-15m, 15m-1h, or 1h+.Number of sessions in this duration range.
Unique visitors with sessions in this range.
Sessions by Device
Breakdown of sessions by device type. Query Type:sessions_by_device
Device type:
desktop, mobile, or tablet.Number of sessions from this device type.
Unique visitors using this device.
Average session duration in seconds for this device.
Sessions by Browser
Breakdown of sessions by browser. Query Type:sessions_by_browser
Browser name (e.g.,
Chrome, Safari, Firefox).Number of sessions from this browser.
Unique visitors using this browser.
Average session duration in seconds for this browser.
Sessions Time Series
Track session metrics over time to identify trends. Query Type:sessions_time_series
Date of the data point (YYYY-MM-DD).
Number of sessions on this date.
Unique visitors on this date.
Average session duration in seconds.
Session Flow
Analyze which pages are most commonly visited during sessions. Query Type:session_flow
Page path.
Number of sessions that included this page.
Unique visitors who viewed this page.
Session List
Retrieve detailed information about individual sessions including all events. Query Type:session_list
Unique session identifier.
Timestamp of first event in session.
Timestamp of last event in session.
Number of page views in this session.
Anonymous visitor identifier.
Visitor’s country code.
Session referrer URL.
Device type used in session.
Browser name.
Operating system name.
Array of all events in the session, including custom events. Each event contains:
id: Event IDtime: Event timestampevent_name: Event namepath: Page pathproperties: Event properties (if any)
Session Definition
A session in Databuddy is defined as:- A sequence of events from the same visitor
- Sessions timeout after 30 minutes of inactivity
- A new session starts when:
- The visitor returns after 30+ minutes
- UTM parameters change
- The referrer changes (external traffic)
Bounce Rate Calculation
Bounce rate represents non-engaged sessions. A session is considered a bounce if:- Only one pageview occurs, AND
- Session duration is less than 10 seconds, AND
- No custom events or interactions occur
Filter Example
Get mobile sessions from organic traffic:Notes
- Session data includes both pageview events and custom events
- The
session_listquery merges data from both the events table and custom_events table - Session attribution automatically applies UTM parameters from the first pageview to all session events
- Duration is calculated from actual time spent on pages (excluding page_exit events)
- Very short sessions (under 1 second) and very long outliers (over 1 hour) are filtered from averages