Skip to main content

Auto-Tracking

Automatically Tracked Events

EventDescriptionDefault
page_viewEvery page loadActive
session_startSession startActive
session_endSession endActive
clickAll clicksActive
scroll25%, 50%, 75%, 90% depthActive
page_performanceCore Web VitalsActive
outbound_clickExternal link clicksActive

SPA Navigation Tracking

For Single Page Applications, the History API is automatically monitored:

  • pushState changes
  • popstate events
  • 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'
}