Playtime & Session Metrics
Automatically measures exact session length, active vs. AFK duration, duration buckets, and rolling average playtime per player.
–!strict LuauRojo v7.7.0Anti-Exploit ProtectedCreator Hub Syncedgame:BindToClose guarantees no pending playtime or revenue data is lost when instances terminate.ServerScriptService activates automated D1/D7 retention cohorts, playtime tracking, and server health diagnostics.Initialize the analytics pipeline once in ServerScriptService. Automated trackers begin logging immediately with production-ready defaults.
-- ServerScriptService/AnalyticsBoot.server.luaulocal ReplicatedStorage = game:GetService("ReplicatedStorage")local RealisticAnalytics = require(ReplicatedStorage.Packages.RealisticAnalytics)
-- Initialize core pipeline with automatic session & server health trackersRealisticAnalytics:Init({ flushIntervalSeconds = 10, enableAutoSessionTracking = true, enableAutoErrorTracking = true, enableAutoHealthTracking = true,})
-- Dispatch custom gameplay telemetry from anywhereRealisticAnalytics:TrackEvent("BossDefeated", { bossId = "CyberDragon", timeElapsed = 45.2, partySize = 4,})Playtime & Session Metrics
Automatically measures exact session length, active vs. AFK duration, duration buckets, and rolling average playtime per player.
Player Retention & Cohorts
Identifies new vs. returning players and automatically logs Day 1, 3, 7, 14, and 30 retention milestones via DataStoreService.
Spatial Heatmaps & Death Tracking
Logs exact 3D coordinates on player deaths, identifying killers, equipped weapons, cause of death, and navigation chokepoints.
Demographics & Client Hardware
Captures client platform (PC, Mobile, Tablet, Console, VR), input hardware, viewport resolution, and network latency.
Server Health & Uptime Diagnostics
Continuous monitoring of server uptime, peak CCU, memory usage in MB, and Heartbeat FPS hitch detection.
Flexible Multi-Exporters & Rate Limits
Exports directly to Roblox Creator Hub, batched external HTTP webhooks (PostHog/Datadog), and Studio console with anti-exploit token-bucket rate limits.