👋 Welcome
Getting Started
Products
Support
Custom Events are an easy way to track metrics that aren’t standard and automatically available. They allow you to:
Example Use Cases
Before you start:
There are two ways to call custom events:
registerEvent(eventName, playerId)
- without a valueregisterEvent(eventName, value, playerId)
- with a value (numbers only)You can call these in a server script like this:
local BloxbizSDK = game.ServerScriptService.BloxbizSDK
local SuperBizAnalytics = require(BloxbizSDK.PublicAPI)
-- register a custom event
SuperBizAnalytics.registerEvent("test_event", player.UserId)
-- register a custom event with a value
SuperBizAnalytics.registerEvent("player_completed_tutorial", 100, player.UserId)
Custom events will print to the console by default in studio. You can turn off these print statements, by setting DebugModeCustomEvents
to false
.
-- Print to console when a custom event is registered
BloxbizConfig.DebugModeCustomEvents = true
Custom events automatically record 4 metrics: Total Events, Unique Events, Sum, Average. In addition, you can view custom events for different breakdowns: Day/Week/Month, Country, Language, Device, Membership, Place.
See analytics for your custom events in the Custom Events section in the Reports tab.
Limits
Request Higher Limits
We’ll adjust limits over time. Contact us to request higher limits.