Event Tracking
Track custom events, page views, and user interactions with Signal JS.Custom Events
Simple Event
Event with Properties
Event with Timestamp
Super Properties
Properties automatically included with every event:Register Super Properties
Register Once
Remove Super Property
Get All Super Properties
Page Tracking
Automatic Page Views
Enable automatic page view tracking:Manual Page View
Track SPA Navigation
For single-page applications, track navigation manually:Recording Controls
Control when events are sent:Example: Complete Event Tracking
Event Structure
All events follow this structure:Event Types
| Type | Description |
|---|---|
rrweb | Session replay event (DOM mutations, interactions) |
$pageview | Page view event |
$pageleave | Page leave event |
$identify | User identification |
$groupidentify | Group association |
$performance | Performance metrics |
console | Console log event |
custom | Custom tracked event |
Use Cases
- Track user interactions - Button clicks, form submissions, etc.
- Monitor conversions - Purchase events, sign-ups, etc.
- Measure engagement - Page views, time on page, etc.
- Debug issues - Track errors and user flows
- Analytics - Understand user behavior and patterns
Best Practices
- Use descriptive event names -
purchase_completedinstead ofevent1 - Include relevant properties - Add context that helps with analysis
- Use super properties - Set common properties once, not per event
- Track key user actions - Focus on events that matter for your business
- Test your events - Verify events are being captured correctly
