Add real-time analytics dashboard
Create real-time analytics view for content performance.
Metrics to Display:
- Active users (real-time)
- Popular content (trending)
- Geographic distribution (map view)
- Device breakdown
- Performance metrics (load times, errors)
- Revenue metrics
Visualizations:
-
Line charts for time-series data -
Bar charts for comparisons -
World map for geographic data -
KPI cards for key metrics -
Real-time updating (WebSockets)
Tech Stack:
- React + Chart.js/D3.js
- WebSocket connection for real-time data
- Time range selector (1h, 24h, 7d, 30d)
- Export functionality (PNG, CSV)
Data Source:
- Streaming service analytics API
- User service metrics
- Orders service data