Auto-Tracking
Automatically Tracked Events
| Event | Description | Default |
|---|---|---|
page_view | Every page load | Active |
session_start | Session start | Active |
session_end | Session end | Active |
click | All clicks | Active |
scroll | 25%, 50%, 75%, 90% depth | Active |
page_performance | Core Web Vitals | Active |
outbound_click | External link clicks | Active |
SPA Navigation Tracking
For Single Page Applications, the History API is automatically monitored:
pushStatechangespopstateevents- Hash changes
Works seamlessly with React Router, Vue Router, and Angular Router.
Click Tracking Details
The following information is automatically collected on every click:
{
event: 'click',
element_tag: 'BUTTON',
element_id: 'submit-btn',
element_class: 'btn btn-primary',
element_text: 'Submit',
click_x: 450,
click_y: 320,
page_url: 'https://example.com/form'
}