Unchained
3c3f4129c8
feat: Implement comprehensive OpenPanel analytics tracking
Complete analytics overhaul with 30+ tracking events:
E-commerce Events:
- Product views, image views, variant selection
- Add/remove from cart, quantity changes
- Cart open and abandonment tracking
- Checkout funnel (all steps)
- Payment/shipping method selection
- Order completion with revenue tracking
User Engagement:
- Search queries with filters
- CTA clicks, external link clicks
- Element engagement (click/hover/view)
- Newsletter signups
- Promo code usage
- Wishlist actions
User Identity:
- User identification
- Property setting
- Screen/session tracking
Technical:
- Proper TypeScript types for all events
- Increment/decrement counters
- Pending revenue for cart abandonment
- Comprehensive error handling
Includes complete documentation in docs/ANALYTICS_GUIDE.md