Sessions
Learn how Oppla automatically tracks and analyzes user sessions
Sessions
Oppla automatically tracks user sessions to help you understand user behavior and engagement patterns. No additional configuration is needed beyond initializing Oppla.
What are Sessions?
A session in Oppla represents a continuous period of user activity on your website or application. Sessions help you understand:
- How users interact with your content
- When and how users engage with features
- User journey patterns and flow
- Conversion and drop-off points
Automatic Session Tracking
Sessions are tracked automatically once Oppla is initialized:
Session Events
Oppla automatically tracks these session events:
Tracking Events
Using Data Attributes
To track events, simply add a special data property to the element you want to track:
The additional properties will be recorded with the event:
Using JavaScript
You can also track events manually using the Oppla object:
Important Notes
-
Data Attributes:
- Event data cannot be sent without an event name
- All event data will be saved as strings
- Other event listeners inside the element will not be triggered
-
JavaScript Method:
- Use for dynamic data
- Supports all data types (numbers, dates, booleans, etc.)
- Allows for more complex tracking logic
Viewing Events
Tracked events are available in your Oppla dashboard:
- Navigate to the Events page
- View event properties under the Properties tab
- See a breakdown of all custom data values
Best Practices
-
Initialize Early:
- Initialize Oppla as early as possible in your application
- This ensures accurate session tracking from the start
-
Track Key Milestones:
- First interaction
- Feature discovery
- Conversion attempts
- Goal completion
-
Monitor Session Quality:
- Bounce rates
- Time on site
- Page views per session
- Conversion rates
-
Analyze User Paths:
- Common entry points
- Popular navigation patterns
- Drop-off points
- Conversion paths