Implement comprehensive event tracking system for TeleCart Pulse that ensures all user interactions and order events are reliably captured and delivered to the analytics platform, even in case of network failures or service outages. Business Value: - Guaranteed event delivery: All events are stored in database before sending, ensuring no data loss even if SaaS service is temporarily unavailable - Automatic retry mechanism: Failed events are automatically retried with configurable attempts, reducing manual intervention - Real-time monitoring: Admin dashboard displays event statistics (pending, sent, failed) to track system health and delivery status - Data integrity: Idempotency keys prevent duplicate events, ensuring accurate analytics and metrics - Performance optimization: Statistics are cached for 1 hour to reduce database load while maintaining visibility Key Features: - Event queue system: Events are queued in database with status tracking (pending/sent/failed) - Asynchronous processing: Events are sent via background tasks, not blocking user interactions - Error tracking: Failed events include detailed error reasons for debugging - Campaign tracking: Only events with valid campaign_id and tracking_id are stored, ensuring data quality - Admin visibility: Statistics dashboard shows delivery status at a glance This system ensures reliable data collection for campaign analytics, A/B testing, and performance metrics, providing accurate insights for business decisions.
admin
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
Customize configuration
See Vite Configuration Reference.
Project Setup
bun install
Compile and Hot-Reload for Development
bun dev
Compile and Minify for Production
bun run build
Lint with ESLint
bun lint