Overview
Thesession_id field lets you group related events into a session. This is useful for reconstructing exactly what a user did during a specific interaction — debugging a bug report, investigating a support ticket, or reviewing suspicious activity.
How It Works
Include asession_id when ingesting events. All events with the same session_id can be queried together to reconstruct the full session timeline.
Querying by Session
Filter events bysession_id to see the full sequence of actions:
Auto-Session in Laravel
The Laravel SDK can automatically attach the current session ID to every event:.session() calls.
Debugging Workflow
See the Debugging Sessions guide for a step-by-step walkthrough of using session tracking to investigate a user-reported bug.Session ID Format
Session IDs are arbitrary strings. Use whatever format fits your application:- Framework session IDs (e.g. Laravel’s
session()->getId()) - Custom prefixed IDs (e.g.
sess_4kN8pLm) - UUIDs
- Any other unique identifier per user interaction