Reference
Event reference
Every reserved event the SDK sends, with its properties, types and limits, and the validation rules the API applies to all events.
Bloxlytics has two kinds of events:
- Reserved events, whose names start with
$. The SDK sends them, and the API checks each one against a fixed schema. - Custom events, any other name, sent with
TrackEvent.
This page lists every reserved event and the rules every event must meet. The wire format itself is on event format.
#Summary
| Event | Shown as | Sent by | Needs a player | Turned off by |
|---|---|---|---|---|
$session_start |
Joined game | Automatic | Yes | Sessions |
$session_end |
Left game | Automatic | Yes | Sessions |
$server_start |
Server started | Automatic | No | — |
$server_heartbeat |
Server heartbeat | Automatic | No | — |
$server_stop |
Server stopped | Automatic | No | — |
$economy |
Currency changed | TrackCurrencyEarned, TrackCurrencySpent |
Yes | Economy |
$economy_transfer |
Currency transferred | TrackCurrencyTransfer |
Yes | Economy |
$balance |
Balance snapshot | TrackBalance |
Yes | Economy |
$purchase |
Purchase | Automatic, WrapProcessReceipt |
Yes | Purchases |
$funnel |
Funnel step | TrackFunnel |
Yes | — |
$progression |
Progression | TrackProgression |
Yes | — |
$property |
Property set | SetPlayerProperty, SetPlayerProperties, SetPlayerRole |
Yes | — |
$experiment_exposure |
Experiment exposure | GetVariant |
Yes | — |
"Needs a player" means the event must carry a userId; the API rejects it with <name> requires userId otherwise. "Turned off by" is the switch in the SDK page's Configuration; while it is off the API rejects the event with session tracking disabled, economy tracking disabled or purchase tracking disabled.
Any other name starting with $ is rejected with Unknown reserved event <name>. You can't send reserved events through TrackEvent, because custom names must start with a letter.
A reserved event whose properties don't match its schema is rejected with the event name, the property and the problem, for example $economy_transfer: amount Too small: expected number to be >0. Properties not listed in a schema are dropped when the event is stored, except on $server_stop, which keeps whatever it is sent.
#Sessions
#$session_start
A player joined this server. Starts the session whose id later events carry.
| Property | Type | Required | Limits |
|---|---|---|---|
username |
string | Yes | At most 40 characters. |
displayName |
string | No | At most 40 characters. |
accountAge |
number | No | Whole number, 0 or more (days). |
premium |
boolean | No | |
locale |
string | No | At most 16 characters, such as en-us. |
country |
string | No | At most 8 characters. ISO 3166-1 alpha-2 from Roblox, such as GB. |
teleported |
boolean | No | true if the player arrived by teleport. |
#$session_end
A player left, or the server shut down with them in it.
| Property | Type | Required | Limits |
|---|---|---|---|
duration |
number | Yes | Seconds, 0 or more. |
#Servers
Server events have no player and are never turned off. They keep the live server list, concurrent players and server tags up to date.
#$server_start
| Property | Type | Required | Limits |
|---|---|---|---|
maxPlayers |
number | No | Whole number, 0 or more. |
tags |
string | No | JSON object of server tags, at most 2,048 characters. |
studio |
boolean | No |
#$server_heartbeat
Sent about every 30 seconds.
| Property | Type | Required | Limits |
|---|---|---|---|
playerCount |
number | Yes | Whole number, 0 or more. |
maxPlayers |
number | No | Whole number, 0 or more. |
players |
string | No | Comma-separated user ids, at most 4,096 characters. |
bridge |
boolean | No | Whether the Cmdr bridge is registered and enabled. |
tags |
string | No | JSON object of server tags, at most 2,048 characters. |
studio |
boolean | No |
#$server_stop
No properties. Sent from BindToClose.
#Server tags
The tags property holds the object built by SetServerTag. Bloxlytics keeps it only if it is valid: at most 16 tags, each name starting with a letter followed by letters, digits, spaces or _ . - (at most 32 characters), each value a string of at most 64 characters. Invalid tag objects are ignored rather than rejecting the event.
#Economy
#$economy
A currency source or sink.
| Property | Type | Required | Limits |
|---|---|---|---|
currency |
string | Yes | 1–32 characters. Must be a configured currency if any are configured (case-insensitive). |
amount |
number | Yes | Finite. The SDK only sends positive amounts. |
flow |
string | Yes | "source" or "sink". |
category |
string | No | At most 64 characters. The source or sink argument. |
item |
string | No | At most 64 characters. |
balance |
number | No | Finite. |
#$economy_transfer
| Property | Type | Required | Limits |
|---|---|---|---|
currency |
string | Yes | 1–32 characters. Configured-currency rule as above. |
amount |
number | Yes | Finite and greater than 0. |
toUserId |
number | Yes | Whole number greater than 0. |
reason |
string | No | At most 64 characters. |
#$balance
| Property | Type | Required | Limits |
|---|---|---|---|
currency |
string | Yes | 1–32 characters. Configured-currency rule as above. |
balance |
number | Yes | Finite. |
#Purchases
#$purchase
| Property | Type | Required | Limits |
|---|---|---|---|
kind |
string | Yes | "developer_product", "gamepass" or "premium". The SDK sends the first two. |
productId |
number | Yes | Whole number, 0 or more. |
productName |
string | No | At most 64 characters. |
robux |
number | No | Whole number, 0 or more. |
status |
string | Yes | "attempted", "completed" or "failed". The SDK sends the first two. |
receiptId |
string | No | At most 64 characters. PurchaseId for developer products; gp-<userId>-<gamePassId> for game passes. |
Revenue counts completed purchases only. In the funnel builder, $purchase:attempted and $purchase:completed are separate steps.
#Funnels and progression
#$funnel
| Property | Type | Required | Limits |
|---|---|---|---|
funnel |
string | Yes | 1–64 characters. |
step |
string | Yes | 1–64 characters. |
stepIndex |
number | No | Whole number, 0 or more. |
In the funnel builder: $funnel:<funnel>:<step>.
#$progression
| Property | Type | Required | Limits |
|---|---|---|---|
status |
string | Yes | "start", "complete" or "fail". |
path |
string | Yes | 1–128 characters. |
score |
number | No | Finite. |
In the funnel builder: $progression:start, $progression:complete, $progression:fail.
#Properties and experiments
#$property
| Property | Type | Required | Limits |
|---|---|---|---|
key |
string | Yes | Starts with a letter or _; then letters, digits, spaces and _ . -; at most 40 characters. |
value |
string, number, boolean | Yes | Strings at most 256 characters; numbers finite. |
#$experiment_exposure
| Property | Type | Required | Limits |
|---|---|---|---|
experiment |
string | Yes | At most 64 characters. |
variant |
string | Yes | At most 64 characters. |
#Rules for every event
These apply to reserved and custom events alike.
#Event fields
| Field | Type | Rules |
|---|---|---|
id |
string | 8–64 characters, unique per event. The SDK uses a GUID. Repeated ids are ignored for two days, so retries aren't double counted. |
name |
string | 1–64 characters. |
ts |
number | Unix seconds, greater than 0. More than 30 days old: rejected. More than 5 minutes in the future: replaced by the arrival time. |
userId |
number | Optional. Whole number greater than 0. |
sessionId |
string | Optional. At most 64 characters. |
props |
object | Optional. See below. |
#Custom event names
A custom event name must match: a letter, then up to 63 more letters, digits, spaces or _ . : -. Anything else is rejected with Invalid event name "<name>". Custom events are also rejected when Custom events is off (custom events disabled) or the name is in Blocked events (blocked).
#Properties
| Rule | Limit |
|---|---|
| Number of properties | At most 32 per event. More rejects the event. |
| Property names | Start with a letter or _; then letters, digits, spaces and _ . -; at most 40 characters. |
| Value types | String, finite number, boolean or null. Tables and arrays aren't allowed: properties are flat. |
| String length | At most 4,096 characters on the wire, which reserved server events such as player lists need. Custom event strings longer than 256 characters are cut to 256 when stored. |
| Empty properties | An empty array ([], which is how Roblox encodes an empty table) counts as no properties. |
The SDK applies the same rules before it sends, so in practice you only meet these limits with properties the SDK can't check, such as an economy category longer than 64 characters.
#Batches
At most 500 events per batch and 1 MB per request. A batch with an invalid envelope is rejected as a whole; otherwise each event is accepted or rejected on its own. See delivery.