Databuddy Analytics
Comprehensive analytics platform with advanced tracking capabilities and performance monitoring.
Demo Configuration
This example uses a demo client ID. Replace with your actual Databuddy client ID for production use.
Script Status
Current Status:awaitingLoad
Tracking Features Enabled:
- Screen Views
- Performance Metrics
- Session Tracking
- Web Vitals
- Error Tracking
- Outgoing Links
- Scroll Depth
- User Engagement
- Interactions
- Event Batching
Event Tracking
Event tracking will be enabled once the script is loaded.
User Properties
Implementation
Basic Setup
const { proxy, status } = useScriptDatabuddyAnalytics({
clientId: 'your-client-id',
// Core tracking
trackScreenViews: true,
trackPerformance: true,
trackSessions: true,
// Optional features
trackWebVitals: true,
trackErrors: true,
trackOutgoingLinks: true,
trackScrollDepth: true,
trackEngagement: true,
// Performance
enableBatching: true,
batchSize: 10,
scriptOptions: {
trigger: 'onNuxtReady',
},
})
Event Tracking API
// Track custom events
proxy.track('button_click', { button_name: 'CTA', value: 25 })
// Manual screen views
proxy.screenView('/custom-path', { extra_data: 'value' })
// Set global properties for all events
proxy.setGlobalProperties({ user_id: '123', plan: 'pro' })
// Flush batched events immediately
proxy.flush()
// Clear session data
proxy.clear()