Analytics¶
Track video engagement with GDPR-compliant analytics (IP hashing, 90-day retention).

Per-Video Metrics¶
Each video tracks:
- View count and unique viewers
- Average watch time and completion rate
- Traffic sources — direct, embedded, shared
- Registered viewer activity (when logged in)
Global Dashboard¶
The analytics dashboard at /app/media/analytics provides:
- Aggregate view counts across all videos
- Top-performing content by views and completion rate
- Viewer trends over time
- Traffic source breakdown
Tracking¶
Public endpoints record engagement:
- View initiation
- 10-second heartbeat intervals
navigator.sendBeaconfor reliable end-of-session reporting
Admin Routes¶
/app/media/analytics— global analytics dashboard