Event Tracking
Custom Events
Custom Event Tracking
Track any user interaction on your website. Events are GA4-compatible and appear in your Conseto dashboard in real-time.
Basic Usage
javascript
// Track a simple event
conseto.track('button_click', {
button: 'signup',
page: 'homepage'
});
// Track with multiple properties
conseto.track('form_submit', {
form_name: 'contact',
form_id: 'contact-form',
fields_count: 5
});Auto-tracked Events
Conseto automatically tracks these events without any code:
| Event | Trigger | Properties |
|---|---|---|
page_view | Every page load or SPA navigation | url, referrer, title |
session_start | New visitor or 30-min inactivity | referrer, utm_params |
click | Auto-click tracking (CTA buttons, links) | element, text, href |
scroll_depth | Page scroll milestones | depth (0-100%) |
page_exit | User leaves the page | time_on_page |
Event Naming Conventions
Best Practices
- Use snake_case:
button_clicknotbuttonClick - Be descriptive:
signup_form_submitnotsubmit - Max 40 characters for event names
- Max 10 custom properties per event