analytics

Management

Analytics

The Rust server records room analytics and duration; expose them through a typed SDK service only when included in your published version.

Rust endpoints

text
GET /rooms/:room_id/analytics
GET /rooms/:room_id/duration

Typed service example

dart
final analytics = await sdk.analytics.analytics(roomId);
final duration = await sdk.analytics.duration(roomId);

Recommended metrics

MetricSource
Room joins and leavesRust room service and WebSocket
Current online membersRedis room presence
Room durationMySQL analytics
Chat and reactionsRust realtime events
Gifts and wallet totalsLaravel financial records
Media qualityLiveKit telemetry
Use Redis for live counters and MySQL for permanent analytics history.