Analytics SDK
Remote configuration
What you can change from the dashboard without publishing, how and when servers pick it up, and what the API enforces on its own.
The SDK page's Configuration section changes how every server running the SDK behaves, without publishing your place. Open Bloxlytics → your project → SDK → Configuration, make your changes and select Save configuration. Editing needs the Edit project settings and SDK keys permission.
Settings take effect in two places:
- In game. Servers fetch the configuration on start-up and every 5 minutes, so a change reaches every running server within 5 minutes.
- At the API. The API applies the same tracking switches, currencies and blocked events to every event as it arrives, within about 30 seconds of saving. So a change works even on servers that haven't fetched it yet.
#What you can change
| Setting | Values | Reaches servers | Enforced by the API |
|---|---|---|---|
| Sessions | on / off (default on) | Yes: new sessions stop being started. | Yes: session events are rejected. |
| Economy | on / off (default on) | Yes: economy calls are dropped. | Yes: $economy, $economy_transfer and $balance are rejected. |
| Purchases | on / off (default on) | Yes: purchase tracking stops. | Yes: $purchase is rejected. |
| Custom events | on / off (default on) | Yes: TrackEvent calls are dropped. |
Yes: custom events are rejected. |
| Flush interval (seconds) | 2–60 (default 10) | Yes | — |
| Maximum batch size | 10–500 (default 200) | Yes | — |
| Currencies | up to 20, each a key and a label | Yes (keys only), for early warnings | Yes: unknown currencies are rejected. |
| Blocked events | up to 100 custom event names | Yes: matching TrackEvent calls are dropped. |
Yes: matching events are rejected. |
| Player banners | up to 20 rules | No | Applied in the dashboard. |
| Cmdr bridge | on / off (default on) | Through the bridge (see below) | Yes: no commands are dispatched while off. |
| Cmdr groups per role | Cmdr group names for owner, admin and developer | No | Yes: checked before a command is queued. |
| Experiments | managed on Experiments | Yes: running experiments | — |
Funnel steps, progression, player properties and experiment exposures can't be switched off; they are only sent when your code calls them.
#Tracking switches
The four switches are a quick way to stop a category of data without a publish, for example if an economy bug is flooding your charts with bad amounts. Turning Sessions off stops new sessions; players already in a session still get their $session_end, which the API then rejects. Turning a switch back on takes effect for new events only: nothing dropped while it was off is recovered.
#Flush interval and batch size
These replace the FlushInterval and MaxBatchSize you set in code. The dashboard always sends a value (the defaults are 10 and 200), so once a server has loaded its configuration, the dashboard's values win over the ones in your script. Lower intervals mean fresher realtime data and more HTTP requests from each server. See delivery.
#Currencies
While the list is empty, every currency name is accepted. Once you add a currency, economy events for any currency not on the list are rejected (matching ignores case), and servers warn once in their output when your code uses an unknown one. See economy.
#Blocked events
Custom event names to drop, one per line (commas also work). Matching is exact and case-sensitive, and applies only to custom events from TrackEvent. Use it to silence a noisy or mistaken event while you fix the code.
#Player banners
A banner rule shows a label on a player in Bloxlytics when a property your servers report matches: for example Role equals Moderator shows MODERATOR with the Info tone. Rules have a property, a value to match, a label of up to 24 characters and a tone (Neutral, Info, Success, Warning or Danger).
Only values reported by your own servers count, through SetPlayerProperty or SetPlayerRole, so a banner can't be faked from outside the game. Banner rules are applied in Bloxlytics and aren't sent to servers.
#Cmdr bridge
When Cmdr bridge is off, servers still register their commands, but Bloxlytics refuses to queue commands, macros, kicks or warnings, with the message The command bridge is disabled in project settings.
The bridge reads the switch when it registers. A server that starts while the bridge is off stops its bridge for the rest of its life, and its heartbeats report bridge = false; turning the switch back on applies to servers started afterwards. A server that was already polling when you turn it off keeps polling but receives nothing. See the bridge lifecycle.
Cmdr groups per role limits which Cmdr groups each Bloxlytics role may run. Leave a role empty to allow every group the game's bridge permits. Analysts and viewers who have been given command access use the developer list. The in-game AllowedGroups and your BeforeRun hooks still apply on top; see bridge security.
#What the SDK fetches
Servers fetch their configuration with GET /v1/config, authenticated with the write key. The response holds exactly what the SDK needs:
Only experiments that are running and inside their start and end dates are included. The full response is documented on get config.
#Fetch timing
- Start-up. Just after
Start, on its own thread, before$server_startis queued and before sessions start for players already in the server. Tracking calls made before it returns use the defaults (everything on, 10 seconds, 200 events) plus anyFlushIntervalandMaxBatchSizefrom your script. - Every 5 minutes after that, on a separate thread so a slow response never delays sending.
- On failure, the server keeps the configuration it already has and tries again at the next 5-minute refresh. With
Debug = trueit printsconfig fetch failed.
Each field in the response replaces the server's current value. There is no partial merge inside a field: the experiments list, for example, is replaced as a whole.
In Studio without TrackInStudio, the SDK never fetches its configuration.