# Bloxlytics documentation (all pages) # Introduction > Bloxlytics is analytics and operations for Roblox experiences, from public numbers with only a Universe ID to player-level analytics and remote Cmdr commands. Bloxlytics gives a Roblox development team one place to understand how an experience is doing and to run it day to day. You can see live and historical player numbers, retention, funnels, economy and monetisation, browse and edit DataStores, look up and moderate players, and run your game's own Cmdr commands on live servers, with a role for everyone on the team. You sign in with your Roblox account. There are no passwords, and Bloxlytics keeps no Roblox tokens after sign-in. ## Start with a Universe ID, add more when you need it Each experience you add becomes a **project**, and the project's ID *is* the experience's Universe ID. Three independent sources feed a project. Each one adds more, none is required, and every number in the app is labelled with where it came from. - [Public data](https://docs.bloxlytics.app/data-sources#public-data): Only the Universe ID. Live concurrent players sampled every minute, visits, favourites, likes and dislikes, straight from Roblox's public APIs. No key and no scripts. - [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud): An Open Cloud API key on your Roblox account. DataStore browsing and editing, bans, Roblox's own daily analytics and funnels, and developer product names. - [Luau SDK and Cmdr bridge](https://docs.bloxlytics.app/projects/install-the-sdk): Two server-side modules in your game. Player-level analytics, live servers and activity, custom events, experiments, and remote Cmdr commands and macros. The [How data gets in](https://docs.bloxlytics.app/data-sources) page compares the three in detail, including how often each one refreshes. ## What you can do | Area | What it covers | Needs | | --- | --- | --- | | [Overview](https://docs.bloxlytics.app/analytics/overview) and [Realtime](https://docs.bloxlytics.app/analytics/realtime) | Players now, peak concurrent players, visits, favourites, like ratio; with the SDK, active players, sessions, revenue, live servers and an event feed | Public data; more with the SDK | | [Retention](https://docs.bloxlytics.app/analytics/retention), [Funnels](https://docs.bloxlytics.app/analytics/funnels), [Economy](https://docs.bloxlytics.app/analytics/economy), [Events](https://docs.bloxlytics.app/analytics/events), [Players](https://docs.bloxlytics.app/analytics/players) | Cohorts, step-by-step conversion, currency sources and sinks, custom events, player profiles | SDK (Roblox-reported retention and funnels also come through Open Cloud) | | [Monetisation](https://docs.bloxlytics.app/analytics/monetisation) | Products, conversion, ARPU and ARPPU, purchase funnel, Roblox-reported revenue | SDK and/or Open Cloud | | [Explore](https://docs.bloxlytics.app/analytics/explore) and [Dashboards](https://docs.bloxlytics.app/analytics/dashboards) | Your own queries and charts, player filters and breakdowns, private or shared dashboards, read-only public links, scheduled digests | Any source | | [Segments](https://docs.bloxlytics.app/analytics/segments), [Experiments](https://docs.bloxlytics.app/analytics/experiments), [Alerts](https://docs.bloxlytics.app/analytics/alerts), [Insights](https://docs.bloxlytics.app/analytics/insights) | Groups of players, A/B tests, threshold alerts by in-app notification, Discord or email, automatic findings with the evidence attached | Mostly SDK | | [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores) | Browse, search, edit with a diff preview, compare and restore versions | Open Cloud | | [Player Lookup](https://docs.bloxlytics.app/operations/player-lookup) and [Moderation](https://docs.bloxlytics.app/operations/moderation) | Find any player, see their history, ban and unban (confirmed with Roblox), kick and warn (confirmed by the game) | Open Cloud for bans; bridge for kicks and warnings | | [Commands](https://docs.bloxlytics.app/operations/commands) and [Macros](https://docs.bloxlytics.app/operations/macros) | Run your registered Cmdr commands on live servers, and saved sequences of them | Cmdr bridge | Access is controlled per workspace with five roles (owner, admin, developer, analyst and viewer) and per-permission overrides. Analytics access never implies DataStore, moderation or command access. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). ## How Bloxlytics treats your numbers - **Provenance is always shown.** Metrics carry an **SDK**, **Computed** or **Roblox** badge. Roblox-reported numbers are kept in their own charts and are never blended with SDK numbers. - **Nothing is estimated.** If Roblox doesn't return a metric for your experience, it's shown as not available, with Roblox's reason, rather than filled in. - **Your game keeps running.** The SDK fails soft. A bad configuration produces one warning in the server output and the SDK stays off; it never throws into your game code. - **Server-side only.** The Luau modules refuse to run on the client, and your Open Cloud key never leaves Bloxlytics' servers. ## Next steps - [Quickstart](https://docs.bloxlytics.app/quickstart): Sign in, add your experience and see live numbers in a few minutes. - [How data gets in](https://docs.bloxlytics.app/data-sources): Exactly what each data source unlocks and how fresh it is. - [Install the SDK](https://docs.bloxlytics.app/projects/install-the-sdk): Player-level analytics from your game servers. - [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud): DataStores, bans and Roblox's own analytics. --- # Quickstart > Sign in with Roblox, add your experience by its Universe ID and see live Roblox numbers in a few minutes, with no key and no game scripts. This guide takes you from nothing to live numbers for your experience. You need a Roblox account that controls the experience: either you created it, or you own the group that owns it. If you manage it some other way (a group role or collaborator access), you can still add it with an Open Cloud API key; step 3 covers that. **1. Sign in with Roblox** Open [dash.bloxlytics.app](https://dash.bloxlytics.app) and choose **Continue with Roblox**. Roblox asks you to approve sign-in; Bloxlytics only asks for your profile (the `openid profile` scopes). The same button creates your account the first time. Bloxlytics receives your Roblox user ID, username, display name and avatar, never your password. It ends the Roblox authorisation as soon as it has read your profile, so it keeps no Roblox tokens. > **Note:** A sign-in attempt is valid for 10 minutes. If you see **Sign-in link expired**, start again. **2. Open your workspace** New accounts get a **personal workspace** automatically, named after your display name, and you're its owner. That's enough to start. If your team will share the project, create an organisation from the workspace switcher with **Create organisation** first, and add the project there. A project can't be moved between workspaces later. See [Workspaces](https://docs.bloxlytics.app/workspaces/overview). **3. Add your experience** On the workspace's **Projects** page, choose **New project** and enter the **Universe ID**. In Creator Hub, open your experience and use **Copy Universe ID**. A place ID works too: the number in the game's URL (`roblox.com/games//…`). Bloxlytics looks up the universe it belongs to, and the project is still keyed by the Universe ID. **Name** and **Description** are optional; the name defaults to the experience's name on Roblox. Choose **Create project**. What happens next depends on your Roblox account: - **You created the experience, or own the group that owns it.** The project is created straight away and you land on its **Integrations** page. - **Anyone else.** The dialog explains who owns the experience and walks you through proving you manage it with an Open Cloud API key: **Create a key**, **Verify**, **Connected**. The same key then connects Open Cloud for the project. [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience#prove-you-manage-it-with-an-api-key) has the details. > **Tip:** Creating projects needs the **Create projects** permission. Owners, admins and developers have it by default; analysts and viewers don't. **4. See your public data** Open **Overview**. Without the SDK, it shows Roblox's own numbers for the experience: | Metric | What it is | | --- | --- | | **Playing now** | Concurrent players, as reported by Roblox | | **Peak CCU** | Highest concurrent players Roblox reported in the range, sampled every minute | | **Visits in range** | Growth of the experience's visit counter over the range | | **Total visits** | All-time visits shown on the experience page | | **Favourites** | Players who favourited the experience | | **Like ratio** | Share of votes that are likes | Concurrent players are sampled every minute from the moment the project exists, so the chart starts filling straight away. Visits, favourites and votes are stored as hourly snapshots. Until the first snapshot exists, the totals are read from Roblox directly. **Visits in range** needs two snapshots inside the range, so it appears after a couple of hours. > **Done:** You now have live data for your experience, with nothing installed in your game. **5. Add more when you're ready** The **Integrations** page shows the three sources and their status. Add either or both of the others, in any order: - [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) for the DataStore Explorer, bans, and Roblox's daily analytics (daily active users, revenue, retention and more), imported for as far back as Roblox still holds them. - [Install the SDK](https://docs.bloxlytics.app/projects/install-the-sdk) for player-level analytics: sessions, retention cohorts, funnels, economy, purchases, custom events, experiments and live servers. - [Connect Cmdr](https://docs.bloxlytics.app/projects/connect-cmdr) to run your registered Cmdr commands and macros on live servers from Bloxlytics. ## Invite your team Invitations name a Roblox account, and only that account can accept them, even with the link. Roblox doesn't give Bloxlytics anyone's email address, so you share the invitation link yourself. See [Invitations](https://docs.bloxlytics.app/workspaces/invitations) and [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). ## Next steps - [How data gets in](https://docs.bloxlytics.app/data-sources): What each source unlocks and how often it refreshes. - [Install the SDK](https://docs.bloxlytics.app/projects/install-the-sdk): Start collecting player-level analytics. - [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud): DataStores, bans and Roblox analytics. - [Troubleshooting](https://docs.bloxlytics.app/help/troubleshooting): If something doesn't look right. --- # How data gets in > The three independent data sources behind a project, what each one unlocks, how often each refreshes and where its data appears in the app. A project gets data from up to three sources. They're independent: you can use any combination, in any order, and removing one never deletes what another collected. The **Integrations** page shows the status of all three. | Source | What you set up | Credential | Direction | | --- | --- | --- | --- | | [Public data](#public-data) | Nothing beyond the Universe ID | None | Bloxlytics reads Roblox's public APIs | | [Open Cloud](#open-cloud) | An Open Cloud API key on your Roblox account | Your API key, stored encrypted by Bloxlytics | Bloxlytics calls Roblox, server to server | | [SDK and Cmdr bridge](#sdk-and-cmdr-bridge) | The `Analytics` module (and optionally `CmdrBridge`) in your game | Project **write key** (`bxw_…`) and **bridge key** (`bxb_…`) | Your game servers call Bloxlytics | ## What each source unlocks | Capability | Public data | Open Cloud | SDK | Cmdr bridge | | --- | --- | --- | --- | --- | | Concurrent players (live and history) | Yes | | Yes, from server heartbeats | | | Total visits, visits per day, favourites, likes and dislikes | Yes | | | | | Experience details (name, creator, root place, icon) | Yes | Refreshed on every sync | | | | Roblox's daily analytics: DAU, revenue, D1/D7/D30 retention, paying user conversion, average session length, new users, peak concurrent users | | Yes, with `universe.analytics:read` | | | | Funnels logged with Roblox's `AnalyticsService` | | Yes, with `universe.analytics:read` | | | | Sessions, active players, new vs returning, session length | | | Yes | | | Retention cohorts and churn | | Roblox-reported retention only | Yes | | | Bloxlytics funnels with time between steps and drop-off players | | | Yes | | | Economy: sources, sinks, balances, transfers | | | Yes | | | Purchases: developer products and game passes, conversion, ARPU | | Developer product names and prices | Yes | | | Custom events, progression and player properties | | | Yes | | | Segments and experiments | | | Yes | | | Live servers, server tags and the event feed | | | Yes | | | DataStore browsing, editing and version history | | Yes, with DataStore scopes | | | | Ban status, bans and unbans | | Yes, with user restriction scopes | | | | Kicks and warnings | | | | Yes | | Running Cmdr commands and macros | | | | Yes | The SDK and the bridge share one install: the bridge is started by the same `Analytics:Start` call when you pass your Cmdr module and a bridge key. You can run analytics without the bridge, or the bridge without sending analytics. ## Public data As soon as a project exists, Bloxlytics starts reading your experience's public counters from Roblox, using only the Universe ID. There's nothing to install and no key. - **Concurrent players** are sampled **every minute**. - **Visits**, **favourites**, **likes** and **dislikes** are stored as **hourly snapshots**. Visits per hour or day are the growth of Roblox's cumulative visit counter between snapshots. A figure "in range" needs two snapshots inside the range and is never inferred from a single reading. - Until a project's first snapshot exists, totals are read from Roblox directly, so a new project shows numbers immediately. These numbers carry the **Roblox** badge. They're public figures: anyone can see them on the experience page. What Bloxlytics adds is the history. ## Open Cloud With an [Open Cloud API key](https://docs.bloxlytics.app/projects/open-cloud), Bloxlytics calls Roblox on your behalf. What it can do depends on the key's scopes, and features the key can't support are disabled with the reason shown. Some features read Roblox live when you use them, and some are imported on a schedule: | Data | When it's fetched | | --- | --- | | DataStores, entries and versions | Live, each time you browse, open or save. Nothing is copied into Bloxlytics. | | Bans and unbans | Live. After each change Bloxlytics reads the restriction back to confirm Roblox applied it. | | Ban records (the list of restrictions) | Imported on each sync, up to 5,000 restrictions | | Experience details and developer products | Imported on each sync | | Roblox analytics and Roblox funnels | Imported on each sync, if the key has `universe.analytics:read` | ### The sync schedule | Trigger | What's imported | Analytics window | | --- | --- | --- | | Connecting a key, or **Re-validate** | Analytics and funnels (with `universe.analytics:read`), bans (with `universe.user-restriction:read`) and developer products | Full history | | Automatic sync | Experience details, developer products, bans, analytics and funnels | Last 7 days | | **Sync now** | The same as automatic sync | Last 30 days | | **Import full history** | The same, plus a full analytics and funnel re-import | Full history | **Full history** means every day Roblox still holds, up to 4 years back or to the experience's creation date, whichever is later. A full import takes a few minutes; Roblox limits how fast analytics can be requested, and Bloxlytics paces itself to stay inside that limit. Automatic sync runs while the **Automatic sync** switch is on: Bloxlytics checks every hour and re-syncs any project whose last sync is more than 6 hours old. A project that has never had a full-history import gets one on its next sync. Roblox reports analytics for **complete UTC days** only, so today's numbers appear tomorrow. Roblox funnels are totals over a range, so each sync stores a snapshot for the last 7, 30 and 90 days and the last 12 months. Each sync appears in **Sync history** on the **Integrations** page. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud#sync-history). ## SDK and Cmdr bridge The [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk) runs on your game servers and sends events to Bloxlytics. - Events are queued and sent in batches every **10 seconds** by default (configurable from 2 to 60), or sooner when a batch reaches **200 events** (configurable from 10 to 500). - Each server sends a heartbeat every **30 seconds** with its player count, which feeds live servers and the SDK's concurrent-player count. A server counts as live if it was heard from in the last 90 seconds, and is marked stopped after 5 minutes without a heartbeat. - Accepted batches are processed in the background, usually within seconds. The **Realtime** page and the live event feed update as they arrive. - The SDK fetches its [remote configuration](https://docs.bloxlytics.app/sdk/remote-config) on start and every **5 minutes**, so changes you save on the **SDK** page reach running servers within 5 minutes. - Failed sends are retried with backoff, and retried events are never counted twice. SDK history starts when you install it. Bloxlytics can't reconstruct player-level history from before that, because Roblox doesn't expose per-player events. Roblox's own aggregated analytics are available back in time through Open Cloud instead. The [Cmdr bridge](https://docs.bloxlytics.app/projects/connect-cmdr) holds an open request to Bloxlytics (up to 20 seconds at a time) and picks up commands as soon as they're sent. Each server re-sends its command list every 5 minutes, and commands expire if no server picks them up within 60 seconds. ## When two sources report the same thing Concurrent players can come from both Roblox and your SDK heartbeats. Roblox's count is official, so when Roblox has reported it, Bloxlytics shows Roblox's number. The SDK's count is the fallback. The two are never mixed in one series. Retention, revenue and funnels can also come from both. They're shown separately: SDK and computed metrics in the main charts, Roblox-reported metrics in their own **Reported by Roblox** sections. Every metric carries a badge: | Badge | Meaning | | --- | --- | | **SDK** | Collected in-game by the Bloxlytics SDK | | **Computed** | Calculated by Bloxlytics from SDK data, for example retention or ARPU | | **Roblox** | Reported by Roblox, through its public APIs or Open Cloud | ## Where data appears in the app | Page | Public data | Open Cloud | SDK | Bridge | | --- | --- | --- | --- | --- | | **Overview** | Playing now, peak CCU, visits, favourites, like ratio | **Reported by Roblox** charts | KPIs, activity, sessions, retention, revenue | | | **Realtime** | Concurrent players | | Servers, events per second, live feed | Which servers run the bridge | | **Retention** | | Roblox-reported retention | Cohorts and churn | | | **Funnels** | | **From Roblox** funnels | Your funnels | | | **Economy**, **Events**, **Players**, **Segments**, **Experiments** | | | Yes | | | **Monetisation** | | Roblox revenue, product names | Purchases and conversion | | | **DataStore Explorer** | | Yes | | | | **Player Lookup** | | Ban status | Tracked player profiles | Kick and warn | | **Macro Runner** | | | | Console, commands, macros | | **Dashboards**, **Explore**, **Alerts** | Concurrent players | | Every SDK metric | | Pages that need a source you haven't set up are flagged in the navigation. ## Related - [Roblox data in Bloxlytics](https://docs.bloxlytics.app/analytics/roblox-data): reading the Roblox-reported metrics. - [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis): every Roblox endpoint and the scope it needs. - [What Roblox doesn't support](https://docs.bloxlytics.app/help/limitations). --- # Glossary > The terms used across Bloxlytics and these docs, from Universe ID and write key to CCU, segment and cohort. Terms are grouped by topic. Where Bloxlytics uses a Roblox term, the definition says how Bloxlytics uses it. ## Roblox and projects #### Experience A Roblox game, as it appears on Creator Hub. One experience can contain several places. In Bloxlytics, one experience is one [project](#project). #### Universe ID The number Roblox uses to identify an experience as a whole. In Creator Hub, open the experience and use **Copy Universe ID**. A running server knows it as `game.GameId`. The Universe ID is the [project ID](#project-id). #### Place ID The number identifying a single place within an experience. It's the number in a game's URL: `roblox.com/games//…`. You can paste a place ID when adding an experience and Bloxlytics resolves it to the Universe ID. See [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience#universe-id-or-place-id). #### Root place The experience's start place, the one players join from its page. Bloxlytics records it when you add the experience and shows it on the project's **Settings** and **Integrations** pages. #### Project One Roblox experience in Bloxlytics, with its settings, keys, data and configuration. A project belongs to one [workspace](#workspace), and an experience can be a project in only one workspace at a time. #### Project ID The identifier of a project. It's the experience's [Universe ID](#universe-id), so the SDK can find it from `game.GameId` without any setting. Projects created before this change had UUID ids; those still work in old SDK installs and links. #### Creator The Roblox user or group that owns an experience. Only the creator, the owner of the creator group, or someone with an Open Cloud API key that reaches the experience can add it to Bloxlytics. ## Workspaces and access #### Workspace A container for projects and the people who work on them. There are two kinds: a personal workspace and an organisation. #### Personal workspace The workspace every account gets automatically on first sign-in, named after the account's display name. You're its owner. It can't be deleted or left. #### Organisation A workspace created explicitly for a team, with **Create organisation**. Organisations can have many members and can be deleted by their owner. #### Role A member's level in a workspace: **Owner**, **Admin**, **Developer**, **Analyst** or **Viewer**. Each role maps to a set of [permissions](#permission). See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). #### Permission A single grant, such as **View analytics** or **Manage Roblox Open Cloud credentials**. Owners and admins can override which permissions each role holds in their workspace. Analytics permissions never imply DataStore, moderation or command permissions. #### Invitation A link that lets a named Roblox account join a workspace with a given role. Only that Roblox account can accept it. #### Audit log The record of who did what, when and from which IP address: membership changes, key views and rotations, configuration changes, commands, moderation and DataStore writes. See [Audit log](https://docs.bloxlytics.app/workspaces/audit-log). ## Credentials #### Write key The project key the analytics SDK uses to send events. It starts with `bxw_`. It can only submit events for its own project, so a leaked write key can add events but can't read data or call Roblox. Find it on the project's **SDK** page. #### Bridge key The project key the Cmdr bridge uses to receive commands. It starts with `bxb_`. Treat it as sensitive: a leaked bridge key could let someone impersonate your game servers to Bloxlytics. Rotate it straight away if it leaks. #### Open Cloud API key A key you create on your Roblox account in Creator Hub, which lets Bloxlytics call Roblox's Open Cloud APIs for your experience. It's stored encrypted, used only by Bloxlytics' servers, and never sent back to the browser or to game servers. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). #### Scope A permission on an Open Cloud API key, written `system.resource:operation`, such as `universe-datastores.objects:read`. Each scope unlocks specific features in Bloxlytics. #### Rotation Replacing a key with a new one. Rotating a write or bridge key makes the old one stop working immediately. #### Experience secret A value stored in Creator Hub under the experience's **Secrets** and read in server code with `HttpService:GetSecret`. The recommended way to give the SDK its keys, so they never appear as plain strings in your place file. ## Players and analytics #### Session One continuous visit by a player to one server, from join to leave. The SDK records `$session_start` and `$session_end` automatically. (Your own Bloxlytics sign-in is also a session; those are listed under your profile.) #### CCU Concurrent users: players in the experience at the same moment. Bloxlytics samples it every minute. Roblox's public count is shown when available; the SDK's count, summed from server heartbeats, is the fallback. #### Peak CCU The highest CCU in a period. #### DAU, WAU, MAU Daily, weekly and monthly active users: distinct players the SDK recorded any activity for in the period. #### New and returning players A new player's first session falls inside the period; a returning player had played before it. #### Cohort A group of players who started on the same day (or week). Retention cohorts show what share of each group came back after 1, 7, 30 and up to 90 days. #### Retention The share of a cohort that returns after a given number of days, such as D1 or D7. Bloxlytics computes it from SDK data; Roblox's own retention figures are shown separately. #### Churn Players who stopped returning. See [Retention](https://docs.bloxlytics.app/analytics/retention). #### Event Something that happened, sent by the SDK. **Reserved events** start with `$` and are tracked by the SDK or its helper functions (sessions, economy, purchases, funnels). **Custom events** are anything you send with `TrackEvent`. #### Property A key–value fact attached to an event, or to a player with `SetPlayerProperty`. Player properties appear on profiles and can be used in segments and banner rules. #### Funnel An ordered series of steps, with conversion and drop-off between them. Bloxlytics funnels come from SDK events; Roblox funnels come from `AnalyticsService` through Open Cloud. #### Segment A saved definition of a group of players: conditions on fields, properties and events, combined with AND and OR, or a static list. Segments can filter any chart. See [Segments](https://docs.bloxlytics.app/analytics/segments). #### Player filter and breakdown A filter limits a chart to players by country, language, Premium, account age, place or player type; a breakdown splits it by one of those. A filter means the same thing on every metric. #### Experiment An A/B test. Players are assigned to a variant consistently, so the same player always gets the same one, and results compare the variants. See [Experiments](https://docs.bloxlytics.app/analytics/experiments). #### ARPU and ARPPU Average revenue per user, and per paying user. #### Provenance badge The **SDK**, **Computed** or **Roblox** label on a metric, showing where it came from. ## Servers and commands #### Server One running Roblox game server. Bloxlytics identifies servers by their job ID. A server is live if it sent a heartbeat in the last 90 seconds. #### Heartbeat The SDK's message from each server every 30 seconds, with its player count and players. Heartbeats feed live servers, presence and the SDK's CCU. #### Server tag A short fact about a server, such as map or mode, set with `SetServerTag`, shown on its card and searchable in server pickers. #### Studio session A play test in Roblox Studio. Analytics is off in Studio unless you set `TrackInStudio = true`. The bridge does run in Studio, under a per-session key like `studio-1a2b3c4d`, and Studio sessions are only used for commands when you pick them explicitly. #### Cmdr A popular open-source command console for Roblox. Bloxlytics runs your registered Cmdr commands; it never sends or runs source code. #### Cmdr bridge The `CmdrBridge` module, which connects your game's Cmdr to Bloxlytics so permitted team members can run commands on live servers. See [Connect Cmdr](https://docs.bloxlytics.app/projects/connect-cmdr). #### Player context and system context How a remote command runs. If the sender is in the target server, it runs as their own player, so your game's Cmdr permissions apply. Otherwise it runs in the system context, with no executor, which your `BeforeRun` hook can allow or refuse. #### Macro A saved sequence of commands with optional delays and variables, run from the **Macro Runner**. A **dry run** validates a macro without executing anything. ## Configuration and syncing #### Remote configuration Settings you change on the **SDK** page (tracking switches, batching, currencies, blocked events, banner rules, bridge on or off) that running servers fetch every 5 minutes. See [Remote configuration](https://docs.bloxlytics.app/sdk/remote-config). #### SDK debugger The panel on the **SDK** page showing accepted and rejected events and batches, the last batch, the SDK version and recent problems. #### Banner A label on a player, such as **BANNED** or **MODERATOR**. Ban banners come from Roblox; role banners come only from game-reported properties matching rules you set. #### Sync An import of data from Roblox through Open Cloud: experience details, developer products, bans, Roblox analytics and Roblox funnels. Each kind of data is a row in **Sync history**. --- # Add an experience > Create a project for a Roblox experience by its Universe ID or a place ID, and prove you manage it, as its creator, the owner of its group, or with an Open Cloud API key. A project is one Roblox experience. Its project ID is the experience's Universe ID, so there's nothing to configure to link the two: the SDK reads the same number from `game.GameId`, and Roblox's public data is available the moment the project exists. Because a project *is* the experience, only someone who controls the experience on Roblox can add it. Otherwise anyone could claim your experience and lock you out of it. ## Create the project On your workspace's **Projects** page, choose **New project** (it's also in the project switcher). The **New project** dialog asks for: | Field | Required | Notes | | --- | --- | --- | | **Universe ID** | Yes | Creator Hub → your experience → **Copy Universe ID**. A place ID works too. Becomes the project's ID. | | **Name** | No | Up to 60 characters. Defaults to the experience's name on Roblox. | | **Description** | No | Up to 300 characters. | Choose **Create project**. Bloxlytics looks the experience up on Roblox, checks that you control it, checks that it isn't already a project, and creates it. You land on the project's **Integrations** page. > **Note:** You need the **Create projects** permission in the workspace. Owners, admins and developers have it by default; analysts and viewers don't. You can create up to 20 projects a minute. ### What's set up for you - A **write key** (`bxw_…`) and a **bridge key** (`bxb_…`) for the SDK and Cmdr bridge, on the **SDK** page. - The default SDK configuration: all tracking on, a 10-second flush interval, batches of up to 200 events, and the Cmdr bridge enabled. - The experience's root place and icon, from Roblox. - Collection of public data: concurrent players every minute, and visits, favourites and likes every hour. ## Universe ID or place ID People often paste the number from the game's URL, `roblox.com/games//…`, which is a place ID rather than the Universe ID. Bloxlytics accepts either: 1. It first treats the number as a Universe ID. 2. If no experience has that Universe ID, it asks Roblox which universe the number belongs to as a place, and uses that universe. Either way, the project is keyed by the Universe ID. Any place in the experience resolves to the same project, and every place in the experience reports to it. ## Who can add an experience Bloxlytics accepts one of three proofs, checked in this order: | Proof | Who it covers | What you do | | --- | --- | --- | | **You created it** | Experiences owned by your Roblox user account | Nothing. Sign in with that account. | | **You own its group** | Experiences owned by a group whose owner is your Roblox account | Nothing. Sign in with the group owner's account. | | **An Open Cloud API key that reaches it** | Everyone else who manages the experience: group members with a role, collaborators | Paste a key from your own Roblox account. | Roblox's public APIs don't show group role permissions or collaborator access, so for anyone other than the creator or group owner, an API key is the proof: only someone with access to the experience on Creator Hub can make a key that reaches it. ### Prove you manage it with an API key If your account isn't the creator or group owner, **Create project** opens **Prove you manage this experience** instead. It tells you who owns the experience, then walks you through three stages: **Create a key**, **Verify** and **Connected**. **1. Create a key on your account** Open **Creator Hub → Open Cloud → API Keys** on your own account (the dialog links there) and choose **Create API Key**. Use a key on your own account, not a group key. Roblox is retiring group-owned keys, and a key on your account works for group experiences you can manage. **2. Give it access to the experience** Under **Access Permissions**, add an API system and select the experience, or allow all experiences you can access. The dialog shows the experience's name and Universe ID with a **Copy Universe ID** button. **3. Choose operations** Pick the operations you want Bloxlytics to use. The dialog suggests: | Scope | Unlocks | | --- | --- | | `universe-datastores.objects:read` | Browse DataStores | | `universe-datastores.objects:update` | Edit entries | | `universe.user-restriction:write` | Bans | | `universe.analytics:read` | Roblox analytics | If you chose all experiences rather than naming this one, include `universe-datastores.control:list` or `universe.user-restriction:read`. See [Keys set to all experiences](#keys-set-to-all-experiences). The full list of scopes and what each unlocks is in [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud#scopes-and-what-they-unlock). **4. Allow Bloxlytics' servers** Under **Security**, add `0.0.0.0/0` to **Accepted IP Addresses** so Bloxlytics' servers can use the key. Save, then copy the key. **5. Verify and create** Choose **I have a key**, paste it into **Open Cloud API key** and choose **Verify and create**. Bloxlytics checks with Roblox that the key is enabled, hasn't expired and reaches this experience, then creates the project. The same key is then used to [connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) for the project, and the dialog shows the connection checks. The last stage shows one of two results: - **Project created**: the project exists and Open Cloud is connected. - **Project created, Open Cloud not connected**: the key proved your access, but couldn't connect Open Cloud. That usually means it has no scopes Bloxlytics uses. Connect a key with more permissions from the project's **Integrations** page. Choose **Open project** to go to the project's **Integrations** page. > **Info:** The key is encrypted at rest, used only by Bloxlytics' servers, and never sent back to the browser or to game servers. ### Keys set to all experiences An Open Cloud key either names specific experiences or is set to every experience its owner can access. A key that names this experience is accepted as it is. A key set to all experiences doesn't say anything about one experience in particular, so Bloxlytics confirms it with a single read-only call against the experience: - with `universe-datastores.control:list`, it lists one DataStore name; or - with `universe.user-restriction:read`, it lists user restrictions. If the key has neither scope, Bloxlytics can't confirm it and asks you to add one of them, or to add the experience to the key by name. If Roblox refuses the call, your account doesn't have permission to manage the experience, or the experience's API access doesn't allow the key. ## One project per experience An experience can be a project in only one workspace, across all of Bloxlytics. If it's already a project: - **In the same workspace**, you'll see that it's already a project here. Open the existing one. - **In another workspace**, ask someone in that workspace to [invite you](https://docs.bloxlytics.app/workspaces/invitations). Bloxlytics checks that you control the experience before it checks whether it's already a project, so someone who doesn't control an experience can't use the dialog to find out whether it's in Bloxlytics. A project can't be moved to another workspace. If you added it to the wrong one, delete it and add it again in the right workspace; its data doesn't carry over. Deleting a project is permanent and a later project for the same experience always starts empty. See [Project settings](https://docs.bloxlytics.app/projects/settings#delete-a-project). ## Errors you may see | Message | What it means | What to do | | --- | --- | --- | | Enter the experience's Universe ID. | The field is empty. | Paste the Universe ID or a place ID. | | Universe IDs are whole numbers. | The value isn't a positive whole number. | Copy the number again; no letters or spaces. | | No experience found for ``. Check it's the Universe ID (Creator Hub → experience → Copy Universe ID) or the place ID from the game's URL. | Roblox returned no experience for that number as a universe or as a place. | Check the number. Roblox may also report some experiences as unavailable. | | **Prove you manage this experience**: `` belongs to the group ``, and your Roblox account isn't its owner. | You're not the group's owner. | Use an API key, as described above. | | **Prove you manage this experience**: `` belongs to `@`, not the Roblox account you're signed in with. | You're signed in with a different Roblox account. | Sign in as the creator, or use an API key. | | Paste the full API key. | The key is shorter than 20 characters. | Copy the whole key from Creator Hub. | | Roblox didn't accept that API key. Check you copied all of it. | Roblox's key check rejected it. | Copy it again, or create a new key. | | That API key is disabled on Roblox. | The key is turned off in Creator Hub. | Enable it, or use another key. | | That API key has expired. | The key's expiry date has passed. | Create a new key. | | The key's access permissions don't include ``… | The key names other experiences, not this one. | Add the experience to the key, or set it to all experiences you can access. | | The key is set to all your experiences, but Bloxlytics can only confirm it reaches `` with universe-datastores.control:list or universe.user-restriction:read… | A wildcard key without either confirming scope. | Add one of those scopes, or name the experience on the key. | | Roblox says this key can't access ``… | The read-only check was refused. | Make sure your account can manage the experience and its API access allows the key. | | Roblox is rate limiting requests. Try again in a minute. | Roblox asked Bloxlytics to slow down. | Wait a minute and retry. | | Couldn't reach Roblox to check the key. Try again. | Roblox didn't answer. | Retry. | | `` is already a project in this workspace. | See [One project per experience](#one-project-per-experience). | Open the existing project. | | `` is already a project in another workspace. Ask someone there to invite you. | See [One project per experience](#one-project-per-experience). | Ask for an invitation. | ## Next steps - [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud): DataStores, bans and Roblox analytics. - [Install the SDK](https://docs.bloxlytics.app/projects/install-the-sdk): Player-level analytics. - [Project settings](https://docs.bloxlytics.app/projects/settings): Name, places, time zone and deletion. --- # Connect Open Cloud > Connect an Open Cloud API key from your Roblox account to unlock DataStores, bans and Roblox's own analytics, and manage validation, syncing and the key's lifecycle. Open Cloud is Roblox's API for working with an experience from outside the game. With an Open Cloud API key, Bloxlytics can browse and edit your DataStores, ban and unban players, and import Roblox's own daily analytics and funnels. Bloxlytics makes these calls from its servers; the key is never sent to the browser or to your game. You manage the connection in the **Roblox Open Cloud** section of the project's **Integrations** page. > **Note:** Connecting, replacing and disconnecting a key, and controlling sync, need the **Manage Roblox Open Cloud credentials** permission. Owners and admins have it by default. Everyone who can view analytics can see the connection's status and sync history. ## Create the key **1. Open API Keys on your own account** Go to [Creator Hub → Open Cloud → API Keys](https://create.roblox.com/dashboard/credentials?activeTab=ApiKeysTab) and choose **Create API Key**. Create it on **your own Roblox account**. Bloxlytics is built for user-owned keys: Roblox is discontinuing group-owned API keys, and a key on your account works for group experiences you have permission to manage. **2. Add the experience under Access Permissions** Add each API system you want and select the experience, or allow all experiences you can access. Bloxlytics only uses the key for this project's experience, whose Universe ID is the project ID. If you choose all experiences, include `universe-datastores.control:list` or `universe.user-restriction:read`, so Bloxlytics can confirm the key reaches this experience with a read-only call. **3. Choose operations** Grant only what you need. Every scope and what it unlocks is listed in [the next section](#scopes-and-what-they-unlock). **4. Set Accepted IP Addresses** Under **Security**, add `0.0.0.0/0` to **Accepted IP Addresses** so Bloxlytics' servers can use the key. Roblox refuses requests from addresses that aren't on the key's list. **5. Optionally set an expiry, then save** Save and copy the key. If you set an expiry date, Bloxlytics shows it on the **Integrations** page and highlights it when it's less than 14 days away. ## Scopes and what they unlock The **Permissions by feature** section on the **Integrations** page lists the same scopes, with a **Granted** or **Not granted** badge for the connected key. Anything the key can't do is disabled in the app, with the reason. | Feature | Scope | Unlocks | | --- | --- | --- | | DataStores: browse | `universe-datastores.control:list` | List DataStore names | | | `universe-datastores.objects:list` | List keys in a DataStore | | | `universe-datastores.objects:read` | Read entry values and metadata | | DataStores: edit | `universe-datastores.objects:update` | Save edited values and restore versions | | | `universe-datastores.objects:create` | Create new entries | | | `universe-datastores.objects:delete` | Delete entries (recoverable for 30 days on Roblox) | | DataStores: version history | `universe-datastores.versions:list` | List entry revisions, to browse, compare and restore previous versions | | Ordered DataStores | `universe.ordered-data-store.scope.entry:read` | List entries by value and read them | | | `universe.ordered-data-store.scope.entry:write` | Set, increment, create and delete entries | | MemoryStores | `memory-store.sorted-map:read` | Browse sorted maps and read items | | | `memory-store.sorted-map:write` | Create, edit and delete sorted map items | | | `memory-store.queue:dequeue` | Peek at queues and read items | | | `memory-store.queue:add` | Add items to queues | | | `memory-store.queue:discard` | Discard items you've read | | | `memory-store:flush` | Flush every sorted map and queue (Roblox also lists this as `universe.memory-store:flush`; either works) | | Bans | `universe.user-restriction:read` | Show verified ban status and Roblox ban logs | | | `universe.user-restriction:write` | Ban and unban from Bloxlytics | | Roblox analytics | `universe.analytics:read` | Import daily active users, revenue, retention and other daily metrics, and funnels logged with `AnalyticsService` | A few things to know: - **Scopes don't replace Bloxlytics permissions.** Editing a DataStore entry needs both the `objects:update` scope on the key and the **Edit, delete and restore DataStore entries** permission for the person doing it. The same applies to bans and **Kick, warn, ban and unban players**. - **Kicks and warnings don't use Open Cloud.** They go through the [Cmdr bridge](https://docs.bloxlytics.app/projects/connect-cmdr) to a live server. - **Developer products** are imported on every sync when Roblox lets the key list them. If it doesn't, the sync is marked **Partial** and product names come from SDK purchase events instead. - A key must have at least one of the scopes above. A key with none of them is refused at **Check permissions**. ## Connect In **Roblox Open Cloud**, paste the key into **Open Cloud API key** and choose **Validate and connect**. The **Connection checks** list beside the form shows each step as it runs, and where it stopped if something failed: | Step | What it checks | Shown on success | | --- | --- | --- | | **Validate API key** | Roblox recognises the key, it's enabled and it hasn't expired | The key's name and the Roblox user who owns it | | **Check permissions** | The key has scopes Bloxlytics can use, and reaches this experience: either it names the experience, or it's set to all experiences and a read-only call to this one succeeds | The capabilities granted, such as List DataStores, Read entries, Ban and unban | | **Retrieve experience** | Roblox returns the experience's details | The experience's name and creator | | **Store credentials** | The key is saved | Encrypted at rest; never sent to the browser or the game | | **Import historical analytics** | Queues the first import | Queued, or skipped if the key lacks `universe.analytics:read` | Steps after a failure show **Not reached**. You can connect up to 10 times a minute. If you added the experience with an API key, the same key was already used to connect Open Cloud. See [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience#prove-you-manage-it-with-an-api-key). ### What the first import does Connecting queues an import of: - **Roblox analytics and Roblox funnels**, if the key has `universe.analytics:read`: every day Roblox still holds, up to 4 years back or to the experience's creation date. It takes a few minutes. - **Bans**, if the key has `universe.user-restriction:read`. - **Developer products**. Progress appears in [Sync history](#sync-history). ## How the key is stored - The key is **encrypted at rest** and decrypted only on Bloxlytics' servers, at the moment a call to Roblox is made. - It's **never sent back** to the browser, shown again in full, or sent to game servers. The **Integrations** page shows only the key's name and its last four characters, like `…abcd`. - It's used only for the experience the project represents. - Connecting, replacing and disconnecting are recorded in the [audit log](https://docs.bloxlytics.app/workspaces/audit-log). See [Security and privacy](https://docs.bloxlytics.app/security) for more. ## The connected key Once connected, the section shows: | Item | What it shows | | --- | --- | | **API key** | The key's name on Roblox and its last four characters | | **Universe ID** | The experience the key is used for | | **Last validated** | When the key last passed the connection checks | | **Expires** | The key's expiry date, marked **(soon)** within 14 days, or **No expiry** | The status next to **Roblox Open Cloud** is one of: | Status | Meaning | | --- | --- | | **Connected** | The key passed its checks and syncs normally. | | **Not connected** | No key is stored. | | **Validating** | A check is in progress. | | **Needs attention** | Roblox rejected the key during a sync (HTTP 401: missing, invalid or revoked). The message from Roblox is shown under **The last request to Roblox failed**. | > **Warning:** While the status is **Needs attention**, automatic sync and **Sync now** stop. Choose **Re-validate** once the key works again, or **Replace key**. ### Re-validate **Re-validate** runs the connection checks again with the stored key, so you don't have to paste it. Use it after changing the key's scopes or access permissions in Creator Hub, or to clear **Needs attention**. A successful re-validation updates the granted scopes and expiry, and queues the same import as connecting, including the full analytics history. A failure shows which check failed. ### Replace key **Replace key** opens the form again, labelled **New API key**. Paste the new key and choose **Validate and replace**. The new key goes through every check before it replaces the old one; if any check fails, the old key stays in place. **Cancel** closes the form. Replace the key before an expiring key's date passes, or straight away if a key may have been exposed. Then revoke the old key in Creator Hub. ### Disconnect **Disconnect** asks you to confirm, then deletes the stored key. DataStore editing, bans and Roblox analytics import stop working until a new key is connected. Data already imported and your SDK analytics are kept. Disconnecting doesn't revoke the key on Roblox. Revoke it in Creator Hub if you no longer need it. ## Synchronisation The **Synchronisation** section appears once a key is connected. | Control | What it does | | --- | --- | | **Automatic sync** | When on (the default), Roblox data is imported every 6 hours. The description shows when it last synced. | | **Sync now** | Queues a sync straight away, with the last 30 days of Roblox analytics. Shows **Syncing…** while a sync is running. | | **Import full history** | Re-imports every day of Roblox analytics and funnels Roblox still holds (up to 4 years), plus bans and developer products. Shown only when the key has `universe.analytics:read`. Takes a few minutes. | Both buttons are disabled while a sync is queued or running. You can request a manual sync up to 6 times in 10 minutes. Every sync, automatic or manual, imports: - **Experience details** (name, creator, playing count, visits, icon); - **Developer products**; - **Bans**, with `universe.user-restriction:read`: up to 5,000 restrictions; anything Roblox no longer lists is marked as no longer restricted; - **Roblox analytics** and **Roblox funnels**, with `universe.analytics:read`. Automatic syncs import the last 7 days; **Sync now** imports the last 30. A project that has never had a full-history import gets one on its next sync. Roblox only reports complete UTC days, and re-importing a day replaces it, so syncing again never double counts. [How data gets in](https://docs.bloxlytics.app/data-sources#the-sync-schedule) has the full schedule. ### Sync history **Sync history** lists the 20 most recent sync jobs, one row per kind of data: | Column | Shows | | --- | --- | | **Data** | **Roblox analytics**, **Roblox funnels**, **Experience details**, **Bans** or **Developer products** | | **Status** | **Queued**, **Running**, **Success**, **Partial** or **Error** | | **Result** | A summary, such as data points and metrics imported and the earliest day, funnels and steps, restrictions or products, plus any note or error | | **Queued** | When the job was queued | | **Duration** | How long it ran | **Partial** means the job finished but not everything was available. Common notes: - *Not available from Roblox: …*: Roblox rejected some analytics metrics for this experience. They're listed in **Roblox analytics metrics**, never estimated. - *History stopped early for: …*: Roblox stopped returning older data for a metric partway through. - *More than 5,000 restrictions; first 5,000 synced.* - *Developer product listing isn't available with this key; names come from SDK purchase events instead.* - *Roblox doesn't report funnels for this experience* or *No funnel events in the last year*: the game doesn't log funnels with `AnalyticsService`, or Roblox has none yet. ### Roblox analytics metrics This section lists each metric Bloxlytics requests from Roblox's Analytics API, which is in beta, and whether Roblox returned it for your experience: | Metric | Roblox name | | --- | --- | | Daily active users | `DailyActiveUsers` | | Daily revenue | `DailyRevenue` | | D1 retention | `ForwardD1Retention` | | D7 retention | `ForwardD7Retention` | | D30 retention | `ForwardD30Retention` | | Paying user conversion | `PayingUsersCVR` | | Average session length | `AverageSessionLengthMinutes` | | New users | `NewUsers` | | Peak concurrent users | `PeakConcurrentUsers` | Each metric shows **Available** or **Not available** with Roblox's error. Availability appears after the first analytics sync. See [Roblox data in Bloxlytics](https://docs.bloxlytics.app/analytics/roblox-data) for where these appear. ## Troubleshooting Common Open Cloud failures, including 401 and 403 responses and keys that can't be confirmed, are covered in [Troubleshooting](https://docs.bloxlytics.app/help/troubleshooting#open-cloud). --- # Install the SDK > Add the Luau Analytics module to your experience, store its keys as experience secrets and confirm events are arriving with the SDK debugger. The Luau SDK is a server-side ModuleScript, `Analytics`, that sends player-level events from your game servers to Bloxlytics: sessions, server heartbeats, economy, purchases, funnels, progression, player properties, experiments and custom events. It's optional. Without it you still have [public data](https://docs.bloxlytics.app/data-sources#public-data) and anything [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) provides. This page is the walkthrough. For every option and function, see the [Luau SDK](https://docs.bloxlytics.app/sdk) tab, starting with [Installation](https://docs.bloxlytics.app/sdk/installation) and [Configuration](https://docs.bloxlytics.app/sdk/configuration). ## The SDK page Each project has an **SDK** page with everything the install needs, filled in for that project: | Section | What's in it | | --- | --- | | **Keys** | **Project ID** (the Universe ID), **API URL** (where servers send data), **Write key** and **Bridge key**, each with copy, reveal and rotate controls | | **Installation** | The steps below, with download buttons for **Analytics.luau** and **CmdrBridge.luau**, and snippets using this project's values | | **Debugger** | Live ingestion status and recent problems | | **Configuration** | Remote settings delivered to running servers; see [Remote configuration](https://docs.bloxlytics.app/sdk/remote-config) | > **Note:** Keys are visible to roles with the **Edit project settings and SDK keys** permission (owners, admins and developers by default). Each time someone views them, it's recorded in the audit log. Other roles see the project ID only. ## Install **1. Allow HTTP requests** In Studio, open **Game Settings → Security** and turn on **Allow HTTP Requests**, then publish. The SDK talks to Bloxlytics over HTTPS from the server; without this, every request fails. **2. Add the module** Download **Analytics.luau** from the **SDK** page and add it as a ModuleScript named `Analytics` in `ServerScriptService`. If you'll use Cmdr, download **CmdrBridge.luau** too and put it, as a ModuleScript named `CmdrBridge`, **inside** `Analytics` (next to it also works). See [Connect Cmdr](https://docs.bloxlytics.app/projects/connect-cmdr). > **Warning:** Keep the modules on the server. The SDK refuses to run on the client, and nothing should be placed in `ReplicatedStorage` or a LocalScript. **3. Store the keys** The **Installation** section offers two ways, under **Key storage**: **Experience secrets (recommended)** In Creator Hub, open your experience → **Secrets** and add: | Secret name | Value | | --- | --- | | `bloxlytics_write_key` | The project's **Write key** (`bxw_…`) | | `bloxlytics_bridge_key` | The project's **Bridge key** (`bxb_…`), only if you use Cmdr | Restrict each secret to the domain of the **API URL** on the **SDK** page. The SDK reads them with `HttpService:GetSecret` and passes them as Secret objects, so they never appear as plain strings in your place file. **Paste in script** Paste the keys from the **Keys** section into a server Script. Never put them in `ReplicatedStorage` or a LocalScript. This is simpler, but anyone with access to the place file can read the keys. **4. Start the SDK** Add a server Script, for example `ServerScriptService/BloxlyticsBoot`, and call `Analytics:Start` once. Copy the snippet from the **SDK** page: it already contains your **API URL**. ```luau ServerScriptService/BloxlyticsBoot.server.luau local HttpService = game:GetService("HttpService") local Analytics = require(game.ServerScriptService.Analytics) -- Optional: short facts shown on this server's card and searchable in Bloxlytics Analytics:SetServerTag("mode", "Classic") Analytics:Start({ -- No ProjectID needed: it's this experience's Universe ID, read from game.GameId. WriteKey = HttpService:GetSecret("bloxlytics_write_key"), ApiUrl = "", -- TrackInStudio = true, -- send analytics while testing in Studio }) ``` From here, joins, leaves, session length, server starts, heartbeats and stops, and game pass prompts are tracked automatically. `Start` never throws: if the configuration is wrong it prints one warning and the SDK stays off, so your game keeps running. **5. Publish and play** Publish the place and join a live server. The SDK sends its first batch within about 10 seconds (the default flush interval). > **Info:** Analytics is off in Studio unless you set `TrackInStudio = true`. Testing in a live server is the quickest way to see real data. ## Verify with the SDK debugger The **Debugger** on the **SDK** page refreshes every 10 seconds. Its status line reads **Receiving batches** when a batch arrived in the last two minutes, **Last batch …** if one arrived earlier, or **Waiting for the first batch**. | Field | What it tells you | | --- | --- | | **Accepted events** | Events stored | | **Rejected events** | Events refused, with their share of the total | | **Batches received** | Batches accepted for processing | | **Batches rejected** | Batches refused as a whole | | **Last batch** | When the latest batch arrived | | **SDK version** | The version of the module sending data | | **Last server** | The job ID of the server that sent the latest batch | | **First event** | When the project's first event arrived | **Recent problems** lists the latest rejections with their reasons, for example an unknown currency, a disabled tracking category, an invalid event name or a timestamp older than 30 days. People who can edit project settings can **Clear** the list. Problems are kept for 7 days, up to the latest 50. The **Integrations** page also shows the SDK's status under **In-game integrations**: **Receiving events** if an event arrived in the last 10 minutes, **Quiet** if not, or **No events yet**. > **Done:** Once **Accepted events** is climbing and **Recent problems** is empty, open **Realtime** to see your servers and the live event feed. If nothing arrives, check the server output for lines starting `[Bloxlytics]`. [Troubleshooting](https://docs.bloxlytics.app/help/troubleshooting#sdk-and-events) explains each warning. ## Track your game The **Installation** section includes snippets for the rest of the SDK. Each one has a full page in the SDK reference: | What | Functions | Reference | | --- | --- | --- | | Custom events and progression | `TrackEvent`, `TrackProgression` | [Custom events](https://docs.bloxlytics.app/sdk/custom-events) | | Funnels | `TrackFunnel` | [Custom events](https://docs.bloxlytics.app/sdk/custom-events) | | Economy | `TrackCurrencyEarned`, `TrackCurrencySpent`, `TrackBalance`, `TrackCurrencyTransfer` | [Economy](https://docs.bloxlytics.app/sdk/economy) | | Purchases | `WrapProcessReceipt`, `SetProductNames` | [Purchases](https://docs.bloxlytics.app/sdk/purchases) | | Player properties and roles | `SetPlayerProperties`, `SetPlayerRole` | [Reference](https://docs.bloxlytics.app/sdk/reference) | | Experiments | `GetVariant` | [Experiments](https://docs.bloxlytics.app/sdk/experiments) | > **Warning:** Call economy and purchase functions only from server code that decides the amounts itself. Never pass through amounts a client sent in a RemoteEvent. ## Keys and rotation The **Write key** can only submit events for this project. The **Bridge key** lets a server receive commands, so treat it as more sensitive. To rotate a key, choose its rotate button and confirm **Rotate key**. The old key stops working immediately: servers still using it have their events rejected (write key) or lose the command bridge (bridge key) until you update the key, or the experience secret, and the servers restart. See [Project settings](https://docs.bloxlytics.app/projects/settings#sdk-keys). ## Next steps - [Connect Cmdr](https://docs.bloxlytics.app/projects/connect-cmdr): Run your commands from Bloxlytics. - [Remote configuration](https://docs.bloxlytics.app/sdk/remote-config): Tracking switches, batching and currencies. - [Automatic events](https://docs.bloxlytics.app/sdk/automatic-events): What the SDK tracks without any code. --- # Connect Cmdr > Let permitted team members run your game's registered Cmdr commands and macros on live servers from Bloxlytics, through the CmdrBridge module. If your game uses [Cmdr](https://eryn.io/Cmdr/), the `CmdrBridge` module lets people on your team run its registered commands on live servers from Bloxlytics, singly in the **Macro Runner** console or as saved [macros](https://docs.bloxlytics.app/operations/macros). It also powers kicks and warnings from [Player Lookup](https://docs.bloxlytics.app/operations/player-lookup). The bridge never runs code sent from the website. It only runs commands your game has registered with Cmdr, through Cmdr's own dispatcher, after your game's group checks and `BeforeRun` hooks. This page is the overview. The full option list, protocol and security model are in the SDK tab: [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge), [Bridge security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security) and [Bridge reference](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference). ## How it works Bloxlytics never connects into Roblox. Each game server running the bridge reaches out instead: 1. **Register.** About 3 seconds after start-up, the server sends Bloxlytics its Cmdr command catalogue (names, aliases, groups and arguments), and re-sends it every 5 minutes. 2. **Listen.** The server keeps a request open to Bloxlytics for up to 20 seconds at a time, reporting which players are online. Commands for a player go to the server they're in. 3. **Run.** Each command is checked (not expired, not already run, group allowed), parsed and validated by Cmdr, passed through your `BeforeRun` hooks, and only then executed. 4. **Report.** The result goes back once, from that server only. Commands expire if no server picks them up within 60 seconds. Every request carries the project's bridge key, a timestamp and a single-use nonce, so a captured request can't be replayed. ## Before you start - The [analytics SDK](https://docs.bloxlytics.app/projects/install-the-sdk) installed (the bridge is started by the same `Analytics:Start` call), or the bridge started on its own with `CmdrBridge:Init`. - Cmdr set up on the server, and the server Cmdr module available to your boot script. - A `BeforeRun` hook. Outside Studio, Cmdr blocks every command when no `BeforeRun` hook exists, and the bridge respects that. ## Connect **1. Add the CmdrBridge module** Download **CmdrBridge.luau** from the project's **SDK** page and add it as a ModuleScript named `CmdrBridge` inside your `Analytics` module (or next to it). **2. Store the bridge key** Add the **Bridge key** (`bxb_…`) as an experience secret named `bloxlytics_bridge_key`, restricted to the domain of the **API URL** on the **SDK** page. See [Install the SDK](https://docs.bloxlytics.app/projects/install-the-sdk#install). **3. Pass Cmdr to Start** ```luau ServerScriptService/BloxlyticsBoot.server.luau local HttpService = game:GetService("HttpService") local Cmdr = require(game.ServerScriptService.Cmdr) -- your server Cmdr module local Analytics = require(game.ServerScriptService.Analytics) Analytics:Start({ WriteKey = HttpService:GetSecret("bloxlytics_write_key"), ApiUrl = "", Cmdr = Cmdr, BridgeKey = HttpService:GetSecret("bloxlytics_bridge_key"), AllowedGroups = { "Admin", "DefaultAdmin" }, -- Cmdr groups Bloxlytics may run OnWarn = function(player, message) -- show the warning with your own UI end, }) ``` `AllowedGroups` is optional: leave it out to allow every group (your hooks still apply). `OnWarn` enables warnings and `OnAnnounce` enables announcements; kicks are on unless you set `AllowKick = false`. **4. Allow Bloxlytics in your BeforeRun hook** ```luau local CmdrBridge = require(game.ServerScriptService.Analytics.CmdrBridge) Cmdr.Registry:RegisterHook("BeforeRun", function(context) if CmdrBridge.IsPlatformContext(context) then -- context.Data.Bloxlytics = { Id, Name, Role, ExecutionId } return nil -- Bloxlytics already checked the sender's role and permissions end -- your existing in-game permission checks end) ``` `IsPlatformContext` is true only for commands Bloxlytics runs in the [system context](#who-a-command-runs-as). Commands that run as the sender's own player go through your normal checks unchanged. **5. Publish and check it's online** Publish and start a live server. Then check: - **Integrations → In-game integrations → Cmdr bridge** shows how many servers are online with the bridge. - **Macro Runner** shows *N servers with the bridge online* in its header, and the **Commands** tab lists your registered commands. - Try a harmless command in the **Console** tab. ## Who a command runs as Everyone signs in to Bloxlytics with Roblox, so Bloxlytics knows each team member's Roblox account. | Context | When | Effect | | --- | --- | --- | | **As the sender's player** | The team member who sends the command is in the target server. Bloxlytics prefers the server they're in. | `context.Executor` is their `Player`. Your hooks and Cmdr permissions apply exactly as if they'd typed it in-game. | | **As the system** | Otherwise | `Executor` is `nil` and `context.Data.Bloxlytics` identifies the sender. Allow it with `IsPlatformContext`, or refuse it entirely with `AllowSystemCommands = false`. | Bloxlytics records which context each command actually used. ## Controls in Bloxlytics The **Configuration** section on the project's **SDK** page has two bridge settings. Servers pick up changes within 5 minutes. | Setting | What it does | | --- | --- | | **Cmdr bridge** | When off, servers register but no commands or macros are dispatched. Servers that start while it's off don't listen for commands until they restart. | | **Cmdr groups per role** | Optionally limit which Cmdr groups the **Owner**, **Admin** and **Developer** roles may run from Bloxlytics. Empty means every group the bridge allows. Analysts and viewers with command access use the developer list. Groups reported by your servers are listed underneath. | These sit on top of your in-game `AllowedGroups` and `BeforeRun` hooks; they never widen them. Permissions decide who can do what: | Permission | Allows | | --- | --- | | **View registered Cmdr commands and history** | See the **Macro Runner**, its command catalogue and history | | **Execute Cmdr commands** | Run commands, and run macros for real | | **Create and edit macros** | Build and change macros | | **Run macros** | Run macros (dry runs only, without **Execute Cmdr commands**) | | **Kick, warn, ban and unban players** | Kick and warn through the bridge | Owners, admins and developers have all of these by default. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). ## Testing in Studio The bridge runs in Studio by default, unlike analytics. Each Studio session gets its own server key, such as `studio-1a2b3c4d`, printed in the output. Studio sessions are marked as such and are only used when you pick them explicitly as the target server. Set `EnableBridgeInStudio = false` in `Analytics:Start` to turn this off. ## If it doesn't connect See [Troubleshooting](https://docs.bloxlytics.app/help/troubleshooting#cmdr-bridge) for the warnings the bridge prints and what each one means. --- # Project settings > Everything you can change about a project, from its name, places and time zone to SDK keys, remote configuration, Open Cloud and deleting it. A project's settings are spread over three pages in the **Project** group of the sidebar: | Page | What's on it | | --- | --- | | **Settings** | Name, description, icon, place IDs, time zone, project details, and deleting the project | | **Integrations** | The linked experience, the [Open Cloud connection](https://docs.bloxlytics.app/projects/open-cloud) and its sync, and the status of the SDK and Cmdr bridge | | **SDK** | Keys, install snippets, the SDK debugger, and remote configuration | Everyone who can view the project can open all three. Changing anything needs a permission, listed with each setting below. ## Settings page ### General | Field | Rules | What it's for | | --- | --- | --- | | **Name** | Required, up to 60 characters | How the project appears in Bloxlytics. Starts as the experience's name on Roblox, but doesn't follow later renames. | | **Description** | Optional, up to 300 characters | Shown under the name in the workspace's project list. | | **Icon URL** | Optional, a URL | The project's icon. Filled automatically from Roblox when the project is created and when you connect Open Cloud. | | **Place IDs** | Optional, up to 50 positive whole numbers, separated by commas | A record of the places in this universe. The root place is added on connection. | | **Time zone** | Any IANA time zone, such as `Europe/London` | Used for display. Analytics buckets are stored in UTC. | **Save changes** saves the form; **Discard changes** puts back what was saved. Both are only active when something has changed. > **Note:** Editing needs the **Edit project settings and SDK keys** permission (owners, admins and developers by default). Without it, the page shows your role and that you can view but not change the settings. > **Info:** You don't need to list places for their data to arrive. Every place in the experience shares its Universe ID, so all of them report to this project automatically. To compare places, break down or filter by **place** in [Explore](https://docs.bloxlytics.app/analytics/explore) and dashboards. ### Details Read-only facts about the project: | Item | Shows | | --- | --- | | **Project ID** | The experience's Universe ID, with a copy button | | **Root place** | The experience's start place | | **Workspace** | The workspace the project belongs to | | **Created** | When the project was created | | **Your role** | Your role in the workspace | The project ID can't be changed: it *is* the experience. To track a different experience, [add it](https://docs.bloxlytics.app/projects/add-an-experience) as its own project. ### Delete a project The **Danger zone** section appears for people with the **Delete projects** permission (owners and admins by default). Choose **Delete project**, type the project's name to confirm, and choose **Delete project** again. Deleting a project: - stops ingestion immediately: its write and bridge keys stop working, so game servers can no longer send events and the Cmdr bridge stops accepting commands; - deletes the project, its settings, its stored Open Cloud key, and its dashboards, funnels, segments, experiments, alerts and macros; - deletes all its collected analytics: SDK events and everything derived from them, public data history and imported Roblox analytics. This runs in the background and finishes shortly afterwards. > **Danger:** Deletion can't be undone. The experience can be added again, by anyone who controls it, but always as a new, empty project: nothing from the deleted project carries over. The deletion is recorded in the workspace's [audit log](https://docs.bloxlytics.app/workspaces/audit-log). It doesn't remove anything on Roblox: your DataStores, bans and Open Cloud key on Roblox are untouched. Revoke the key in Creator Hub if you no longer need it, and remove the SDK from your game. ### Moving a project Projects can't be moved or transferred between workspaces. If you want a project in an organisation instead of your personal workspace, delete it and add the experience again in the organisation; its data doesn't carry over. To hand a whole workspace to someone else, [transfer the workspace's ownership](https://docs.bloxlytics.app/workspaces/overview) instead. ## SDK keys The **Keys** section of the **SDK** page holds the values the Luau modules need: | Item | What it is | | --- | --- | | **Project ID** | The Universe ID. The SDK reads it from `game.GameId`, so you don't normally set it. | | **API URL** | Where game servers send data | | **Write key** | `bxw_…`. The analytics SDK's key. It can only submit events. | | **Bridge key** | `bxb_…`. The Cmdr bridge's key. It receives commands. | Both keys are hidden until you reveal them, and each has a copy button. Viewing the keys needs **Edit project settings and SDK keys**, and is recorded in the audit log. ### Rotate a key Choose the rotate button next to a key, then **Rotate key** in the confirmation. A new key is generated and shown straight away. > **Warning:** The old key stops working immediately. Running servers using the old write key have their events rejected, and servers using the old bridge key lose the command bridge, until you update the key (or the experience secret) and the servers restart. To rotate with as little loss as possible: 1. Rotate the key. 2. Update the `bloxlytics_write_key` or `bloxlytics_bridge_key` experience secret in Creator Hub (or the key in your script, and publish). 3. Restart your servers so they start with the new key. Rotate the write key if it leaks; it can only add events, so the impact is low. Rotate the bridge key immediately if it leaks, then check the command history in the **Macro Runner**. Rotations are recorded in the audit log. See [Security and privacy](https://docs.bloxlytics.app/security#reporting-issues). ## Remote configuration The **Configuration** section of the **SDK** page holds settings delivered to running servers. Servers apply changes within 5 minutes of **Save configuration**. Editing needs **Edit project settings and SDK keys**. | Setting | Default | Notes | | --- | --- | --- | | **Sessions**, **Economy**, **Purchases**, **Custom events** | All on | Tracking switches. Events in a category that's off are rejected and listed in the debugger. | | **Flush interval (seconds)** | 10 | 2 to 60. Lower means fresher realtime data and more HTTP requests. | | **Maximum batch size** | 200 | 10 to 500 events per request. | | **Currencies** | None | Up to 20, each with a key and a label. Once at least one is defined, economy events for other currencies are rejected. Keys must be unique. | | **Blocked events** | None | Custom event names to drop on arrival, one per line, up to 100. | | **Player banners** | None | Up to 20 rules: when a game-reported property equals a value, show a banner with a label (up to 24 characters) and a tone. | | **Cmdr bridge** | On | When off, servers register but no commands or macros are dispatched. | | **Cmdr groups per role** | All groups | Limits the Cmdr groups the **Owner**, **Admin** and **Developer** roles may run. | [Remote configuration](https://docs.bloxlytics.app/sdk/remote-config) in the SDK tab explains each setting in depth. ## Open Cloud The **Roblox Open Cloud** section of the **Integrations** page is where you connect, re-validate, replace and disconnect the project's API key, turn **Automatic sync** on or off, choose **Sync now** or **Import full history**, and read the sync history. All of these need **Manage Roblox Open Cloud credentials** (owners and admins by default). See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). ## Permissions at a glance | Action | Permission | Default roles | | --- | --- | --- | | View settings, integrations and the SDK page | **View analytics** | Everyone | | Edit general settings, view and rotate keys, change remote configuration, clear debugger problems | **Edit project settings and SDK keys** | Owner, admin, developer | | Connect, replace or disconnect Open Cloud; control sync | **Manage Roblox Open Cloud credentials** | Owner, admin | | Delete the project | **Delete projects** | Owner, admin | Workspace owners and admins can change these per role. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). --- # Overview > The project's home screen — headline KPIs with comparisons and sparklines, activity charts, insights and Roblox's own numbers side by side. **Overview** is the first screen in a project's **Analytics** section. It answers "how is the game doing?" for the date range you pick: how many people played, how long they stayed, whether new players came back, and how much they spent. Every number is labelled with where it came from, so figures the SDK collected are never mixed up with figures Roblox reported. The screen has two layouts, chosen automatically: - **With the SDK** — once your game has sent its first event, you get the full layout described on most of this page: insights, the KPI strip, seven charts and a **Reported by Roblox** section. - **Without the SDK** — a project that has only its Universe ID (and perhaps Open Cloud) shows Roblox's public counters and Roblox's daily analytics instead. See [Without the SDK](#without-the-sdk). > **Data needed:** | Part of the screen | Needs | > | --- | --- | > | KPI strip, charts, insights | The [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk) sending [automatic events](https://docs.bloxlytics.app/sdk/automatic-events) (sessions, server heartbeats). Revenue KPIs also need [purchase tracking](https://docs.bloxlytics.app/sdk/purchases). | > | **Peak CCU** and **Concurrent players** | Roblox's public player count (every project) or, failing that, SDK server heartbeats | > | **Reported by Roblox** → public row | Nothing beyond the Universe ID | > | **Reported by Roblox** → daily charts | [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) with the `universe.analytics:read` scope | ## Date range and comparison period Use the date range button in the page header. The presets are **Today**, **Yesterday**, **Last 7 days**, **Last 30 days**, **Last 90 days** and **Last 12 months**; under **Custom range** pick a **From** and **To** date and select **Apply**. Overview defaults to **Last 7 days**. The choice is kept in the page address, so a link you share opens on the same range. All ranges are whole UTC days: | Preset | Covers | | --- | --- | | **Today** | Midnight UTC today until midnight tonight | | **Yesterday** | The previous UTC day | | **Last 7 days** | Today and the 6 days before it | | **Last 30 days** | Today and the 29 days before it | | **Last 90 days** | Today and the 89 days before it | | **Last 12 months** | Today and the 364 days before it | | **Custom range** | From the start of the **From** day to the end of the **To** day | The **comparison period** is the stretch of the same length immediately before the range. For **Last 7 days** that's the 7 days before those; for **Yesterday** it's the day before yesterday. Ranges of two days or less are charted **by hour**; longer ranges are charted **by day**. ## KPI strip Each KPI tile shows the value for the range, the change against the comparison period, and a sparkline of the value over the range. - The change is `(current − previous) ÷ previous`, shown as a percentage with an up or down arrow. Green means up and red means down; changes under 0.5% show as a grey **0%**. - When there's nothing to compare with (the previous value is empty, or zero while the current one isn't) the tile says **No comparison**. - Hover the info icon next to a label for its definition and source. Choose which tiles to show with **Metrics** in the header: tick or untick each one under **Show metrics**, or use **Show all**. The selection is remembered per project in your browser, so it doesn't change what teammates see. ### Metric definitions "Active" below means the player had at least one event with their user ID on that UTC day — joining, leaving, a custom event, an economy event, anything. Server-only events (heartbeats, server start and stop) don't make anyone active. | KPI | Source | How it's calculated | Sparkline | | --- | --- | --- | --- | | **DAU** | SDK | Distinct active players on each day of the range, averaged over the days that had any players | Distinct players per day (per hour for short ranges) | | **WAU** | SDK | Distinct players active in the 7 days ending at the end of the range | Rolling 7-day distinct players, per day | | **MAU** | SDK | Distinct players active in the 30 days ending at the end of the range | Rolling 30-day distinct players, per day | | **Peak CCU** | SDK or Roblox | Highest concurrent-player sample in the range (see [Concurrent players](#concurrent-players)) | Highest sample per bucket | | **New players** | SDK | Players whose first ever event falls in the range | New players per bucket | | **Returning players** | SDK | Distinct players active in the range minus **New players** | Active minus new, per bucket | | **Avg session** | SDK | Mean length of completed sessions that started in the range | Mean per bucket | | **Sessions** | SDK | Sessions started in the range, including ones still in progress | Sessions per bucket | | **D1 retention** | Computed | See [Retention KPIs](#retention-kpis) | D1 rate per acquisition day | | **D7 retention** | Computed | As D1, seven days after the first session | None | | **D30 retention** | Computed | As D1, thirty days after the first session | None | | **Revenue** | SDK | Robux from completed purchases recorded by the SDK in the range | Robux per bucket | | **ARPU** | Computed | **Revenue** ÷ distinct active players in the range | Revenue ÷ active players, per bucket | | **Paying players** | Computed | Distinct players with a completed purchase ÷ distinct active players in the range | Paying ÷ active, per bucket | > **Note:** **WAU** and **MAU** always look at the 7 or 30 days ending with the range, whatever its length, and compare against the 7 or 30 days before that — not against the comparison period. Their sparklines need a range charted by day; with **Today** or **Yesterday** they have none. A session is completed when the SDK sends the player's leave event; its length is the time between joining and leaving as measured by the game server. Sessions still open (or cut off without a leave event) count towards **Sessions** but not **Avg session**. If no session completed in the range, **Avg session** shows a dash rather than zero. Revenue only includes purchases the SDK saw complete in your game. For what counts as completed, see [Monetisation](https://docs.bloxlytics.app/analytics/monetisation#how-purchases-are-recorded). Roblox's own revenue figure is shown separately in [Reported by Roblox](#reported-by-roblox). ### Retention KPIs **D1**, **D7** and **D30 retention** answer "of the players who joined, what share came back exactly N days later?". A player is in the cohort for the UTC day of their first event, and counts as retained if they were active on day N after it (day 1 is the next UTC day). On Overview the rate is measured **inside the range**: it uses the cohorts whose day N falls in the range and has already finished. For D7 over **Last 30 days**, that's players who joined between 37 and 7 days before the end of the range. Cohorts whose day N is today or later are left out. If no cohort qualifies — for example D30 over **Last 7 days** for a game that started tracking last week — the tile shows a dash; Bloxlytics never estimates a value. The D1 sparkline is the D1 rate for each acquisition day in the range, blank for days too recent to measure. For full cohort tables up to D90, see [Retention](https://docs.bloxlytics.app/analytics/retention). ## Charts Every chart has a **Show as table** button that swaps the chart for its underlying numbers (and **Show chart** to switch back). | Chart | What it shows | | --- | --- | | **Player activity** | Distinct active players per day (or hour). Switch the **Current** / **Compare** control to **Compare** to overlay the comparison period. | | **New vs returning players** | Stacked bars: new players and returning players (active minus new) per bucket | | **Concurrent players** | Highest concurrent-player sample per bucket | | **Session length** | Completed sessions that started in the range, grouped as **< 1m**, **1–5m**, **5–10m**, **10–20m**, **20–30m**, **30–60m**, **1–2h** and **2h+** | | **D1 retention by cohort** | D1 rate per acquisition day. Needs a range charted by day; **Cohorts** opens [Retention](https://docs.bloxlytics.app/analytics/retention). | | **Revenue** | SDK-recorded Robux per bucket | | **Purchase conversion** | Distinct paying players ÷ distinct active players, per bucket | ### Concurrent players Bloxlytics records a concurrent-player sample every minute from two places: - **Roblox's public player count** for the experience, sampled for every project. - **SDK server heartbeats**: the sum of players reported by every live game server. A chart or KPI never mixes the two. For any window, if at least one Roblox sample exists in it, Roblox's count is used; otherwise the heartbeat total is. Because Roblox's count is sampled for every project, it's normally the one you see. The [Realtime](https://docs.bloxlytics.app/analytics/realtime) screen says which source it's using. ## Insights When there's something worth knowing, an **Insights** panel appears above the KPIs. Each insight is one sentence with the before-and-after numbers, and links to the screen where you can dig in. The panel shows three at a time with **Show N more**, and says when it was last updated; results are reused for five minutes. Insights compare the last 7 complete UTC days with the 7 days before, and only appear when the sample is large enough — for example, a change in D1 retention needs at least 50 new players in both weeks and a change of at least 5%. Other insights cover session length, weekly active players, revenue, product conversion, funnel drop-off, currency inflation, and a gap of more than 10 minutes with no events from a game that was sending them in the last day. The thresholds for each are listed in [Insights](https://docs.bloxlytics.app/analytics/insights). ## Reported by Roblox Below the charts, **Reported by Roblox** shows Roblox's own numbers for the experience. They're kept separate on purpose: Roblox counts things the SDK can't see (players on servers without the SDK, purchases outside the experience), and defines its metrics in its own way. The section has two parts: - **A row of public counters** — **Playing now**, **Total visits** (with the increase in the range when known), **Favourites** and **Like ratio**. These come from Roblox's public data and work for every project. - **Daily analytics charts** — one chart per Roblox metric that's available for your experience, from Roblox's Analytics API through Open Cloud. Metrics Roblox doesn't provide for your experience are listed as **Not available from Roblox for this experience**. The section refreshes every minute. How each number is collected, and what's unsupported, is in [Roblox-reported data](https://docs.bloxlytics.app/analytics/roblox-data). ## Without the SDK Until your game sends its first event, Overview shows a note — **Showing Roblox-reported data** — with **Set up the SDK**, followed by: - Six KPIs from Roblox's public data: **Playing now**, **Peak CCU**, **Visits in range**, **Total visits**, **Favourites** and **Like ratio**. - **Concurrent players** and **Visits** charts for the range. - A **Roblox analytics** section with Roblox's daily metrics, if Open Cloud is connected with `universe.analytics:read`. Otherwise it links to **Connect Open Cloud**. These are defined in [Roblox-reported data](https://docs.bloxlytics.app/analytics/roblox-data#public-data). Installing the SDK switches the screen to the full layout as soon as the first batch of events arrives. ## Related - [Retention](https://docs.bloxlytics.app/analytics/retention): Cohort tables from D1 to D90 and churn analysis. - [Dashboards](https://docs.bloxlytics.app/analytics/dashboards): Pin the same metrics to your own dashboard and share it. - [Alerts](https://docs.bloxlytics.app/analytics/alerts): Get told when CCU, retention or revenue moves. --- # Realtime > Players online, live game servers, events per second and a filterable live event feed, updated as your game servers report in. **Realtime** shows what's happening in your experience right now: how many people are playing, which servers are up, how fast events are arriving and a live feed of what players are doing. It doesn't use the date range — everything is "now", "the last hour" or "the last 30 minutes". The status dot next to the title shows the live connection: **Live** when connected, **Connecting** while it opens and **Reconnecting** after a drop. The page reconnects on its own, waiting a little longer after each failed attempt (up to 30 seconds). The numbers at the top also refresh every 15 seconds regardless. > **Data needed:** | Part of the screen | Needs | > | --- | --- | > | **Players online** / **Playing now** and the concurrent players chart | Nothing — Roblox's public player count is sampled for every project. SDK server heartbeats are the fallback. | > | **Active servers**, **Servers** table | The SDK's server heartbeats ([automatic events](https://docs.bloxlytics.app/sdk/automatic-events)) | > | **Joined**, **Left**, **Avg session** | The SDK's session events | > | **Purchases · 30 min** | [Purchase tracking](https://docs.bloxlytics.app/sdk/purchases) | > | **Events per second**, **Live activity** | Any SDK events | > | **Cmdr bridge** column | The [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge) | ## Without the SDK If the project has no SDK events and no live servers, Realtime shows only Roblox's public count: - **Playing now** — Roblox's official concurrent player count, sampled every minute. - **Peak · last hour** — the highest sample in the last 60 minutes. - **Concurrent players · last hour** — the samples as a chart. Below them, **Live servers and activity need the SDK** explains what installing the [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk) adds. ## KPIs With the SDK, six KPIs run across the top. | KPI | Definition | | --- | --- | | **Players online** | Roblox's official count when Roblox has been sampled in the last hour; otherwise the sum of players reported by live server heartbeats. Hover the info icon to see which, and — when Roblox's count is shown — what heartbeats report. | | **Active servers** | Game servers that sent a heartbeat in the last 90 seconds | | **Joined · 30 min** | Session starts in the last 30 minutes | | **Left · 30 min** | Session ends in the last 30 minutes | | **Purchases · 30 min** | Completed purchases in the last 30 minutes; the tooltip shows their Robux total | | **Avg session · 30 min** | Mean length of sessions that ended in the last 30 minutes | The 30-minute figures are based on when the events happened in the game, so a batch that arrives late still lands in the right window. > **Note:** Roblox's count and the heartbeat total can differ. Roblox counts every player in the experience, including servers that don't run the SDK (for example, places where you haven't installed it). Heartbeats only count servers running the SDK, and only as often as each server reports. ## Concurrent players · last hour The chart plots the minute-by-minute samples for the last 60 minutes from one source — Roblox's count if it has any samples in that hour, heartbeat totals otherwise. When the chart is on heartbeat totals, the newest minute is added as soon as it's sampled, without waiting for the next refresh. ## Events per second **Events per second** counts events from your game as Bloxlytics accepts them, second by second, for the last minute. The large number is the average over the last 10 seconds; the line underneath gives the peak in the last minute, and the sparkline runs from **60 s ago** to **Now**. Game servers send events in batches — by default every 10 seconds, or sooner when the queue fills (see [Delivery](https://docs.bloxlytics.app/sdk/delivery)) — so the line is naturally spiky: a quiet second followed by a burst is normal. Server heartbeats are included in this count. ## Servers **Servers** lists every game server that sent a heartbeat in the last 90 seconds, busiest first. The SDK sends a heartbeat every 30 seconds with the server's player count, maximum players, the user IDs of the players in it, its server tags and whether the Cmdr bridge is active. | Column | Shows | | --- | --- | | **Server** | The first 8 characters of the job ID, a copy button for the full ID, and a **Studio** badge for Roblox Studio sessions | | **Tags** | Tags set with `Analytics:SetServerTag` (see the [SDK reference](https://docs.bloxlytics.app/sdk/reference)). Select a tag to search for servers with that value. | | **Place** | The place ID the server is running | | **Players** | Players on the server, and the maximum when known (`12 / 20`) | | **Cmdr bridge** | **Connected** or **Not installed**. A lock icon means the bridge only runs commands as a team member's own player in that server (`AllowSystemCommands = false`). | | **Uptime** | Time since the server started | Use **Search tags or job id** to narrow the list; searching for `studio` finds Studio sessions. Select a row, or its **Filter feed** button, to show only that server's events in the live feed; select it again to clear the filter. ### How live servers and presence work - A server appears when its first heartbeat (or its start event) arrives and counts as live while its last heartbeat is under 90 seconds old. A server that shuts down normally reports its stop and disappears straight away; one that vanishes without warning drops off after 90 seconds. - Each heartbeat carries the server's player list. Bloxlytics uses it to know which server each player is on: a player is "online" while a live server lists them. When a player joins, they're placed on that server straight away; when they leave (or disappear from the next heartbeat) they're removed. - The same presence information drives the **Online now** filter on [Players](https://docs.bloxlytics.app/analytics/players), the online status on player profiles, **Join server** and routing [commands](https://docs.bloxlytics.app/operations/commands) to the right server. ## Live activity **Live activity** is a feed of events, newest first. When you open the page it loads up to 100 recent events from the last 7 days that match your filters, then adds new events as game servers send them. Server heartbeats and balance snapshots are left out because they would drown everything else. | Column | Shows | | --- | --- | | **Time** | When the event happened | | **Player** | The player's name (or user ID), linking to their profile; **Server** for events with no player | | **Event** | The event's label, with a **Custom** badge for your own events. Select it to filter by that event. | | **Details** | A one-line summary of the properties — for example `+50 Coins · Quest (Daily)` for currency earned, or `Completed · VIP Pass · R$ 199` for a purchase | | **Server** | The first 8 characters of the server's job ID. Select it to filter by that server. | The feed keeps the latest 300 events. Beyond that, use the filters or the [Events](https://docs.bloxlytics.app/analytics/events) explorer for older history. **Pause** freezes the feed so you can read it; new matching events are held, and **Resume (N new)** adds them back on top. ### Filters Filters apply both to the events loaded when you open the page and to new events as they arrive. They're kept in the page address, so you can share a filtered feed. | Filter | Matches | | --- | --- | | **Player name or user id** | A number matches that exact user ID. Text matches players whose name contains it, ignoring case. Press Enter or leave the field to apply. | | **All events** | One event name. The list is built from the events currently in the feed. | | **All servers** | One live server | | **Property** = **Value** | Events where that property equals the value exactly (compared as text). Select **Apply**. | **Clear filters** removes them all. > **Note:** For events already loaded, a name filter matches the player's username or display name. For new events arriving live, it matches the username only. ## Related - [Automatic events](https://docs.bloxlytics.app/sdk/automatic-events): Sessions and server heartbeats the SDK sends for you. - [Players](https://docs.bloxlytics.app/analytics/players): Everyone the SDK has recorded, with an **Online now** filter. - [Commands](https://docs.bloxlytics.app/operations/commands): Run Cmdr commands on a live server. --- # Retention > Cohort retention from D1 to D90 by the day players joined, plus churn analysis you can drill into and save as segments. **Retention** shows how many players come back after their first session, grouped by the day they joined. It has three parts: an **Average retention curve** with a **Summary**, the **Cohorts** table, and **Churn** — a breakdown of the ways new players leave, each one a list of real players you can open or save as a segment. > **Data needed:** Cohorts and churn need the [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk). Activity comes from any event with a player attached, so the [automatic session events](https://docs.bloxlytics.app/sdk/automatic-events) are enough for the cohort table. The churn groups also use: > > - **Never finished tutorial** — a funnel step sent with `Analytics:TrackFunnel` (see [Custom events](https://docs.bloxlytics.app/sdk/custom-events)). > - **Never purchased** — [purchase tracking](https://docs.bloxlytics.app/sdk/purchases). > > Without the SDK, the screen shows Roblox's own D1, D7 and D30 retention instead, which needs [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) with `universe.analytics:read`. See [Without the SDK](#without-the-sdk). ## Definitions | Term | Meaning | | --- | --- | | **Cohort** | All players whose first ever event falls on the same UTC day. That day is the cohort's acquisition day. | | **Active** | The player sent at least one event with their user ID that UTC day — joining, leaving, a custom event, an economy event, anything. Server-only events don't count. | | **Returned on day N (DN)** | The player was active on exactly the Nth UTC day after their acquisition day. Day 1 is the next calendar day, not 24 hours later. | | **DN retention** | Players in the cohort who returned on day N ÷ players in the cohort | Retention here is "returned on day N", not "returned on day N or later". A player who plays on day 1 and day 9 counts towards D1 but not D7. Each column is measured independently, so D7 can be higher than D3 for a game with a weekly event. > **Note:** Days are UTC. A player who joins at 23:50 UTC and plays again at 00:10 counts as returning on day 1. ## Date range and segment The date range picks **which cohorts** to show: players whose first session falls in the range. It defaults to **Last 30 days**. Returns are counted whenever they happen, even after the end of the range, so a D30 cell for a cohort in last month's range is filled in once day 30 has passed. The **All players** menu next to the date range limits the cohorts to one [segment](https://docs.bloxlytics.app/analytics/segments). The segment applies to the retention curve, summary and cohort table; the churn section always covers every player. ## Average retention curve and summary **Average retention curve** is a bar per day — **D1**, **D3**, **D7**, **D14**, **D30**, **D60**, **D90** — showing the average across every cohort in the range that's old enough to measure. The average is weighted by cohort size, so a day with 2,000 new players counts for more than a day with 20. Days no cohort can measure yet are left off the chart. **Summary** shows **New players in range** (the total size of the cohorts), the average **D1**, **D7** and **D30 retention**, and the number of **Cohorts**. ## Cohorts table One row per acquisition day, newest first, with an **Average** row on top. | Column | Shows | | --- | --- | | **Cohort** | The acquisition day | | **Players** | Players who joined that day | | **D1** … **D90** | The share of them active on day 1, 3, 7, 14, 30, 60 and 90 | Cells are shaded relative to the highest value in the table — darker is higher. Hover a cell for the exact figure, such as "34.2% of 812 players returned on day 7". A dot (**·**) marks a cell that can't be measured yet because day N hasn't finished: a cohort from 5 days ago shows D1 and D3 but dots from D7 onwards. Bloxlytics never estimates these cells. A cell of **0%** means day N has passed and nobody from that cohort came back. ## Churn **Churn** looks at players whose first session was in the selected range and sorts them into six groups. A player can be in several groups at once. Each tile shows the group as a share of those players, with the count beside it. | Group | A player is in it when | | --- | --- | | **Inactive N+ days** | Their last event was more than N days ago (N is **Churned after**, default 7) | | **Left within N min** | Their first completed session was shorter than the early-exit threshold (default 5 minutes) | | **Never finished tutorial** | They never reached the tutorial completion step (default `Tutorial → Completed`) | | **Never purchased** | They have no completed purchase | | **Only one session** | They've started one session at most | | **Never returned** | They've had one session at most and their last event was on an earlier UTC day than today | "Now" for the inactive and never-returned groups is the moment you load the page, not the end of the range. ### Change the churn definition Select **Definition** to adjust three settings, then **Apply**: | Setting | Allowed | Default | | --- | --- | --- | | **Churned after (days inactive)** | 1–90 | 7 | | **Early exit (first session under, minutes)** | 1–60 | 5 | | **Tutorial completed when** | Any funnel step your game has reported with `TrackFunnel` | `Tutorial → Completed` | The settings are kept in the page address, so a link you share opens with the same definition. They don't change anything for other people. ### Time before leaving A histogram of first-session length for players who joined in the range and played only one session, in buckets **< 1m**, **1–5m**, **5–15m**, **15–30m**, **30–60m** and **1h+**. A tall bar on the left usually points at the first minute of the game — loading, the spawn area or the first prompt. ### Last event before churning The ten most common final events of players in the **Inactive N+ days** group, with each one's share. Session ends, server heartbeats and balance snapshots are skipped, so you see the last thing a player actually did. Funnel steps appear as `Funnel → Step`. ## Drill into a group Select any churn tile (**View players**) to open the players in that group. The dialog shows how many there are and lists the 200 most recently active, with **First joined**, **Last seen**, **Sessions** and **Playtime**; select a player to open their profile. **Save as segment** saves everyone in the group — up to 5,000 players — as a static segment named after the group and range, for example "Inactive 7+ days (30d)". You can then target them with [experiments](https://docs.bloxlytics.app/analytics/experiments), filter dashboards by them, or compare them in [Segments](https://docs.bloxlytics.app/analytics/segments). | Action | Permission | | --- | --- | | View retention and churn | `analytics.view` | | **View players** in a churn group | `analytics.view` and `players.view` | | **Save as segment** | `analytics.configure` | See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions) for which roles have these. ## Without the SDK Until your game sends SDK events, **Retention** shows **Retention reported by Roblox**: Roblox's daily D1, D7 and D30 retention from its Analytics API — the share of a day's new players who returned 1, 7 and 30 days later. It defaults to **Last 30 days**; **Today** and **Yesterday** show the last 7 days, because Roblox reports whole days. Roblox's figures follow Roblox's own definitions and include every player, not just those on servers running the SDK. Cohort tables and churn analysis need the SDK. See [Roblox-reported data](https://docs.bloxlytics.app/analytics/roblox-data). ## Retention elsewhere - [Overview](https://docs.bloxlytics.app/analytics/overview#retention-kpis) shows D1, D7 and D30 KPIs measured inside the selected range. - [Insights](https://docs.bloxlytics.app/analytics/insights) flags week-on-week changes in D1 retention. - [Alerts](https://docs.bloxlytics.app/analytics/alerts) can notify you when D1 retention drops. --- # Funnels > Build ordered funnels from any tracked event, see conversion, drop-off and time between steps, compare and break them down, and list the players who dropped — plus funnels imported from Roblox. A funnel is an ordered list of steps — "joined, opened the shop, viewed a product, bought it" — and the share of players who get from each step to the next. **Funnels** has two kinds: - **Your funnels**, built in Bloxlytics from events the SDK sends. They're exact, per player, and you can see who dropped at each step. - **From Roblox**, funnels your game logs with Roblox's own `AnalyticsService`, imported through Open Cloud. See [Funnels from Roblox](#funnels-from-roblox). > **Data needed:** | Funnel | Needs | > | --- | --- | > | Your funnels | The [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk). Steps can be custom events ([`TrackEvent`](https://docs.bloxlytics.app/sdk/custom-events)), funnel steps (`TrackFunnel`), progression (`TrackProgression`), purchases ([purchase tracking](https://docs.bloxlytics.app/sdk/purchases)) and **Joined game** ([automatic events](https://docs.bloxlytics.app/sdk/automatic-events)). | > | From Roblox | [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) with `universe.analytics:read`, and a game that calls `AnalyticsService:LogFunnelStepEvent` or `LogOnboardingFunnelStepEvent` | > > You can build and save funnels before the SDK sends anything; results appear once events arrive. ## Saved funnels The **Funnels** page lists the project's saved funnels with their steps, **Steps** count, **Window** and when they were last **Updated**. Saved funnels are shared with everyone in the project. Select one to open it, or select **New funnel**. **New funnel** offers **Blank funnel** (a **Joined game** step plus one empty step, with a 1-hour window) or one of these templates. Templates use common event names; change any step to match your game's events. | Template | Steps | Window | | --- | --- | --- | | **Onboarding** | Joined game → `Onboarding → Started` → `Onboarding → Completed` | 1 hour | | **Tutorial** | `Tutorial → Started` → `Tutorial → Step2` → `Tutorial → Step3` → `Tutorial → Completed` | 1 hour | | **First purchase** | Joined game → `ShopOpened` → Purchase attempted → Purchase completed | 7 days | | **Shop conversion** | `ShopOpened` → `ProductViewed` → Purchase attempted → Purchase completed | 1 hour | | **Progression** | Progression start → Progression complete | 30 days | | **Rebirth** | Joined game → `RebirthAvailable` → `Rebirth` | 30 days | | **Game completion** | Joined game → Progression complete → `GameCompleted` | 90 days | | **Social engagement** | Joined game → `FriendInvited` → `PartyJoined` | 7 days | `Funnel → Step` names are steps sent with `Analytics:TrackFunnel(player, "Funnel", "Step")`. ## Build a funnel The editor has the definition on the left and live results on the right. Results recalculate a moment after every change, so you can try things before saving. | Field | Rules | | --- | --- | | **Name** | Required to save, up to 80 characters | | **Description** | Optional, up to 240 characters | | **Completion window** | **5 minutes**, **30 minutes**, **1 hour**, **1 day**, **7 days**, **30 days** or **90 days**. Players must finish every step within this time of their first step. | | **Steps** | 2 to 12. Drag the handle to reorder; use the bin to remove a step (a funnel always keeps at least two). **Add step** adds one at the end. | Each step's event picker groups what your game has sent in the last 90 days: | Group | Options | | --- | --- | | **Sessions** | **Joined game** | | **Purchases** | **Purchase attempted**, **Purchase completed** | | **Progression** | **Progression started**, **Progression completed**, **Progression failed** | | **Funnel: *name*** | Each step reported with `TrackFunnel` for that funnel | | **Custom events** | Your own events, with how often each was sent | ### Step filters The filter button on a step limits it to occurrences with certain properties — for example only `ShopOpened` where `Source` = `Lobby`. Under **Only count this step when**, add up to five filters with **Add filter**; all must match. | Operator | Matches | | --- | --- | | **=** / **≠** | The property equals / doesn't equal the value. Compared as text, so `5`, `true` and `Lobby` all work. | | **>** / **<** | The property is greater / less than the number | | **contains** | The property's text contains the value, ignoring case | A step with filters shows them as chips under the event name. ### Save, revert and delete **Save funnel** (or **Save changes** on an existing one) needs every step to have an event. **Revert** discards unsaved edits, and the page warns you before you leave with unsaved changes. The bin in the header deletes the funnel for everyone in the project; alerts that use it stop evaluating, and no event data is touched. Saving, editing and deleting need the `analytics.configure` permission. Without it you can still open a funnel, change the steps and see the results — you just can't save them. ## How a funnel is calculated For the date range you pick (default **Last 30 days**), Bloxlytics works through each player's events in time order: 1. **Entry.** A player enters at their first occurrence of step 1 in the range. Players can't enter more than once in a range, and only events with a player attached count. 2. **Each next step.** The player reaches step *k* at their first occurrence of step *k* at or after the time they reached step *k − 1*. 3. **Window.** Every step must happen within the completion window of the entry time. Later steps may fall after the end of the range, as long as they're within the window — a player who enters on the last day of the range with a 7-day window still has 7 days to finish. Steps must happen in order, but other events can happen in between. Up to 200 occurrences of each step are considered per player. | Result | Definition | | --- | --- | | **overall conversion** | Players who reached the last step ÷ players who entered | | ***N* entered · *N* completed** | Players at the first and last steps | | **players** and the percentage per step | Players who reached the step, and that as a share of those who entered | | **Step conversion** | Players who reached this step ÷ players who reached the previous one | | **Dropped** | Players who reached the previous step but not this one, and that as a share of the previous step | | **Time from previous** | Average and median time between reaching the previous step and this one, for players who reached both | The step with the highest drop-off percentage is highlighted with **Biggest drop-off**. ## Segment, compare and break down Above the results: - **Segment** — run the funnel for one [segment](https://docs.bloxlytics.app/analytics/segments) only, instead of **All players**. - **Compare with** — pick another saved funnel to show its results side by side, over the same date range and segment. - **Break down by property** — type a property name (for example `Source`) and select **Apply**. A table shows the funnel separately for the 10 most common values, ordered by players entering, with **Entered**, the players and share at each later step, and **Conversion**. A player is grouped by the value of that property on any of their events in the funnel; players without it are grouped as **(none)**. The **x** removes the breakdown. Segment, comparison and breakdown aren't saved with the funnel. ## Players who dropped On any step after the first, **View players who dropped** lists the players who reached the previous step but not this one, with **First joined**, **Last seen**, **Sessions** and **Playtime**. The dialog shows the total and lists 200; select a player to open their profile. **Save as segment** saves them as a static segment (up to 5,000 players), named after the funnel and step, such as "Tutorial: dropped before Tutorial → Step3". Use it to follow up — target them with an [experiment](https://docs.bloxlytics.app/analytics/experiments), or check their [player profiles](https://docs.bloxlytics.app/operations/player-lookup) for a common cause. | Action | Permission | | --- | --- | | Run and view funnels | `analytics.view` | | **View players who dropped** | `analytics.view` and `players.view` | | Save funnels, **Save as segment** | `analytics.configure` | > **Note:** The drop-off list uses the funnel's steps, filters, window and date range, but not the **Segment** selection: it lists every player who dropped at that step. ## Funnels from Roblox Below your funnels, **From Roblox** lists funnels your game logs with `AnalyticsService:LogFunnelStepEvent` or `LogOnboardingFunnelStepEvent`, imported from Roblox's Analytics API. They appear once Open Cloud is connected with `universe.analytics:read` and the first import has run; Roblox typically takes about a day to report new funnel events. Roblox's onboarding funnel (from `LogOnboardingFunnelStepEvent`) is listed as **Onboarding**; other funnels keep the name your game logs. Roblox reports funnels as totals over a period rather than per player, so Bloxlytics imports a snapshot for four trailing windows ending at midnight UTC today: **7 days**, **30 days**, **90 days** and **12 months**. Choose one with the **Window** control. The list shows each funnel's steps, **Steps**, **Entered**, **Completed** and **Conversion**, and the dates covered and when it was imported. Opening a Roblox funnel shows: - **The funnel** for the chosen window, with the same conversion, step conversion and drop-off figures as your own funnels. Roblox counts players who skip a step as having completed the steps before it. - **Steps** — players (unique users) and sessions (each funnel run counted separately) per step, with **From previous** and **From start**. Shown when Roblox reports session counts. - **Daily completion rate** — Roblox's cohort completion rate: the share of players who started the funnel each day and went on to finish it. It has its own date range, defaulting to **Last 90 days**. Roblox funnels have no time between steps, filters, breakdowns or list of players who dropped, because Roblox only reports totals. They're re-imported on the same schedule as Roblox's other analytics; see [Roblox-reported data](https://docs.bloxlytics.app/analytics/roblox-data#open-cloud-analytics). If the list is empty, it says why: **Import funnels from Roblox** (Open Cloud isn't connected or the key lacks the scope), **Importing funnels from Roblox…**, **Funnel import failed** with Roblox's error, or **No Roblox funnel events in the last *window***. ## Related - [Custom events](https://docs.bloxlytics.app/sdk/custom-events): Send the events and funnel steps your funnels use. - [Monetisation](https://docs.bloxlytics.app/analytics/monetisation): A ready-made purchase funnel. - [Alerts](https://docs.bloxlytics.app/analytics/alerts): Get notified when a funnel's conversion drops. --- # Economy > How much of each in-game currency is generated and spent, where it comes from and goes, what players hold, and whether the economy is inflating. **Economy** tracks your in-game currencies — Coins, Gems, Tokens — from the economy events your server scripts send. For one currency at a time it shows how much was generated (sources) and removed (sinks), which categories drive each, how balances are spread across players, and a plain-language check on whether generation is outpacing spending. > **Data needed:** Economy needs the [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk) and [economy tracking](https://docs.bloxlytics.app/sdk/economy) from your server scripts: > > | Call | Feeds | > | --- | --- | > | `Analytics:TrackCurrencyEarned(player, currency, amount, source?, item?, balance?)` | **Earned**, **Top sources**, and balances when `balance` is passed | > | `Analytics:TrackCurrencySpent(player, currency, amount, sink?, item?, balance?)` | **Spent**, **Top sinks**, and balances when `balance` is passed | > | `Analytics:TrackBalance(player, currency, balance)` | **Balance over time**, **Balance distribution**, the balance KPIs | > | `Analytics:TrackCurrencyTransfer(from, to, currency, amount, reason?)` | The transfer total under the charts | > > Roblox doesn't report in-game currencies, so there's nothing to show without the SDK. Until events arrive the screen shows **Needs the in-game SDK**. ## Currencies Define your currencies on the project's **SDK** page under **Currencies**: a **Key** (what your scripts pass, such as `Coins`) and a **Label** (what Bloxlytics shows). You can add up to 20. > **Warning:** Once at least one currency is defined, economy events for any other currency are rejected, and the SDK warns in the output. Matching ignores case. Add a currency here before you start tracking it, or its events will be lost. The currency menu in the header lists your defined currencies plus any others that have had events in the last 90 days, and opens on the first. The selected currency is kept in the page address. ## Date range and comparison The date range defaults to **Last 30 days**. **Earned** and **Spent** compare against the period of the same length immediately before it; the economy health check uses the same two periods. Ranges of two days or less are charted by hour, longer ones by day. ## Economy health A callout at the top gives a deterministic verdict, comparing the change in generation with the change in spending between the previous period and this one: | Verdict | When | | --- | --- | | **Possible inflation** | Generation grew more than 10%, and by more than 20 percentage points more than spending did | | **Spending is outpacing generation** | Spending grew more than 10%, and by more than 20 percentage points more than generation did | | **Economy looks balanced** | Neither of the above | | **Not enough history to assess** | Nothing was generated, or nothing was spent, in the previous period | The message gives the two changes, for example "Coins generation increased by 48%, while spending increased by only 12%." When anything was spent in the range it adds the earn-to-spend ratio: "For every 1 Coins spent, 1.6 were generated." The same rule runs weekly for [Insights](https://docs.bloxlytics.app/analytics/insights): if a currency (one of the five with the most events) shows possible inflation over the last 7 days, and more than 1,000 were generated in the 7 days before, Overview raises "*Currency* generation is increasing faster than spending." > **Tip:** A sustained earn-to-spend ratio well above 1 means currency is piling up in players' balances. Check **Top sources** for a reward that grew, and **Balance distribution** for a tail of very rich players. ## KPIs | KPI | Definition | | --- | --- | | **Earned** | Total currency generated by sources in the range | | **Spent** | Total currency removed by sinks in the range | | **Net change** | **Earned** − **Spent** | | **Average balance** | Mean of each player's latest known balance at the end of the range | | **Median balance** | The middle value of those balances: half of players hold less | | **Earned per player** | **Earned** averaged over players with any transaction of this currency in the range | | **Spent per player** | **Spent** averaged over the same players | Whether an amount counts as generation or spending depends only on the call you made: pass a positive amount to both `TrackCurrencyEarned` and `TrackCurrencySpent`. > **Note:** **Average balance**, **Median balance** and **Balance distribution** use the latest balance ever reported for each player up to the end of the range — including players who haven't played during the range. They only include players for whom a balance was reported at least once. ## Charts | Chart | Shows | | --- | --- | | ***Currency* generation vs spending** | **Generated** and **Spent** per day (or hour) | | **Top sources** | Generation by category, largest first | | **Top sinks** | Spending by category, largest first | | **Balance over time** | For each day, the **Average** and **Median** of the last balance each player reported that day. Only players who reported a balance that day are included; the table view shows how many. | | **Balance distribution** | Players by latest known balance, in ranges **0–10**, **10–100**, **100–1K**, **1K–10K** and so on up to **10M+**. Negative balances get their own range at the start. | ### Sources and sinks The category is the `source` you pass to `TrackCurrencyEarned` or the `sink` you pass to `TrackCurrencySpent`. Events without one are grouped as **Uncategorised**. Name categories by the game system — `Quest`, `DailyReward`, `Shop`, `Upgrade` — rather than the item, and pass the item separately. **Top sources** and **Top sinks** show the top 10 categories as a chart. Switch to **Table** to see up to 20 with: | Column | Meaning | | --- | --- | | **Category** | The source or sink | | **Amount** | Total generated or spent through it | | **Share** | Its share of **Earned** or **Spent** | | **Players** | Distinct players with at least one transaction in it | | **Transactions** | Number of events | ### Transfers Currency moved between players with `TrackCurrencyTransfer` — trades, gifts — isn't generation or spending, because the total in the economy doesn't change. When there were transfers in the range, a line under the charts gives the total moved. Each transfer appears in both players' economy history on their [player profiles](https://docs.bloxlytics.app/operations/player-lookup). ## Related - [Economy tracking](https://docs.bloxlytics.app/sdk/economy): The calls that feed this screen. - [Alerts](https://docs.bloxlytics.app/analytics/alerts): Alert on currency generated in a time window. - [Explore](https://docs.bloxlytics.app/analytics/explore): Build your own charts from economy events. --- # Events > Every event your game sends, with volume and reach, and a detail view to chart any event by count, unique players or a numeric property, grouped and filtered by its properties. **Events** is the explorer for raw event data. The list shows every event name the SDK has sent in the date range; opening one lets you chart it, aggregate its numeric properties, group it by a property, inspect how its property values are distributed and read recent occurrences. > **Data needed:** The [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk). Custom events come from [`Analytics:TrackEvent`](https://docs.bloxlytics.app/sdk/custom-events); built-in events come from [automatic events](https://docs.bloxlytics.app/sdk/automatic-events), [economy](https://docs.bloxlytics.app/sdk/economy), [purchases](https://docs.bloxlytics.app/sdk/purchases), funnel and progression calls, player properties and [experiments](https://docs.bloxlytics.app/sdk/experiments). Until the first event arrives the screen shows **Needs the in-game SDK**. ## Event list | Column | Meaning | | --- | --- | | **Event** | The event's label, with a **Custom** badge for your own events or the reserved name (such as `$session_start`) for built-in ones | | **Count** | Occurrences in the date range | | **Unique players** | Distinct players who sent it in the range (an approximate count; the detail page shows the exact figure) | | **First seen** | When the event was first ever received — not just in the range | | **Last seen** | When it was most recently received | The list is sorted by **Count** and shows up to 500 events. **Search events** matches anywhere in the name, ignoring case. The **All** / **Custom** / **Built-in** control filters by kind. Search and kind are kept in the page address. Server heartbeats are never listed. The date range defaults to **Last 7 days**. ### Built-in events Built-in event names start with `$` and are listed under their label: | Label | Event | Sent by | | --- | --- | --- | | **Joined game** | `$session_start` | A player joining (automatic) | | **Left game** | `$session_end` | A player leaving (automatic) | | **Server started** | `$server_start` | A server starting (automatic) | | **Server stopped** | `$server_stop` | A server shutting down (automatic) | | **Currency changed** | `$economy` | `TrackCurrencyEarned`, `TrackCurrencySpent` | | **Currency transferred** | `$economy_transfer` | `TrackCurrencyTransfer` | | **Balance snapshot** | `$balance` | `TrackBalance` | | **Purchase** | `$purchase` | Purchase prompts and `WrapProcessReceipt` | | **Funnel step** | `$funnel` | `TrackFunnel` | | **Progression** | `$progression` | `TrackProgression` | | **Property set** | `$property` | `SetPlayerProperty`, `SetPlayerProperties` | | **Experiment exposure** | `$experiment_exposure` | `GetVariant` | Every funnel step is the same event, **Funnel step**, with `funnel` and `step` properties; group it by `step` to compare steps, or use [Funnels](https://docs.bloxlytics.app/analytics/funnels). The full property list for each is in the [event reference](https://docs.bloxlytics.app/sdk/event-reference). ## Event detail Select an event to open it. Three figures sit at the top for the date range, with any filters applied: | Figure | Meaning | | --- | --- | | **Occurrences** | Times the event was sent | | **Unique players** | Distinct players who sent it (exact) | | **Per player** | **Occurrences** ÷ **Unique players** | ### Chart controls | Control | Options | | --- | --- | | **Measure** | **Count**, **Unique players**, **Sum**, **Average**, **Minimum**, **Maximum** | | **Of property** | For **Sum**, **Average**, **Minimum** and **Maximum**: which numeric property to aggregate. The first numeric property is chosen for you. | | **Group by** | **No grouping**, or any property. Draws one line per value. | | **Filter** | Pick a property, an operator and a value, then **Add**. Up to 10 filters; all must match. | | Chart type | **Line** or **Bar** | **Sum**, **Average**, **Minimum** and **Maximum** need a numeric property; they're unavailable when the event has none. Each one is taken over the property's values in each day (or hour), so **Average** of `Damage` is the mean `Damage` of the occurrences in that day. **Group by** shows the 8 most frequent values of the property in the range; less common values are left out, and the chart says so. Occurrences without the property are grouped as **(none)**. For **Count**, **Unique players** and **Sum**, days with no occurrences show zero; for **Average**, **Minimum** and **Maximum** they're gaps. Filters use the same operators as funnel steps: | Operator | Matches | | --- | --- | | **=** / **≠** | The property equals / doesn't equal the value. For a number property the value is compared as a number; otherwise as text. | | **>** / **<** | The property is greater / less than the number | | **contains** | The property's text contains the value, ignoring case | Active filters appear as chips; the **x** on each removes it. The figures at the top use the same filters. **Show as table** lists the chart's numbers. **Open in Explore** opens the same measure, property, grouping, filters, date range and chart type in [Explore](https://docs.bloxlytics.app/analytics/explore), where you can add more series, save the query or pin it to a dashboard. ### Properties **Properties** lists the keys seen on the event, from up to 20,000 of its occurrences in the range, most common first (up to 32 keys). Each shows how many of the sampled occurrences carried it and its type: **Number** when more than half of its values are numbers, otherwise **Text**. Select a property to see its distribution over the whole range: - **Number** — **Minimum**, **Median**, **Average** and **Maximum**, and a histogram of up to 12 bars whose ranges are fitted to the data. - **Text** — the 25 most common values with their **Count**, **Share** of those occurrences and the number of distinct **Players**. An empty string shows as **(empty)**. Booleans count as text, so a `true`/`false` property shows its two values with counts. ### Recent occurrences The latest 50 occurrences in the last 30 days, regardless of the date range: **Time**, **Player** (linking to their profile, or **Server** for server events), **Properties** summarised on one line — hover for the full set — and **Server**. Fifteen are shown at first; **Show all 50** shows the rest. ## Event names and limits Custom event names start with a letter and can contain letters, numbers, spaces and `_ . : -`, up to 64 characters. Each event carries up to 32 properties, with names of up to 40 characters and text values of up to 256 characters. Events can be blocked on arrival from the project's **SDK** page under **Blocked events**. See [Custom events](https://docs.bloxlytics.app/sdk/custom-events) for the details and naming advice. ## Related - [Custom events](https://docs.bloxlytics.app/sdk/custom-events): Send your own events with properties. - [Explore](https://docs.bloxlytics.app/analytics/explore): Combine events, players and breakdowns in one chart. - [Event reference](https://docs.bloxlytics.app/sdk/event-reference): Every built-in event and its properties. --- # Players > Every player the SDK has recorded in your experience — searchable, sortable and filterable by segment or online status — with lifetime playtime, sessions and spend. **Players** lists every player the SDK has recorded in your experience, with their lifetime numbers. Use it to find a player, see who's online, browse the members of a segment, or sort by playtime or spend to find your most engaged players. Selecting a player opens their profile. > **Data needed:** The [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk). Names, sessions and playtime come from the [automatic session events](https://docs.bloxlytics.app/sdk/automatic-events); **Purchases** and **Robux spent** need [purchase tracking](https://docs.bloxlytics.app/sdk/purchases). Until the first event arrives the screen shows **Needs the in-game SDK**. > > To look up a player the SDK hasn't recorded, use [Player Lookup](https://docs.bloxlytics.app/operations/player-lookup), which falls back to Roblox. ## What a tracked player is A player is **tracked** as soon as Bloxlytics accepts any event with their user ID: joining the game, a custom event, an economy event, a purchase. Server-only events (start, stop, heartbeats) don't create players. Studio sessions aren't tracked unless you turn tracking on in Studio (see [Configuration](https://docs.bloxlytics.app/sdk/configuration)). From then on, Bloxlytics keeps a running record for each player: | Field | Comes from | | --- | --- | | Username and display name | The most recent join that reported them | | **First joined** | Their earliest event | | **Last seen** | Their most recent event of any kind | | **Sessions** | Joins (session starts) | | **Playtime** | The total length of completed sessions, as measured by the game server when the player left | | **Purchases** | Completed purchases | | **Robux spent** | Robux from completed purchases | These are lifetime totals — the list has no date range. Sessions still in progress, or that ended without the player's leave event reaching Bloxlytics, add to **Sessions** but not **Playtime**. > **Note:** Bloxlytics accepts events up to 30 days old, so **First joined** is never earlier than 30 days before the SDK was installed — players from before that appear as new when they next play. ## Columns | Column | Shows | Sortable | | --- | --- | --- | | **Player** | Avatar, display name and username, an online indicator and any banners | | | **Status** | **Online** or **Offline** | | | **Last seen** | Time since their most recent event | Yes | | **First joined** | Date of their first event | Yes | | **Playtime** | Total completed-session time | Yes | | **Sessions** | Number of sessions | Yes | | **Purchases** | Completed purchases | Yes | | **Robux spent** | Robux from completed purchases, or a dash for none | Yes | The list opens sorted by **Last seen**, most recent first. Select a sortable column header to sort by it; select it again to reverse the order. Some columns are hidden on narrow screens. The list shows 50 players per page, with **Previous** and **Next**, and the total number of matching players above it. Search, sort, segment, online filter and page are all kept in the page address, so you can bookmark or share a view. ### Banners Banners on a player come only from sources Bloxlytics can verify: | Banner | Source | | --- | --- | | **Banned** | An active Roblox ban for the experience, from Open Cloud or made in Bloxlytics. The detail shows the expiry or **Permanent**. See [Moderation](https://docs.bloxlytics.app/operations/moderation). | | **Flagged**, **Under investigation** | A flag set on the player by a member of your team | | Your own labels | Rules under **Player banners** on the project's **SDK** page, matched against [player properties](https://docs.bloxlytics.app/sdk/custom-events) your game servers report — for example **MODERATOR** when `Role` = `Moderator` | ## Search and filters | Control | Behaviour | | --- | --- | | **Search name or user ID** | A number finds that exact user ID. Text finds players whose username or display name contains it, ignoring case. | | **All players** | Limits the list to one [segment](https://docs.bloxlytics.app/analytics/segments) | | **Online now** | Only players on a live game server right now. The list refreshes every 30 seconds while it's on. | Search and filters combine: you can search within a segment, or see which members of a segment are online. "Online" means a game server running the SDK listed the player in a heartbeat within the last 90 seconds — see [how presence works](https://docs.bloxlytics.app/analytics/realtime#how-live-servers-and-presence-work). Players on servers without the SDK, or in Studio sessions without tracking, never show as online. ## Actions The menu at the end of each row offers: - **Open profile** — the player's full profile. - **Join server** — opens Roblox to join the server the player is on (only when they're online). - **Execute command** and **Run macro** — run a Cmdr command or macro for the player, if you have the permission. Commands reach game servers through the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge). See [Commands](https://docs.bloxlytics.app/operations/commands) and [Macros](https://docs.bloxlytics.app/operations/macros). - **Open Roblox profile** and **Copy user ID**. Kick, warn and ban depend on the player's server and your Open Cloud key, so they're on the player's profile and in [Player Lookup](https://docs.bloxlytics.app/operations/player-lookup) rather than in this list. ## Player profiles A profile has the tabs **Overview**, **Analytics**, **Economy** and **Activity**, plus **DataStore**, **Moderation** and **Commands** when you have the permissions for them. It covers the player's sessions, retention (D1, D7 and D30 returns and active days), funnels entered, progression, balances and transactions, purchases, properties and a timeline of their events. Profiles are described in [Player Lookup](https://docs.bloxlytics.app/operations/player-lookup). ## Permissions Players needs the `players.view` permission, which every default role has. Actions in the row menu need their own permissions — `commands.execute` for **Execute command**, `macros.execute` for **Run macro**. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). ## Elsewhere Player lists also appear as drill-downs: - [Retention](https://docs.bloxlytics.app/analytics/retention#drill-into-a-group) — the players in each churn group. - [Funnels](https://docs.bloxlytics.app/analytics/funnels#players-who-dropped) — the players who dropped at a step. Both can be saved as a segment and then picked in **All players** here. --- # Monetisation > Revenue, paying players, conversion, ARPU and ARPPU, per-product performance and a purchase funnel from SDK purchases, with Roblox's own revenue figures alongside. **Monetisation** shows what players buy and how often: Robux revenue from developer products and game passes, how many players pay, how each product converts, and a funnel from joining to buying. Roblox's own revenue figures are shown separately at the bottom, never combined with SDK numbers. > **Data needed:** | Part of the screen | Needs | > | --- | --- | > | KPIs, charts, **Products**, **Purchase funnel** | The [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk) with [purchase tracking](https://docs.bloxlytics.app/sdk/purchases). Developer products also need your `ProcessReceipt` wrapped with `Analytics:WrapProcessReceipt`. | > | **Opened shop** / **Viewed product** funnel steps | [Custom events](https://docs.bloxlytics.app/sdk/custom-events) for opening the shop and viewing a product (by default `ShopOpened` and `ProductViewed`) | > | Product names and prices from Roblox | [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) (developer products) | > | **Reported by Roblox** | Open Cloud with `universe.analytics:read` | > > Without the SDK, the screen shows Roblox's revenue only. See [Without the SDK](#without-the-sdk). ## How purchases are recorded The SDK records each purchase as an event with a status: | Status | Recorded when | | --- | --- | | **Attempted** | A purchase prompt for a game pass or developer product closes, whether or not the player bought | | **Completed** | For a game pass, the prompt reports it was bought. For a developer product, your `ProcessReceipt` handler (wrapped with `WrapProcessReceipt`) returns `PurchaseGranted`. | | **Failed** | Not sent by the SDK itself; only appears if you send it through the [ingest API](https://docs.bloxlytics.app/api/ingest/send-events) | Only **completed** purchases count towards revenue, purchases and paying players. The Robux amount is the price for game passes and the Robux Roblox charged (`CurrencySpent`) for developer products. > **Warning:** A developer product purchase is only recorded while the player is in the server that processes the receipt. If Roblox retries a receipt after the player has left, the purchase still completes in your game but isn't recorded, so SDK revenue can be slightly lower than Roblox's. Roblox's own figure in [Reported by Roblox](#reported-by-roblox) includes everything. ## KPIs The date range defaults to **Last 30 days**, and each KPI compares with the period of the same length immediately before it. "Active players" means distinct players with any event in the range. | KPI | Source | Definition | | --- | --- | --- | | **Revenue** | SDK | Robux from completed purchases | | **Purchases** | SDK | Number of completed purchases | | **Paying players** | SDK | Distinct players with at least one completed purchase | | **Conversion** | Computed | **Paying players** ÷ active players | | **ARPU** | Computed | Average revenue per user: **Revenue** ÷ active players | | **ARPPU** | Computed | Average revenue per paying user: **Revenue** ÷ **Paying players** | | **Failed purchases** | SDK | Purchases with the failed status. A decrease shows as good (green). The tooltip shows how many purchase prompts were observed. | **Revenue**, **Purchases** and **Paying players** have sparklines over the range. ARPU and ARPPU are shown to two decimal places. ## Charts | Chart | Shows | | --- | --- | | **Revenue** | Robux per day (per hour for ranges of two days or less). **Show as table** adds the number of purchases. | | **Revenue by type** | Revenue split between **Developer products** and **Game passes** | ## Products **Products** lists every developer product and game pass with at least one completed purchase or prompt in the range, sorted by revenue (up to 200). | Column | Meaning | | --- | --- | | **Product** | Its name and ID. **SDK name** means the name was reported by the SDK when it was bought, rather than synced from Roblox. | | **Type** | **Developer product** or **Game pass** | | **Price** | The price in Robux, when known | | **Purchases** | Completed purchases | | **Unique buyers** | Distinct players who completed a purchase | | **Revenue** | Robux from completed purchases | | **Conversion** | **Unique buyers** ÷ active players in the range | | **Prompt → bought** | Of the players who were prompted to buy it, the share who also completed a purchase of it | **Prompt → bought** only counts buyers who were prompted, so a purchase without a recorded prompt doesn't inflate it. It shows a dash when no prompts were recorded. Names and prices come from Roblox when Open Cloud is connected and the key can list developer products; otherwise from the SDK, which looks up product info in the game or uses names you set with `Analytics:SetProductNames`. ## Purchase funnel **Purchase funnel** follows players from joining to buying, using the same calculation as [your own funnels](https://docs.bloxlytics.app/analytics/funnels#how-a-funnel-is-calculated) with a 24-hour window: 1. **Joined** — the player's first session start in the range 2. **Opened shop** — the **Shop opened event** 3. **Viewed product** — the **Product viewed event** 4. **Purchase attempted** 5. **Purchase completed** Each step must happen within 24 hours of joining. Pick the custom events your game uses for steps 2 and 3 from **Shop opened event** and **Product viewed event**; the defaults are `ShopOpened` and `ProductViewed`, and the choice is kept in the page address. The funnel shows how many players entered and the share that completed a purchase, with the players and drop-off at each step. > **Tip:** If your shop has no separate "view product" moment, pick the same event for both steps, or build a shorter funnel on the [Funnels](https://docs.bloxlytics.app/analytics/funnels) screen — it can also list the players who dropped. ## Reported by Roblox **Reported by Roblox** shows two of Roblox's own daily metrics from its Analytics API: | Chart | Roblox metric | | --- | --- | | **Daily revenue** | `DailyRevenue` | | **Paying user conversion** | `PayingUsersCVR` | These include sales the SDK can't see, such as purchases made outside the experience, and follow Roblox's definitions — so they won't match the SDK figures above, and Bloxlytics never adds the two together. Each chart can also show: - **Open Cloud not connected** — connect a key with `universe.analytics:read`. - **Not imported yet. Run a sync from Integrations.** — the first import hasn't run. - **Roblox doesn't provide this metric for this experience** — Roblox rejected the metric; its reason is shown. - A note that **some points are marked as projected or not statistically significant by Roblox**, when Roblox flags any point in the range. **Last checked** says when the metrics were last imported. See [Roblox-reported data](https://docs.bloxlytics.app/analytics/roblox-data). ## Without the SDK Until your game sends SDK events, **Monetisation** shows **Revenue reported by Roblox**: the **Daily revenue** and **Paying user conversion** charts from Open Cloud. It defaults to **Last 30 days**; **Today** and **Yesterday** show the last 7 days, because Roblox reports whole days. Per-product breakdowns and the purchase funnel need the SDK. ## Monetisation elsewhere - [Overview](https://docs.bloxlytics.app/analytics/overview) shows **Revenue**, **ARPU** and **Paying players**, and a **Purchase conversion** chart. - [Insights](https://docs.bloxlytics.app/analytics/insights) flag large week-on-week changes in revenue and in product conversion. - [Alerts](https://docs.bloxlytics.app/analytics/alerts) can notify you when revenue moves. - [Experiments](https://docs.bloxlytics.app/analytics/experiments) compare conversion and revenue between variants. --- # Roblox-reported data > The numbers Bloxlytics gets from Roblox rather than your game — public counters for every experience, and Roblox's own daily analytics imported through Open Cloud — and how unsupported metrics are handled. Not every number in Bloxlytics comes from the SDK. Two kinds come from Roblox itself: - **Public data** — the counters anyone can see on your experience's page: players online, visits, favourites, likes and dislikes. Bloxlytics collects these for every project using only its Universe ID: no API key, no game scripts. - **Open Cloud analytics** — Roblox's own daily analytics for the experience (daily active users, retention, revenue and more), imported with the Open Cloud API key you connect. Wherever these appear, they carry a **Roblox** source badge and sit in their own section, apart from SDK numbers. Bloxlytics never adds Roblox's figures to SDK figures, and never fills a gap in one with the other. > **Data needed:** | Data | Needs | > | --- | --- | > | Public data | Nothing — every project gets it from the moment it's added | > | Open Cloud analytics | [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) connected with a key that has the `universe.analytics:read` scope | > | Funnels from Roblox | The same, plus a game that logs funnels with `AnalyticsService` | ## Public data | Number | How it's collected | | --- | --- | | Players online | Roblox's current player count for the experience, **sampled every minute** | | Visits | Roblox's all-time visit counter, recorded once an hour | | Favourites | Roblox's favourite count, recorded once an hour | | Likes and dislikes | Roblox's vote counts, recorded once an hour | Until the first hourly snapshot of a counter exists (for a project added in the last hour), Bloxlytics reads Roblox's current value directly instead, at most once a minute. These are shown as: | Label | Definition | | --- | --- | | **Playing now** | The most recent players-online sample | | **Peak CCU** | The highest players-online sample in the date range | | **Concurrent players** chart | The highest sample per hour or day; **Show as table** also gives the average | | **Total visits** | The latest visit counter: the all-time figure on your experience's page | | **Visits in range** | How much the visit counter grew between the first and last hourly snapshots inside the range | | **Visits** chart | How much the counter grew between consecutive hours or days | | **Favourites** | The latest favourite count, with the number added in the range when known | | **Like ratio** | Likes ÷ (likes + dislikes) at the latest snapshot, with the two counts in the tooltip | **Visits in range** and favourites added in the range need at least two hourly snapshots inside the range; Bloxlytics never infers them from a single reading, so a project added in the last hour shows a dash. The **Visits** chart appears after two hourly snapshots. > **Note:** Roblox's visit counter counts visits, not unique players, and Roblox updates its public counters on its own schedule. A burst in the **Visits** chart can be a delayed update from Roblox rather than a burst of players. ### Where public data appears - **Overview** — the full layout without the SDK, or a compact row in **Reported by Roblox** with it. See [Overview](https://docs.bloxlytics.app/analytics/overview#reported-by-roblox). - **Realtime** — **Players online** uses Roblox's count whenever it's been sampled in the last hour. See [Realtime](https://docs.bloxlytics.app/analytics/realtime). - **Peak CCU** and **Concurrent players** on Overview, which prefer Roblox's count over SDK heartbeats for any period with Roblox samples. - [Alerts](https://docs.bloxlytics.app/analytics/alerts) on concurrent players. ## Open Cloud analytics With a key that has `universe.analytics:read`, Bloxlytics imports these daily metrics from Roblox's Analytics API: | Label in Bloxlytics | Roblox metric | Shown as | | --- | --- | --- | | **Daily active users** | `DailyActiveUsers` | Count | | **Daily revenue** | `DailyRevenue` | Robux | | **D1 retention** | `ForwardD1Retention` | Percentage | | **D7 retention** | `ForwardD7Retention` | Percentage | | **D30 retention** | `ForwardD30Retention` | Percentage | | **Paying user conversion** | `PayingUsersCVR` | Percentage | | **Average session length** | `AverageSessionLengthMinutes` | Minutes | | **New users** | `NewUsers` | Count | | **Peak concurrent users** | `PeakConcurrentUsers` | Count | From funnels your game logs with `AnalyticsService:LogFunnelStepEvent` or `LogOnboardingFunnelStepEvent`, it also imports per-step users and sessions, and each funnel's daily completion rate. See [Funnels from Roblox](https://docs.bloxlytics.app/analytics/funnels#funnels-from-roblox). All of these are whole-day totals by UTC day. Roblox only reports complete days, so today never appears; the most recent point is yesterday. ### Where Open Cloud analytics appear | Screen | Metrics | | --- | --- | | [Overview](https://docs.bloxlytics.app/analytics/overview#reported-by-roblox) | Every metric available for your experience, one chart each | | [Retention](https://docs.bloxlytics.app/analytics/retention#without-the-sdk), without the SDK | **D1**, **D7** and **D30 retention** | | [Monetisation](https://docs.bloxlytics.app/analytics/monetisation#reported-by-roblox) | **Daily revenue** and **Paying user conversion** | | [Funnels](https://docs.bloxlytics.app/analytics/funnels#funnels-from-roblox) | Funnels from Roblox | ### When it's imported | When | What's imported | | --- | --- | | You connect Open Cloud | Everything Roblox still holds — up to four years, and not before the experience was created | | Automatically | Bloxlytics checks every hour and re-imports any connected project not synced in the last 6 hours, covering the last 7 days | | **Sync now** on **Integrations** | The last 30 days (or the full history, if it has never been imported) | | **Import full history** on **Integrations** | Everything Roblox still holds | Each re-import replaces the days it covers, so if Roblox revises a figure, the new value is the one you see. A full import can take several minutes: Roblox limits how quickly its analytics can be read, and Bloxlytics paces its requests to stay within that limit, waiting and retrying when Roblox asks it to slow down. Automatic syncing can be turned off for a project on **Integrations**. Running a sync needs the `project.credentials` permission; see [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). **Integrations** keeps a sync history, with a note when an import was partial — for example **Not available from Roblox: …** or **History stopped early for: …**. ### Point status Roblox can flag individual data points — for example as projected, or not statistically significant. Bloxlytics keeps the flag with each point. On [Monetisation](https://docs.bloxlytics.app/analytics/monetisation#reported-by-roblox), a chart with flagged points in the range says so underneath. ## Supported and unsupported metrics Roblox doesn't provide every metric for every experience, and its Analytics API is in beta. Bloxlytics doesn't guess which ones you'll get. On each import it asks Roblox for every metric in the table above: - If Roblox returns data, the metric is recorded as **supported** and its chart appears. - If Roblox rejects the request, the metric is recorded as **unsupported**, with Roblox's error message and the time it was checked. Nothing is estimated in its place, and no SDK number stands in for it. Support is checked again on every import, so a metric Roblox starts providing later appears on its own. Unsupported metrics are shown plainly: | Where | What you see | | --- | --- | | Overview and Retention | **Not available from Roblox for this experience:** followed by the metric names | | Monetisation | **Roblox doesn't provide this metric for this experience**, with Roblox's reason | | Integrations | **Not available from Roblox: …** in the sync history | If no metric is available at all, the section says **None of these metrics are available from Roblox for this experience.** If the first import hasn't finished, it says **Waiting for the first import from Roblox's analytics API.** If Roblox rejects the key itself (for example, it was revoked or expired), the import stops and the error is shown on **Integrations**. Connect a working key and sync again. For the full list of what Roblox does and doesn't expose, and why some features aren't possible, see [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis#what-is-not-supported-and-why). ## Without the scope or without Open Cloud | Situation | Message | | --- | --- | | Open Cloud isn't connected | **Roblox's daily analytics (DAU, retention, revenue) need an Open Cloud key with the `universe.analytics:read` scope.** with **Connect Open Cloud** | | The key lacks `universe.analytics:read` | **The connected Open Cloud key doesn't include the `universe.analytics:read` scope, so Roblox's daily analytics aren't imported.** with **Update the key** | Public data keeps working in both cases. ## Why Roblox and SDK numbers differ You'll often see two figures for the same idea — DAU on Overview and **Daily active users** from Roblox, for example. Both are correct; they measure different things. | | SDK | Roblox | | --- | --- | --- | | Who's counted | Players on servers running the SDK (Studio sessions only if you turn tracking on there) | Everyone in the experience | | Purchases | Prompts and receipts the SDK saw complete in your game | Every sale, including ones made outside the experience | | Definitions | Documented on each screen (for example [Retention](https://docs.bloxlytics.app/analytics/retention#definitions)) | Roblox's own | | Days | UTC | UTC, complete days only | | Freshness | Seconds to minutes | Daily, after Roblox publishes the day | | Per player | Yes — drill-downs, segments, profiles | No — totals only | If SDK numbers are much lower than Roblox's, check that every place in the experience runs the SDK and that HTTP requests are enabled; see [Troubleshooting](https://docs.bloxlytics.app/help/troubleshooting). --- # Explore > Build ad-hoc queries from metrics and events, filter and break them down by player, then save them or add them to a dashboard. Explore is the query builder behind every chart in Bloxlytics. You pick up to five series, choose how to slice them, and see the result as a chart, a number or a table. The same engine draws the charts on [dashboards](https://docs.bloxlytics.app/analytics/dashboards), so a query you build here behaves identically when you add it to one. Open it from **Explore** in the project sidebar. Anyone with the **View analytics** permission can run queries. Saving queries needs **Create funnels, segments, dashboards, experiments and alerts** (`analytics.configure`). See [roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). > **Info:** Almost everything in Explore comes from the Luau SDK. Without it, only **Concurrent players** has data (from Roblox's public player count). See [data sources](https://docs.bloxlytics.app/data-sources). ## How a query is put together A query has these parts: | Part | Where you set it | Limits | | --- | --- | --- | | Series | **Series** panel on the left | 1 to 5 | | Breakdown | **Break down by** | Optional; top 2 to 12 groups (the picker offers 3, 5, 8, 10, 12; default 8) | | Display | **Display** | One of seven chart types | | Comparison | **Compare with the previous period** | On or off | | Date range | Filter bar above the chart | A preset or a custom range | | Segment | Filter bar | One saved segment, or **All players** | | Player filters | Filter bar, **Add filter** | Up to 8 filters, each with up to 20 values | The result updates as you edit. If something is missing, the chart area shows what to fix, such as "Choose an event." or "Choose a numeric property." ## Series Each series is lettered A to E. Use **Add metric** or **Add event** to add one, and the cross to remove it. Every series has an optional **Name** (up to 60 characters) that replaces its label on the chart, in tables and in CSV exports. ### Metrics Set the series type to **Metric** and choose one of these. The "Measured as" column is how the series is reduced to the single number shown in the totals table, the **Number** display and digests. | Metric | What it counts | Measured as | | --- | --- | --- | | Active players | Distinct players with activity in each period | Average per period | | New players | Players whose first session falls in each period | Total in range | | Returning players | Active players minus new players in each period (never below zero) | Average per period | | Sessions | Sessions started | Total in range | | Average session length | Mean length of completed sessions | Average session length | | Concurrent players | Highest player count sampled in each period | Peak in range | | Revenue | Robux from completed purchases | Total in range | | Purchases | Completed purchases | Total in range | | Paying players | Distinct players with a completed purchase in each period | Average per period | | Events | Every event received, except the SDK's server heartbeats | Total in range | **Concurrent players** uses Roblox's own count when it was sampled during the range and SDK server heartbeats otherwise; the two are never mixed in one series. Because it is counted per server rather than per player, it can't take player filters, a segment or a breakdown. When any of those are set, the series is left out and a note under the chart says so. ### Events Set the series type to **Event** and pick an event. The picker groups them: - **Sessions**: Joined game. - **Purchases**: Purchase attempted, Purchase completed. - **Progression**: Progression started, Progression completed, Progression failed. - **Funnel: \**: each step tracked with `TrackFunnel`. - **Custom events**: everything you send with `TrackEvent` (see [custom events](https://docs.bloxlytics.app/sdk/custom-events)). Then choose an aggregation: | Aggregation | Result | | --- | --- | | Count | Number of times the event happened | | Unique players | Distinct players who sent it | | Average per player | Count divided by unique players | | Sum of a property | Sum of a numeric property | | Average of a property | Mean of a numeric property | | Minimum of a property | Smallest value of a numeric property | | Maximum of a property | Largest value of a numeric property | The four property aggregations need a numeric property. The list offers the properties seen on that event in the last 30 days. An event series's total is calculated over the whole range, not added up from the periods. **Unique players** over a 30-day range therefore counts each player once, even if they played every day. The totals table labels this "Over the range". #### Property filters Under an event, **Where property…** adds a filter on the event's own properties. Up to five filters per series, all of which must match. Operators are `=`, `≠`, `>`, `<` and `contains` (case-insensitive). `>` and `<` compare numbers. Once you've entered a property, the value box suggests the values seen for it in the last 30 days, with how many events had each. You can still type a value that isn't listed. ## Breakdowns **Break down by** splits every series into groups. Two kinds are offered: - **Player** dimensions: **Country**, **Language**, **Premium**, **Account age**, **Place** and **New or returning** (described in [player filters](#player-filters)). - **Event**: **An event property…**, which splits by the values of one property. It's only offered when the query has exactly one series and that series is an event. **Show top** keeps the groups with the largest totals over the range. With **Compare with the previous period** on, the previous period uses the same groups, so the comparison is like for like. Players with no value for the dimension, or events without the property, appear as **(unknown)**. For Country and Language, players whose sessions were recorded before the SDK reported these values also appear as **(unknown)**, and a note under the chart says so. With one series, each group is labelled by its value (`GB`, `Yes`). With several series, labels read `Revenue · GB`. When an event is broken down by one of its properties, each row of the totals table has **Filter to this**. It adds a `property = value` filter to the event and removes the breakdown, so the chart shows that one value on its own. ## Player filters The filter bar above the chart narrows every series to a set of players. **Add filter** opens a picker: choose a **Player property**, **is** or **is not**, then tick values. For free-text dimensions the list shows values seen recently with their player counts; type into the search box and choose **Add “…”** to filter by a value nobody has yet. | Dimension | Values | Taken from | | --- | --- | --- | | Country | Two-letter code Roblox reports, such as `GB` | Player's latest session | | Language | Roblox locale, such as `en-us` | Player's latest session | | Premium | Yes, No | Whether they had Premium at their latest session | | Account age | Under 30 days, 30 days to 1 year, 1 to 3 years, Over 3 years | Account age at their latest session | | Place | Place ID | Place of their latest session | | New or returning | New, Returning | New if their first session falls in the query's date range | Every dimension except **New or returning** describes the player as of their most recent session, so a filter means the same thing on every metric and every date range. Country codes are matched in upper case and locales in lower case, so `gb` and `GB` are the same filter. Several filters combine with AND. Values within one filter combine with OR: "Country is GB, US" matches players in either. The **Segment** button applies a saved [segment](https://docs.bloxlytics.app/analytics/segments) on top of the filters. **Clear** removes the filters and the segment together. ## Date range and granularity The date range button offers **Today**, **Yesterday**, **Last 7 days**, **Last 30 days**, **Last 90 days**, **Last 12 months** and a **Custom range** (pick **From** and **To**, then **Apply**). New queries start at **Last 30 days**. All ranges are whole UTC days. The "last N days" presets include today, so **Last 7 days** is today plus the six days before it. Granularity follows the length of the range: - Ranges of two days or less (**Today**, **Yesterday**, a one- or two-day custom range) are plotted per hour. - Anything longer is plotted per day. **Compare with the previous period** runs the same query over the period of equal length immediately before. When the chart has a single line (one series, no breakdown), it also draws the previous period as a second line. Otherwise the comparison appears in the totals table. ## Display types | Display | Shows | | --- | --- | | Line | Each series over time | | Area | Each series over time, filled | | Columns | Each series as columns per period | | Stacked columns | Columns stacked, useful with a breakdown | | Number | Each series's total, with the change against the previous period when comparing, and a trend line when there's one series | | Table | One row per series with its total | | Pie | Each series's (or group's) share of the combined total | Charts plot up to 12 series. They share one y-axis in the first series's units, so if you mix Robux with player counts a note reminds you to hover for each value. Under every display except **Table**, a totals table lists each series with **Value**, **Previous period** and **Change** (when comparing) and **Measured as**. ## Exporting to CSV Select the download button in the chart header: - **Download over time (CSV)**: one row per hour or day. The first column is `Date (UTC)` or `Hour (UTC)`, then one column per series, plus a `(previous period)` column for each series when comparing. Numbers are raw, so they're ready for a spreadsheet. - **Download totals (CSV)**: the totals table, one row per series. The file is named after the query (`Untitled query` until you save it). Text cells that a spreadsheet would run as a formula (starting with `=`, `+`, `-` or `@`) are prefixed with a quote. ## Saved queries Select **Save query**, give it a **Name** (up to 80 characters) and an optional **Description** (up to 240). Saved queries are shared with everyone in the project who can view analytics. A project can hold up to 500. **Saved queries** in the header lists them, with how many series each has and how many dashboards use it. Open one to load it. Once you change it, the header says **Changed from the saved version**; choose **Save** to overwrite it or **Save as new** to keep both. > **Warning:** Saving changes to a query updates every dashboard widget that follows it, straight away. The save dialog lists those dashboards first. Deleting a saved query leaves those widgets showing a message until someone picks another query. The address bar holds the open query (`?q=`), so you can link a colleague to it. ## Adding a query to a dashboard Select **Add to dashboard** and fill in: - **Dashboard**: any dashboard you can edit. Private ones are marked "(private)". - **Widget title**. - **Width**: **Quarter**, **Third**, **Half** or **Full width**. If the query is saved and unchanged, you also choose what happens **When “…” changes**: - **Update the widget too**: the widget follows the saved query. - **Keep this version**: the widget gets its own copy. An unsaved or edited query is always added as a copy. The widget goes at the bottom of the dashboard. The dashboard's date range and filters then apply to it unless you turn **Use the dashboard's filters** off in its settings. See [dashboards](https://docs.bloxlytics.app/analytics/dashboards#custom-query-widgets). ## Worked example: revenue by country To see which countries' revenue moved this month: **1. Choose the metric** Leave series A as **Metric** and choose **Revenue**. **2. Break it down** Set **Break down by** to **Country** and **Show top** to **5**. **3. Compare and display** Choose **Stacked columns** and turn on **Compare with the previous period**. Leave the range at **Last 30 days**. **4. Read the totals** The totals table lists the five countries with the most revenue, each with its total for the last 30 days, the 30 days before, and the change. ## Worked example: one value of an event property To count how many burgers were served, where a `Served` event has a `MenuId` property: **1. Choose the event** Set series A to **Event**, choose **Served** and leave the aggregation at **Count**. **2. Filter to the value** Select **Where property…**, enter `MenuId`, leave the operator at `=` and choose `Burger` from the suggested values. Or, to compare first: set **Break down by** to **An event property…** and choose `MenuId`. Then select **Filter to this** on the `Burger` row. **3. Read the total** Choose **Number** to show the total for the range as one figure. ## Linking to a query Explore also opens from a link with the whole query in the `def` parameter, as URL-encoded JSON. **Open in Explore** on an event's page uses this. The JSON has the same shape as a saved query's definition: ```json Definition { "series": [ { "id": "a", "kind": "event", "event": "", "aggregation": "sum", "property": "", "filters": [] } ], "breakdown": { "kind": "property", "property": "", "limit": 8 }, "filters": [{ "dimension": "premium", "operator": "is", "values": ["Yes"] }], "range": "30d", "compare": false, "display": "line" } ``` `range` takes `today`, `yesterday`, `7d`, `30d`, `90d`, `365d` or `custom` (with `from` and `to` dates). A link with an invalid definition opens an empty query instead. ## Freshness and limits - Results are cached for 60 seconds when the range includes the current time, and for 10 minutes otherwise. - Up to 240 queries a minute can be run from one connection. - Queries read the same data as the rest of the app, so numbers match the [overview](https://docs.bloxlytics.app/analytics/overview), [monetisation](https://docs.bloxlytics.app/analytics/monetisation) and [events](https://docs.bloxlytics.app/analytics/events) pages for the same range and filters. --- # Dashboards > Build custom dashboards from charts, KPIs, queries, funnels and tables, filter them as a whole, and share them through public links and scheduled digests. A dashboard is a grid of widgets that you arrange yourself. Each widget is a chart, a number, a table or a note, and every chart runs through the same query engine as [Explore](https://docs.bloxlytics.app/analytics/explore). Dashboards can be shared with the project or kept private, filtered as a whole, published as read-only links and summarised in scheduled digests. Open **Dashboards** in the project sidebar to see the list. Dashboards you pin with the star appear in your sidebar; pins are personal. ## Create a dashboard Select **New dashboard** and fill in: - **Name** (up to 80 characters) and an optional **Description** (up to 240), shown under the title, on the list and on public links. - **Who can see it**: **Everyone in the project** or **Only me**. See [visibility and permissions](#visibility-and-permissions). - **Start from**: **Blank** or one of the templates below. Then select **Create dashboard**. From the list you can also **Duplicate** a dashboard, which copies its widgets and saved filters. If your role can't share dashboards, the option reads **Duplicate as private**. ### Templates | Template | Description | Widgets | | --- | --- | --- | | Game overview | Players, sessions, revenue and retention at a glance | KPIs for active players, new players, average session and revenue; line charts of active and concurrent players; a retention table | | Economy health | Currency generation, spending and balances | Four economy charts: generation vs spending, top sources, average balance, top sinks | | Monetisation | Revenue, paying players and conversion | KPIs for revenue, paying players, purchases and active players; revenue per day; a top products table | | Retention | Cohorts and returning players | A retention table; returning players and new players over time | | Onboarding | New player flow and early sessions | KPIs for new players, average session, sessions and purchases; new players per day; a funnel widget | | Live operations | Live players, servers and event throughput | A live players widget; KPIs for sessions, revenue and events; concurrent players and events per hour for today, refreshing every minute | | Progression | Progression completions and session depth | Progression completions grouped by status; average session and sessions over time | A template is a starting point: once created, the dashboard is yours to change. The Onboarding template's funnel widget has no funnel chosen yet, so open its settings and pick one of your [funnels](https://docs.bloxlytics.app/analytics/funnels). ## Edit the layout Select **Edit dashboard**. While editing: - **Add widget** lists every widget type with a short description. Pick one and its settings open; new widgets go at the bottom. - Drag a widget by its header. Resize it from its bottom-right corner. - Each widget's **⋯** menu has **Configure**, **Duplicate** and **Remove**. - Rename the dashboard in the title field. Nothing is stored until you select **Save**. **Discard** throws your changes away (it reads **Done** when there are none), and the browser warns you if you try to leave with unsaved changes. The grid has 12 columns. Each widget type has a minimum size, and a dashboard holds up to 60 widgets. On screens narrower than about 640 pixels, widgets stack in reading order (top to bottom, left to right) instead of shrinking. > **Note:** If someone else saved the dashboard after you opened it, your save is refused with **Someone else saved this dashboard**. Your changes stay on screen; **Reload their version** discards them and loads theirs. ## Widget types "Range", "Segment" and "Player filters" show which [dashboard filters](#dashboard-filters) each type can take. Sizes are in grid columns × rows. | Widget | Shows | Minimum size | Range | Segment | Player filters | | --- | --- | --- | --- | --- | --- | | KPI | One headline number with change and trend | 2 × 2 | Yes | Yes | Yes | | Line chart | A metric over time | 3 × 3 | Yes | Yes | Yes | | Bar chart | A metric per day or hour as columns | 3 × 3 | Yes | Yes | Yes | | Custom query | Several metrics or events, filtered and broken down, or a query saved in Explore | 2 × 2 | Yes | Yes | Yes | | Pie chart | Share of a whole: property values or revenue by type | 3 × 3 | Yes | Yes | Yes | | Table | Top products, events or spenders | 4 × 3 | Yes | No | No | | Funnel | Conversion through a saved funnel | 4 × 3 | Yes | Yes | No | | Retention table | Cohort retention grid | 6 × 4 | Yes | Yes | No | | Economy chart | Currency flow, sources, sinks or balances | 4 × 3 | Yes | No | No | | Live players | Players online right now | 2 × 2 | No | No | No | | Event chart | Any event, aggregated and grouped | 3 × 3 | Yes | Yes | Yes | | Text | Notes and context for the team | 2 × 1 | No | No | No | ## Widget settings Every widget has a **Title**. The other settings depend on the type. | Widget | Settings | | --- | --- | | KPI, Line chart, Bar chart | **Metric** (any of the [Explore metrics](https://docs.bloxlytics.app/analytics/explore#metrics)). Line charts also have **Chart type**: **Line** or **Area**. | | Event chart | **Event**, **Aggregation**, **Numeric property** (for property aggregations), **Group by property** (top 8 values), **Chart type** (**Line**, **Area** or **Columns**; grouped columns are stacked) and up to five property **Filters**. | | Pie chart | **Data**: **Event count split by a property** (then **Event**, **Split by property** and **Filters**) or **Revenue by product type** (developer products, game passes, Premium). | | Table | **Show**: **Top products by revenue**, **Most frequent events** (top 20) or **Top spenders (all time)** (top 20). | | Funnel | **Funnel**: one of your saved funnels. | | Economy chart | **Currency** (defaults to the first tracked currency) and **View**: **Generated vs spent**, **Top sources**, **Top sinks** or **Average and median balance**. | | Text | **Text**: plain text up to 4,000 characters; leave a blank line between paragraphs. | | Custom query | See [custom query widgets](#custom-query-widgets). | Most types also have: - **Segment**: a saved [segment](https://docs.bloxlytics.app/analytics/segments), for types that take one. - **Date range**: the widget's own range, for types that take one. New widgets default to **Last 30 days**, except KPIs, which default to **Last 7 days**. - **Refresh**: **Off**, **Every 30 seconds**, **Every minute**, **Every 5 minutes** or **Every 15 minutes**. Live players widgets refresh **Every 15 seconds** by default. - **Compare with previous period** (KPI, Line chart, Bar chart). It's on by default for KPIs. - **Use the dashboard's filters**. See [dashboard filters](#dashboard-filters). > **Info:** **Top spenders (all time)** lists individual players, so it's only shown to people with **Look up players and view profiles**, and never on public links or in digests. **Revenue by product type** ignores the dashboard's segment and player filters. ### Custom query widgets A custom query widget has a **Query source**: - **Build here**: the full Explore builder, including date range, segment, player filters, up to five series and a breakdown. The query belongs to this widget only. - **Saved query**: pick a query saved in Explore. The widget stays in sync, so editing the query in Explore updates every widget that uses it. **Display** lets this widget override the saved chart type, or leave it **As saved**. You can also send a query straight from Explore with **Add to dashboard**. See [adding a query to a dashboard](https://docs.bloxlytics.app/analytics/explore#adding-a-query-to-a-dashboard). ## Reading a widget Each widget's header shows its title, where the data comes from, and the date range it actually used. Two more icons can appear: - A crossed-out filter icon when the widget couldn't take some of the dashboard's filters. Hover it for the reason, for example "Not filtered by the dashboard's segment: economy charts can't take it." - A lock when **Use the dashboard's filters** is off: "This widget keeps its own date range and filters." For widgets with tabular data, **Show as table** switches between the chart and its numbers, and the download button saves a CSV. Time-based charts export one row per hour or day with raw numbers; tables, funnels, retention grids, economy views and live players export what they show. Text widgets have no export. ## Dashboard filters The filter bar under the title applies to the whole dashboard: a date range, a segment and up to eight player filters. These are the same controls as in [Explore](https://docs.bloxlytics.app/analytics/explore#player-filters). The date range can be left at **Each widget's own range**. For each widget that has **Use the dashboard's filters** on (the default): - The dashboard's date range replaces the widget's. - The dashboard's segment replaces the widget's. - The dashboard's player filters are added to the widget's own. - Anything the widget type can't take (see the [widget types](#widget-types) table) is skipped, and the header says so. There's no dashboard-wide breakdown. To break numbers down, use a custom query widget or an event chart's **Group by property**. ### Saved filters and your view Filters set while editing are saved as the dashboard's default for everyone. Filters you change while just viewing affect only your view. They're kept in the page address, so you can send someone a link to the filtered view. When your view differs from the saved default, two buttons appear: **Reset to saved**, and **Save as default** if you can edit the dashboard. ## Visibility and permissions | | Everyone in the project | Only me | | --- | --- | --- | | Who can open it | Anyone with **View analytics** | Only the person who created it | | Who can edit it | People with **Create funnels, segments, dashboards, experiments and alerts** | Only its creator | | Public links | Yes | No | | In-app digests go to | Everyone in the workspace who can view analytics | Its creator only | Change visibility under **Details and visibility**. Only people who can configure analytics can share a dashboard with the project, and only its creator can make it private. Anyone with **View analytics** can create private dashboards. Reordering the dashboards list needs the configure permission. > **Warning:** Making a shared dashboard private revokes all its public links, and everyone else loses access straight away, including anyone who pinned it. Deleting a dashboard removes its widgets, public links and digests. The underlying data isn't affected. ## Public links A public link lets anyone view the dashboard without signing in, for example a publisher or an investor. Select **Share** and open **Public links**. Creating and revoking links needs the configure permission, and the dashboard must be shared with the project. **1. Create the link** Enter an optional **Label** (up to 60 characters), choose when it **Expires** (**After 1 day**, **After 7 days**, **After 30 days**, **After 90 days**, **After a year** or **Never**; the default is 30 days), and select **Create link**. **2. Copy it now** The link is shown once. Only a fingerprint of it is stored, so it can't be shown again; if you lose it, create another. A dashboard can have up to 10 active links. The list shows each link's label, when it expires, its view count and when it was last viewed. **Revoke** stops a link working at once, and can't be undone. ### What viewers see - The project name, the dashboard's name and description, when it was last updated and when the link expires. - Every widget, laid out as on the dashboard, refreshing on its own schedule. - A date range button. Viewers can change the range but not the segment or player filters you saved; if you set any, the page says it's limited to them. Viewers never see widget settings, and they get no links into the app. Widgets that list individual players are replaced by a note. Edits to the dashboard show on every link straight away, and search engines are asked not to index the page. An expired link shows "This link has expired. Ask the person who shared it for a new one." A revoked link, or one for a dashboard that has since been made private, shows "This link doesn't exist or has been revoked." For the endpoints behind these pages, see [shared dashboard](https://docs.bloxlytics.app/api/public/shared-dashboard) and [shared dashboard widget](https://docs.bloxlytics.app/api/public/shared-dashboard-widget). ## Scheduled digests A digest sends the dashboard's numbers, each compared with the period before, on a schedule. Select **Share**, open **Scheduled digests** and choose **Schedule a digest**. Only people who can edit the dashboard can manage its digests. A dashboard can have up to five. | Setting | Options | | --- | --- | | **How often** | **Daily (covers yesterday)** or **Weekly (covers 7 days)** | | **Day** | Weekly only; Sunday to Saturday. Defaults to Monday. | | **Time (UTC)** | On the hour, 00:00 to 23:00. Defaults to 08:00. | | **In-app notification** | On by default | | **Email addresses** | Up to 10, separated by commas | | **Discord webhook** | A Discord webhook URL; stored encrypted and never shown again | At least one of the three channels is needed. Each digest in the list shows its schedule, channels, next send and last send, a switch to pause it, **Send test** and edit and delete buttons. **Send test** delivers a preview of the next digest through every channel, marked as a test, and shows its text in the dialog. ### What a digest covers - **Daily** digests cover yesterday (UTC). **Weekly** digests cover the seven complete days ending yesterday. - That period replaces the dashboard's date range. Its saved segment and player filters still apply. Widgets with **Use the dashboard's filters** off keep their own range. - Each chart or KPI becomes a line with its total and change. A custom query with several series lists up to six of them. Funnels show players entered and converted; pie charts show each part and its share. - Tables, retention grids, economy charts and live players aren't summarised; the digest says how many were left out. Text widgets are skipped. - A digest lists at most 30 lines and ends with a link to the dashboard. ```text Example weekly digest Weekly review · to (UTC), compared with the period before. Active players: 1,204 (up 6.2%) Revenue: R$ 18,450 (down 12%) Avg session: 14m 20s (no change) Tutorial funnel: 640 entered, 71.3% converted 2 widgets aren't summarised here (tables, retention grids, economy and live widgets). Open the dashboard to see them. Open the dashboard: ``` A change under half a percent reads "no change", and a value with nothing in the previous period reads "new". ### When digests are sent Digests are checked every five minutes and sent once their time has passed. If a send is delayed by more than six hours, that slot is skipped and the next one is sent as normal. If any channel fails, the list shows **Last delivery had failures**. ## Limits | Limit | Value | | --- | --- | | Widgets per dashboard | 60 | | Grid | 12 columns | | Dashboard filters | 8 player filters, 1 segment | | Active public links per dashboard | 10 | | Digests per dashboard | 5 | | Email recipients per digest | 10 | | Text widget | 4,000 characters | --- # Segments > Define reusable groups of players from spend, playtime, player properties, events or saved lists, and use them to filter analytics across the app. A segment is a saved rule that picks out a group of players, such as "spent more than 5,000 Robux" or "opened the shop but never bought anything". Once saved, you can filter Explore, dashboards, funnels, retention and the player explorer by it, and compare segments side by side. Segments are built from the player data the Luau SDK collects, so the **Segments** page is only available once the SDK is installed. See [install the SDK](https://docs.bloxlytics.app/projects/install-the-sdk). Anyone with **View analytics** can see segments and their player counts. Creating, editing and deleting them needs **Create funnels, segments, dashboards, experiments and alerts** (`analytics.configure`). ## The segments list **Segments** in the project sidebar lists every saved segment with: - its name, and its description or a one-line summary of its conditions; - **Players**: how many players match now, and their share of all tracked players; - when it was last updated, and a **Players** link that opens the [player explorer](https://docs.bloxlytics.app/analytics/players) filtered to it. Tick two to four segments and select **Compare** to [compare them](#compare-segments). ## Create a segment Select **New segment**, then **Blank segment** or one of the templates: | Template | Description | Condition | | --- | --- | --- | | Whales | Spent more than 5,000 Robux | Total Robux spent > 5,000 | | New players | First joined within 24 hours | First joined (hours ago) ≤ 24 | | At risk | Last seen more than five days ago | Last seen (days ago) > 5 | | Highly engaged | More than 10 hours of playtime | Total playtime (hours) > 10 | | Non-converting | Opened the shop but never purchased | Performed `ShopOpened` and Purchases = 0 | The Non-converting template assumes your game sends a custom event called `ShopOpened`. Change the event to whatever yours is called. Give the segment a **Name** (up to 80 characters) and an optional **Description** (up to 240), build the conditions, and select **Save segment**. ### Live preview While you edit, the **Matching players** panel recalculates about half a second after each change: - the number of matching players and their share of all tracked players; - **Active in the last 7 days**: how many of them played in the past week; - **Total Robux spent** by the group; - **Average playtime**: total playtime per player; - **Average sessions** per player. If a condition is incomplete, the panel says "Complete the conditions to preview." ## Conditions and groups A segment is one or more **groups**, each holding one or more **conditions**. - Within a group, **Match all conditions** requires every condition to be true (AND); **Match any conditions** requires at least one (OR). - With more than one group, **Players must match all of these groups** (AND) or **any of these groups** (OR). Use **Add condition** and **Add group** to build it up. A segment can have up to 10 groups, each with up to 20 conditions. Each row starts with a condition type. ### Player metric A number calculated from everything the SDK has recorded about the player, over their whole history: | Metric | Meaning | | --- | --- | | Total Robux spent | Robux from completed purchases | | Purchases | Number of completed purchases | | Total playtime (hours) | All session time added up | | Sessions | Number of sessions | | First joined (hours ago) | Time since their first session, in hours | | Last seen (days ago) | Time since they were last seen, in days | | Average session (minutes) | Total playtime divided by sessions | Operators: `>`, `≥`, `<`, `≤`, `=` and `≠`. The two "ago" metrics are measured from the moment the segment is used, so a segment like "First joined (hours ago) ≤ 24" always means the last 24 hours. Both are fractional, so 36 hours ago is `36`, not rounded to a day. ### Player property A property you set from your game with `SetPlayerProperty` or `SetPlayerProperties` (see [custom events](https://docs.bloxlytics.app/sdk/custom-events)), such as `Level` or `Guild`. The property box suggests keys seen recently. - The player's latest value for the property is used. - `>`, `≥`, `<` and `≤` compare numbers. Values that aren't numbers don't match. - `=` and `≠` compare the value as exact text. - `contains` is a case-insensitive text match. Only players who have the property can match. A player who has never had `Guild` set doesn't match `Guild ≠ Red`. ### Event Whether, or how often, the player has ever sent an event: | Operator | Matches players who | | --- | --- | | performed | Sent the event at least once | | never performed | Never sent it | | count > *n* | Sent it more than *n* times | | count < *n* | Sent it fewer than *n* times, including never | The event list shows your custom events and the SDK's automatic events, apart from internal ones such as server heartbeats and balance snapshots. Counts cover the player's whole history. ### Player list A fixed list of players rather than a rule. You can't add one by hand. It's created when you select **Save as segment** on a list of players elsewhere in the app: - on a [funnel](https://docs.bloxlytics.app/analytics/funnels), for the players who reached one step but not the next; - on [retention](https://docs.bloxlytics.app/analytics/retention), for a churn group such as **Never returned** or **Never purchased**. A list holds up to 5,000 players; if more are selected, the first 5,000 are saved. The segment's description says where the list came from (for example "Reached “…” but not “…”."), and its condition reads "is one of *n* saved players". A static list never changes, even as those players come and go. You can add further conditions to it, for example to keep only list members who are still active. ## Worked example Suppose you want "paying players at level 10 or above, plus anyone who has crafted more than 20 items". Build two groups and set **Players must match** to **any** of these groups: **1. Group 1: match all conditions** - **Player metric**: Total Robux spent `>` `0` - **Player property**: `Level` `≥` `10` **2. Group 2** - **Event**: `` count `>` `20` times The summary on the list then reads `(Total Robux spent > 0 and Level ≥ 10) or (count > 20)`. ## Where you can use segments | Place | How | | --- | --- | | [Explore](https://docs.bloxlytics.app/analytics/explore) | **Segment** button in the filter bar | | [Dashboards](https://docs.bloxlytics.app/analytics/dashboards) | The dashboard filter bar, and the **Segment** setting on KPI, line, bar, custom query, event, pie, funnel and retention widgets | | [Player explorer](https://docs.bloxlytics.app/analytics/players) | The segment selector, or **View players** on a segment | | [Funnels](https://docs.bloxlytics.app/analytics/funnels) | The **Segment** selector on a funnel | | [Retention](https://docs.bloxlytics.app/analytics/retention) | The **Segment** selector above the cohorts | | [Compare segments](#compare-segments) | Side by side | Table, economy and live players widgets can't be limited to a segment; when a dashboard has one, they show that it was skipped. A segment combines with player filters by AND: players must be in the segment and match every filter. Segments are always evaluated fresh. Editing a segment changes every chart, dashboard and digest that uses it from that moment. > **Warning:** Deleting a segment doesn't affect players, but anything that filtered by it stops working. A saved Explore query that uses it shows "The segment in this query was deleted. Choose another or remove it." until you change it. ## Compare segments The compare page puts two to four segments side by side. Open it from the list by ticking segments and selecting **Compare**, then add or remove segments with the checkboxes at the top. The **Summary** table shows, for each segment: | Row | Meaning | | --- | --- | | Players | Players matching now | | Share of all players | Matching players as a share of all tracked players | | Active in the last 7 days | Matching players who played in the past week | | Total Robux spent | Robux the group has spent in total | | Robux per player | Total Robux spent divided by players | | Average playtime | Total playtime per player | | Average sessions | Sessions per player | | D1, D7 and D30 retention | Retention of the segment's players, see below | Retention is the weighted average across cohorts of the segment's players who first joined during the **Retention range** (**30 days** or **90 days**). Cohorts too young to measure, such as D30 for players who joined last week, are left out. All other rows cover players' whole history. Below the table, two charts show **Players** and **Robux per player** for each segment. ## Things to know - Segments describe players, not sessions or events. Filtering a chart by a segment keeps everything those players did in the chart's date range. - Segment membership is worked out from players' whole history at the moment you look. A segment such as "Last seen (days ago) > 5" can include players who were active earlier in a 30-day chart. - Player metrics only count what the SDK has recorded since you installed it. Earlier purchases and playtime aren't included. See [purchases](https://docs.bloxlytics.app/sdk/purchases). --- # Experiments > Run A/B tests on game settings with consistent player assignment, then read retention, conversion and session results with significance tests. An experiment splits players between two to six variants, each of which can carry its own configuration values, such as a different starting balance. Your game asks the SDK which variant a player is in and applies it. Bloxlytics then compares what each group went on to do. This page covers setting up and reading experiments in the dashboard. For the game side, `GetVariant` and how to apply config values, see [experiments in the SDK](https://docs.bloxlytics.app/sdk/experiments). Experiments need the Luau SDK. Anyone with **View analytics** can see experiments and results. Creating, editing, starting, stopping and deleting them needs **Create funnels, segments, dashboards, experiments and alerts** (`analytics.configure`). ## Create an experiment Open **Experiments** in the project sidebar and select **New experiment**. | Field | Rules | | --- | --- | | **Name** | Up to 80 characters, such as "Starting currency" | | **Key** | What your game passes to `GetVariant`. Starts with a letter; 2 to 48 letters, numbers, `-` and `_`. Unique in the project and can't be changed after creation. | | **Description** | Optional, up to 500 characters: what you're testing and what you expect | | **Allocation** | 1 to 100% of players. Players outside the allocation keep the default experience and aren't counted. | | **Variants** | 2 to 6. See below. | | **Start** and **End** | Optional, in your local time. Players are assigned from **Start** once the experiment is running, and assignment stops automatically after **End**. | A new experiment starts with allocation at 100% and two variants: `A` (**Control**) and `B` (**Variant B**), weighted 50 each. ### Variants and weights Each variant has: - **Key**: 1 to 32 letters, numbers, `-` and `_`, unique within the experiment. `GetVariant` returns it. - **Name**: up to 64 characters. The first variant is always the **control** that the others are compared with. - **Weight**: a whole number from 1 to 100. A variant's share of allocated players is its weight divided by the total of all weights, shown next to the field (**Weight · 50%**). Weights don't need to add up to 100: weights of 1, 1 and 2 give 25%, 25% and 50%. - **Config sent to the game**: optional values, each with a key (up to 40 characters), a type (**Text**, **Number** or **Boolean**) and a value (up to 256 characters). Select **Add value** to add one. With no values, the game can branch on the variant key alone. ```text Example Variant A · Control weight 50 StartingCoins = 100 Variant B · Generous weight 50 StartingCoins = 500 ``` ## Lifecycle An experiment is always in one of three states: | Status | Game servers | What you can change | | --- | --- | --- | | **Draft** | Not sent; `GetVariant` returns `nil` | Everything except the key | | **Running** | Sent to servers, which assign players | Name, description, config values, start and end. Not variants, weights or allocation. | | **Stopped** | Not sent; `GetVariant` returns `nil` | Everything except the key | The buttons on an experiment's page move it between states: - **Start** (or **Restart** once stopped) sets it running. If no start time was set, it becomes now. Game servers pick up running experiments within five minutes, because the SDK refreshes its configuration every five minutes. - **Stop** stops new assignments and sets the end time to now. Players already exposed keep their recorded results, and the game falls back to its default experience. - **Move to draft** (from stopped) makes it fully editable again. Exposure data is kept. A running experiment is only sent to servers between its **Start** and **End** times. > **Warning:** Stopping an experiment sets its **End** to the moment you stopped it. If you **Restart** it later, first edit it and clear or move **End**. Otherwise its end time is already in the past and servers won't assign anyone. Variants, weights and allocation are locked while an experiment runs because changing them would move players between variants mid-test. Saving such a change is refused with "Stop the experiment before changing variants, weights or allocation." Config values aren't locked, so you can correct a value while it runs, but any change affects players already in the test. Deleting an experiment stops servers assigning players within five minutes. Exposure events already recorded stay in your analytics. ## How players are assigned Assignment is deterministic: it's calculated from the experiment key and the player's user ID, never stored, and gives the same answer in Bloxlytics and on every game server. 1. **Allocation.** The 32-bit FNV-1a hash of `:` is taken modulo 10,000. The player is in the experiment if the result is below allocation × 100, so 25% allocation admits buckets 0 to 2,499. 2. **Variant.** A second hash, of `:variant:`, is taken modulo the total weight. Walking the variants in order and adding up their weights, the player gets the first variant whose running total exceeds that number. What this means in practice: - A player lands in the same variant on every server and every visit, with no saved state. - Each experiment's key is part of the hash, so assignments in different experiments are independent of one another. - Two experiments with the same variants but different keys split players differently. - Changing weights or the order of variants would reassign players. That's why they're locked while running. ## Exposure A player only counts towards results once your game calls `GetVariant` for them and gets a variant back. The SDK then records an `$experiment_exposure` event, at most once per experiment per session. Players outside the allocation, and players your game never asks about, aren't counted. If a player somehow has exposures for more than one variant, they're counted in the variant of their first exposure. Every result below only counts what happened after that first exposure. ## Reading the results An experiment's page shows its allocation, start and end, and total players exposed. The **Results** table has one column per variant, with the control first: | Row | Meaning | Test | | --- | --- | --- | | **Players exposed** | Players assigned to the variant | — | | **D1 retention** | Share of exposed players who played again the day after their first exposure | Two-proportion z-test | | **Purchase conversion** | Share of exposed players with a completed purchase after exposure | Two-proportion z-test | | **Average session** | Mean completed session length after exposure: each player's average, averaged across players | Welch's test | | **Progression completions** | Average `$progression` completions per player after exposure | Not tested | | **Revenue** | Robux from completed purchases after exposure | Not tested | D1 retention only counts players whose day after first exposure has finished. When some players are too recent, the cell says how many are "old enough to measure". Each non-control variant shows its relative change from the control, and a badge for each tested row: | Badge | Meaning | | --- | --- | | **Statistically significant · p = …** | p is below 0.05 and both groups have at least 100 players | | **Observed difference only · p = …** | Both groups are large enough, but p is 0.05 or more: the gap could plausibly be chance | | **Not enough data** | Fewer than 100 players in either group, or no data to test | The change is coloured green or red only when it's significant. Otherwise it stays grey. ### The significance tests For retention and conversion, each variant is compared with the control using a two-sided two-proportion z-test. With control rate p₁ from n₁ players and variant rate p₂ from n₂: ```text pooled p = (x₁ + x₂) / (n₁ + n₂) SE = √( p · (1 − p) · (1/n₁ + 1/n₂) ) z = (p₂ − p₁) / SE p-value = 2 · (1 − Φ(|z|)) ``` Session length uses Welch's test on the two means and standard deviations, read against the normal distribution (accurate for groups this size). The 100-player minimum applies to each group being compared; for D1 retention, that's players old enough to measure. ### Worked example You test a generous starting balance. After a week: | | Control (A) | Variant B | | --- | --- | --- | | Players old enough for D1 | 1,000 | 1,000 | | Returned the next day | 300 | 340 | | D1 retention | 30.0% | 34.0% | B shows +13.3% relative to control. The pooled rate is 32%, z ≈ 1.92 and p ≈ 0.055, so the badge reads **Observed difference only**. The result is promising but not yet conclusive. If the same rates held with 2,000 eligible players in each group, z ≈ 2.71 and p ≈ 0.007: **Statistically significant**. > **Tip:** Decide how long to run before you start, and judge the result then. Each variant is tested separately against the control, and nothing adjusts for checking the results repeatedly or for testing many variants at once. With five variants, one may cross p < 0.05 by chance alone. ## Using it in your game The **Use it in your game** section shows a snippet with your experiment's key, ready to copy: ```luau ServerScriptService/Experiments.server.luau local Analytics = require(game.ServerScriptService.Analytics) game.Players.PlayerAdded:Connect(function(player) local variant, config = Analytics:GetVariant(player, "") if variant then -- apply the variant's settings for this player end end) ``` `GetVariant` returns `nil` until the experiment is running, outside its start and end times, and for players outside the allocation, so always keep a default path. See [experiments in the SDK](https://docs.bloxlytics.app/sdk/experiments) for the full reference. ## Things to know - Results use the same SDK data as the rest of the app: sessions, completed purchases and progression events. Purchases the SDK doesn't see don't count towards conversion. See [purchases](https://docs.bloxlytics.app/sdk/purchases). - Revenue and progression completions are shown for context but aren't significance-tested. - For game-wide settings that aren't a test, use [remote configuration](https://docs.bloxlytics.app/sdk/remote-config) instead. --- # Alerts > Get notified in-app, on Discord or by email when players, revenue, retention, economy or tracking move outside the range you expect. An alert watches one metric and notifies you when it crosses a threshold or changes sharply against the period before. Alerts are checked automatically, respect a cooldown so they don't repeat, and keep a history of every notification and whether each channel received it. Open **Alerts** in the project sidebar. Anyone with **View analytics** can see alerts and their history. Creating, editing, enabling, testing and deleting alerts needs **Create funnels, segments, dashboards, experiments and alerts** (`analytics.configure`). ## Create an alert Select **New alert**, or start from **Presets**: | Preset | Metric | Condition | Window | Cooldown | | --- | --- | --- | --- | --- | | CCU drops by 30% | Concurrent players | drops by 30% | 30 minutes | 1 hour | | D1 retention below 20% | D1 retention | is below 20% | 1 day | 1 day | | Revenue drops by 40% | Revenue (Robux) | drops by 40% | 1 day | 12 hours | | Currency generation spikes | Currency generated | rises by 100% | 1 hour | 2 hours | | Tutorial conversion below 50% | Funnel conversion | is below 50% | 1 day | 12 hours | | No events for 10 minutes | Events received | is below 1 | 10 minutes | 30 minutes | The currency and funnel presets still need you to choose which currency or funnel. Then fill in the dialog: | Field | What it does | | --- | --- | | **Name** | Up to 80 characters; used as the notification title | | **Metric** | What to watch (see [metrics](#metrics)) | | **Currency** / **Funnel** | Shown for **Currency generated** and **Funnel conversion** | | **When the value** | **drops by %**, **rises by %**, **is below** or **is above** | | **Threshold** | The number to compare with, in the metric's unit or in % | | **Window (minutes)** | 5 to 10,080 (seven days) | | **Cooldown (minutes)** | 5 to 10,080. After firing, the alert stays quiet for this long. | | **Notify** | One or more [channels](#channels) | | **Enabled** | Disabled alerts keep their settings but aren't evaluated | Select **Create alert**. ## Metrics | Metric | Value checked | Baseline for % conditions | | --- | --- | --- | | **Concurrent players** | Players online now: Roblox's own count if it was sampled in the last five minutes, otherwise the count from live SDK servers | Average count during the previous window | | **D1 retention** | D1 retention of players who joined in about the last week, as a percentage | The week before | | **Revenue (Robux)** | Robux from completed purchases in the window | The window before | | **Currency generated** | Amount of the chosen currency earned (from all sources) in the window | The window before | | **Funnel conversion** | Overall conversion of the chosen funnel for players who entered it in the window, as a percentage | The window before | | **Events received** | Events that arrived from your game in the window, of every kind | The window before | | **Sessions started** | Sessions that started in the window | The window before | For **D1 retention** the window doesn't change what's measured, only how often it's checked. Concurrent players works without the SDK as long as Roblox's player count is available; every other metric needs the SDK, and **Currency generated** and **Funnel conversion** need [economy tracking](https://docs.bloxlytics.app/sdk/economy) and a saved [funnel](https://docs.bloxlytics.app/analytics/funnels). ## Conditions | Condition | Fires when | | --- | --- | | **is below** | Value < threshold | | **is above** | Value > threshold | | **drops by %** | (baseline − value) ÷ baseline × 100 ≥ threshold | | **rises by %** | (value − baseline) ÷ baseline × 100 ≥ threshold | - Percentage thresholds must be between 1 and 1,000. - Percentage conditions compare the last window with the window of equal length before it, and need a baseline above zero. An alert on a metric that was zero last window can't fire on a percentage change. - If there's no value at all, for example a funnel nobody entered, the alert doesn't fire and its status shows **No data**. The alert list describes each one in words, such as "Concurrent players drops by at least 30% vs the previous 30 min" or "Revenue (Robux) is below R$ 1,000 in the last 1 day". ## When alerts are checked Alerts are evaluated continuously in the background. How often each one is checked depends on its window: a tenth of the window, rounded down, but never more often than once a minute or less often than once an hour. | Window (examples) | Checked every | | --- | --- | | 5 to 19 minutes | 1 minute | | 30 minutes | 3 minutes | | 1 hour | 6 minutes | | 6 hours | 36 minutes | | 10 hours or more | 60 minutes | ### Cooldown When an alert fires, it notifies every channel and then stays quiet for its cooldown, even if the condition is still true. It keeps being checked, so its status and last value stay current. After the cooldown, the next check that finds the condition true notifies again. ## Channels Choose at least one: - **In-app notification for everyone who can view analytics**: a notification in the bell menu for every workspace member with **View analytics**, linking to the Alerts page. - **Discord webhook**: paste a webhook URL (`https://discord.com/api/webhooks/…`; `ptb.` and `canary.` addresses work too). It's stored encrypted and never shown again. Once saved, the field shows **Saved** with **Replace URL** and **Remove**. Messages are posted as "Bloxlytics", with the alert name, project name, message and a link, and never ping anyone. - **Email**: up to 10 addresses, separated by commas. The subject is `[] `, and the body is the message and a link to the Alerts page. To create a Discord webhook, open the channel's settings in Discord, then **Integrations → Webhooks → New Webhook → Copy Webhook URL**. ### What a notification says | Condition | Example message | | --- | --- | | drops by % | Concurrent players dropped 35% (400 → 260) over 30 min. | | rises by % | Coins generated rose 120% (50,000 → 110,000) over 60 min. | | is below | Events received is 0, below 1. | | is above | Revenue (Robux) is 25,000, above 20000. | ## The alert list Each alert shows a status: | Status | Meaning | | --- | --- | | **OK** | Last check found the condition false | | **Firing** | Last check found the condition true | | **No data** | Last check found no value | | **Not evaluated yet** | Hasn't been checked since it was created | | **Disabled** | Turned off | Under the description you'll see the last value (with the baseline, for percentage conditions), when it was last checked, when it last fired and its channels. The switch turns it on or off, and the **⋯** menu has: - **Evaluate now**: checks the condition straight away. If it's true and the alert isn't cooling down, this sends a real notification and starts the cooldown. - **Send test notification**: sends to every channel whether or not the condition is true. If it isn't, the message reads "Test notification. Concurrent players is currently 412; this alert fires when it drops by 30% or more over 30 min." A test doesn't start the cooldown. - **Delete**: stops the alert and removes its history. Evaluating and testing are limited to 10 requests a minute from one connection. ## History **History** lists the last 50 times any alert fired or sent a test, newest first, with the time, the alert's name and message. Each one has a badge per channel; a failed delivery is marked "failed" with the reason, such as a Discord `HTTP 404` when a webhook was deleted. > **Tip:** After setting up a Discord webhook or email list, use **Send test notification** and check **History** to confirm each channel works before you rely on it. ## Worked example You want to know quickly if players drop off the game, for example during an outage. **1. Start from the preset** Choose **Presets → CCU drops by 30%**. The metric is **Concurrent players**, **drops by %** 30, window 30 minutes, cooldown 60 minutes. **2. Add a channel** Leave the in-app notification on and paste your team's Discord webhook. Select **Create alert**. **3. What happens** The alert is checked every 3 minutes. Each time, it compares players online now with the average 30 to 60 minutes earlier. If that average was 400 and 260 players are online, that's a 35% drop, so Discord gets "Concurrent players dropped 35% (400 → 260) over 30 min." It won't notify again for an hour. Pair it with **No events for 10 minutes**, which fires when your game stops sending events at all, for example after an update that breaks the SDK or turns off HTTP requests. ## Alerts and insights Alerts are rules you set. [Insights](https://docs.bloxlytics.app/analytics/insights) are fixed, automatic week-over-week checks shown on the overview. Use alerts for anything you need to hear about within minutes. --- # Insights > The automatic week-over-week findings on the overview, the exact rule behind each one, and the sample sizes they need before they appear. Insights are short findings that Bloxlytics works out for you, such as "Weekly active players grew by 18%" or "Players are abandoning the tutorial funnel at the third step". They appear at the top of the **Overview** page when there's something worth saying. Every insight comes from a fixed rule, not a model. The same data always gives the same insights, and each one carries the numbers it was derived from. A rule only produces an insight when its sample is large enough and the change is big enough, so a quiet panel usually means nothing has moved much, not that something is broken. Insights use data from the Luau SDK, so they only appear for projects with the SDK installed. See [data sources](https://docs.bloxlytics.app/data-sources). ## Where insights appear The **Insights** panel sits above the KPI strip on the [overview](https://docs.bloxlytics.app/analytics/overview). It shows the first three insights, with **Show *n* more** for the rest, and when they were last worked out (**Updated …**). Each insight links to the page where you can dig in. If no rule produces anything, the panel is hidden. Each insight has a tone, shown by its icon: | Tone | Icon | Used for | | --- | --- | --- | | Positive | Arrow up and right | A metric improved | | Negative | Arrow down and right | A metric got worse | | Warning | Warning sign | Something needs attention: a funnel drop-off, inflation, a tracking gap | Insights are listed in the order of the rules below, not ranked by importance. ## The comparison weeks Most rules compare **this week** with **last week**: - **This week**: the seven complete UTC days ending at midnight UTC today. Today is left out because it's incomplete. - **Last week**: the seven days before that. The funnel and economy rules use the **Last 7 days** range instead, which includes today, as their own pages do. Percentages in titles are relative changes, rounded to whole numbers. A metric going from 30% to 33% is a 10% increase. ## Every rule | Insight | Compares | Needs | Appears when the change is at least | Links to | | --- | --- | --- | --- | --- | | D1 retention | D1 retention this week vs last week | 50+ new players in each week; last week's rate above zero | 5% | Retention | | Session length | Average completed session length | 100+ sessions in each week | 10% | Overview | | Active players | Distinct players this week vs last week | 100+ players last week | 15% | Overview | | Revenue | Robux from completed purchases | 20+ completed purchases last week | 20% | Monetisation | | Product conversion | Share of active players who bought each product | 20+ buyers of the product last week | 25% | Monetisation | | Funnel abandonment | Biggest step-to-step drop in each saved funnel | 50+ players entering the funnel | A 30% drop at one step | The funnel | | Economy inflation | Currency generation growth vs spending growth | More than 1,000 generated in the previous period | Generation growth more than 20 points above spending growth, and above 10% | Economy | | Tracking gap | Time since the last event | Events received in the last 24 hours | No events for over 10 minutes | SDK | The sections below give the exact wording and evidence for each. ### D1 retention Compares the D1 retention of players who first joined this week with those who joined last week: the share who played again the day after their first day. Each cohort is shifted back a day so that every player in it has had a full next day. - **Needs** at least 50 new players in each week, and a rate for both weeks. - **Appears** when the relative change is 5% or more. - **Title**: "Your D1 retention increased by 12% compared to last week." - **Detail**: "25.0% → 28.0% across 1,240 new players." - **Evidence**: this week's rate, last week's rate, and both weeks' new-player counts. ### Session length Compares the average length of completed sessions that started this week with last week's. - **Needs** at least 100 sessions in each week. - **Appears** when the relative change is 10% or more. - **Title**: "Average session duration decreased by 14%." - **Detail**: "12m 30s → 10m 45s week over week." - **Evidence**: both averages (in seconds) and this week's session count. ### Active players Compares the number of distinct players who played this week with last week. - **Needs** at least 100 players last week. - **Appears** when the relative change is 15% or more. - **Title**: "Weekly active players grew by 18%." - **Detail**: "4,210 → 4,968." - **Evidence**: both weeks' player counts. ### Revenue Compares Robux from completed purchases recorded by the SDK this week with last week. - **Needs** at least 20 completed purchases last week, and last week's revenue above zero. - **Appears** when the relative change is 20% or more. - **Title**: "SDK-recorded revenue dropped by 23% week over week." - **Detail**: "R$ 52,000 → R$ 40,040." - **Evidence**: both weeks' revenue. The title says "SDK-recorded" because this only counts purchases the SDK saw, which can differ from Roblox's own revenue figures. See [Roblox data](https://docs.bloxlytics.app/analytics/roblox-data). ### Product conversion For each product, conversion is the number of distinct buyers divided by that week's active players. - **Considers** products with at least 20 distinct buyers last week, up to the five with the most buyers this week. - **Appears** for each of those whose conversion changed by 25% or more, relative. - **Title**: "Starter Pack conversion increased by 31%." - **Detail**: "1.20% → 1.57% of active players bought it." - **Evidence**: the product ID and both weeks' conversion. Products without a name set are shown as "Product *ID*". See [purchases](https://docs.bloxlytics.app/sdk/purchases) for naming products. ### Funnel abandonment Runs up to ten of your saved [funnels](https://docs.bloxlytics.app/analytics/funnels) over the last 7 days and finds each one's biggest drop between two consecutive steps. - **Needs** at least 50 players entering the funnel. - **Appears** when the biggest step-to-step drop is 30% or more. - **Title**: "Players are abandoning the tutorial funnel at the third step." - **Detail**: "42% drop before “Finished tutorial” in the last 7 days." - **Evidence**: the funnel, the step, the drop and the number of players who entered. "At the third step" means players reached the second step but not the third. If the funnel's name already contains the word "funnel", the title uses the name as it is. ### Economy inflation Checks up to five currencies (those with the most transactions in the last 90 days), comparing the last 7 days with the 7 days before. A currency is inflating when generation grew by more than 10% and by more than 20 percentage points above spending growth. For example, generation +45% and spending +15% is a 30-point gap. - **Needs** more than 1,000 of the currency generated in the previous period. - **Title**: "Coins generation is increasing faster than spending." - **Detail**: "Coins generation increased by 45%, while spending increased by only 15%." - **Evidence**: the currency, generation change and spending change. This is the same health check shown on the [economy](https://docs.bloxlytics.app/analytics/economy) page. Spending outpacing generation (deflation) isn't raised as an insight. ### Tracking gap Fires when your game has sent events in the last 24 hours, but none in the last 10 minutes. - **Title**: "No tracking events received for over 10 minutes." - **Detail**: "Last event at *date and time* UTC. Check that game servers are running the SDK with HTTP requests enabled." - **Evidence**: when the last event was received. A game that has sent nothing for over a day doesn't get this insight, so it stops repeating once a game is retired. For a notification that reaches you straight away, set up the **No events for 10 minutes** [alert](https://docs.bloxlytics.app/analytics/alerts) as well. If events have stopped, see [troubleshooting](https://docs.bloxlytics.app/help/troubleshooting). ## Freshness Insights are worked out when someone opens the overview, then reused for five minutes, so a change can take up to five minutes to appear or disappear. The **Updated** time shows when they were last worked out. Nothing is stored between refreshes: an insight shows only while its rule still holds. ## Why an insight isn't showing - **Not enough data**: each rule has a minimum sample (see [every rule](#every-rule)). New or small games often fall below them. - **The change is too small**: a 4% move in D1 retention is under the 5% bar. - **Today isn't counted**: the weekly rules use complete days only, so a spike this morning shows up tomorrow. - **No SDK data**: insights don't use Roblox's own figures or Open Cloud metrics. Insights never replace a proper look at the numbers. Treat them as prompts to open the linked page. --- # DataStore Explorer > Browse, inspect and safely edit live DataStore entries through Roblox Open Cloud, with previews, conflict checks, version history and an audit trail. The **DataStore Explorer** reads and writes your experience's standard DataStores through Roblox Open Cloud. Every write is previewed before it is sent, checked against the revision you loaded so it never overwrites a newer save from a live server, and recorded in a dedicated DataStore audit log. Open it from **DataStore Explorer** in the project sidebar. It has two tabs: **Browse** and **Audit log**. ## What you need The Explorer works entirely server-side through the Open Cloud API key connected to the project. The key is never sent to your browser or to game servers. Two things gate every action: the Open Cloud scopes on the key, and your Bloxlytics permissions. ### Open Cloud scopes Connect a key in **Integrations** (see [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud)). Bloxlytics reads the key's scopes when you connect it and enables each feature separately: | Capability | Open Cloud scope | Used for | | --- | --- | --- | | List DataStores | `universe-datastores.control:list` | The **DataStores** pane | | List entries | `universe-datastores.objects:list` | The keys pane | | Read entries | `universe-datastores.objects:read` | Opening an entry or an earlier revision | | Update entries | `universe-datastores.objects:update` | Saving edits and restoring revisions | | Create entries | `universe-datastores.objects:create` | **New entry** | | Delete entries | `universe-datastores.objects:delete` | **Delete entry…** | | List versions | `universe-datastores.versions:list` | The **Version history** tab | Browsing needs the first three. If one is missing, the Explorer shows a callout naming the missing scope with a link to **Open integrations**, rather than failing silently. If Open Cloud isn't connected at all, you'll see **Connect Roblox Open Cloud to browse DataStores**. ### Bloxlytics permissions | Permission | Allows | Default roles | | --- | --- | --- | | `datastore.read` | Browse DataStores and ordered DataStores, read entries and revisions, view the DataStore audit log | Owner, Admin, Developer | | `datastore.write` | Create, edit, delete and restore entries, and set or increment ordered DataStore values (also needs `datastore.read`) | Owner, Admin, Developer | Analyst and Viewer roles have neither by default, and analytics permissions never imply DataStore access. Owners and admins can change this per workspace; see [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). The API enforces both permissions on every request — hiding a button in the app is only a convenience. When you can read but not write, the entry toolbar shows **Read only** with a tooltip explaining why: either your role lacks `datastore.write`, or the key lacks `universe-datastores.objects:update`. ## Browsing The **Browse** tab has three panes: **DataStores**, keys and the entry. On narrow screens they stack, with a back button on each. The current selection (DataStore, scope, key and tab) is kept in the page address, so you can bookmark an entry or send the link to a teammate who has access. ### DataStores The **DataStores** pane lists the experience's standard DataStores, 100 at a time; use **Load more** for the next page. **Filter by name** narrows the DataStores already loaded (it matches anywhere in the name, ignoring case). A DataStore whose state isn't active shows its state as a badge. **Reload DataStores** fetches the list again. > **Note:** Ordered DataStores have their own tab; see [Ordered DataStores](#ordered-datastores). Sorted maps and queues are in the [MemoryStore Explorer](https://docs.bloxlytics.app/operations/memorystores). ### Scopes Roblox DataStores are divided into scopes, and Open Cloud has no endpoint for listing which scopes exist. So the keys pane asks you for one: - **Scope** defaults to `global`, the scope Roblox uses when a game doesn't set one. Type another scope (up to 50 characters) and press Enter, or click away, to list it. - **All scopes** lists keys across every scope at once. Each key then shows its scope as a badge, and opening it opens the entry in that scope. ### Keys and prefix search Keys are listed 100 at a time, with **Load more keys** for more. Type in **Key prefix** to ask Roblox for keys that start with that text (up to 50 characters). Matching is a prefix match done by Roblox, not a substring search. Use the arrow keys to move through the list and **Reload keys** to refresh it. Keys that end in a number of three or more digits — `Player_123456789`, for example — get a person icon linking to that user's [player profile](https://docs.bloxlytics.app/operations/player-lookup#player-profile). This is a guess from the key's name, so it only appears when the key looks like it holds a user ID. Deleted keys aren't listed. ## Reading an entry Selecting a key opens the entry. Its header shows the key (with **Copy key**), its scope, and badges for a deleted entry or a [profile-shaped value](#profile-view). The metadata row shows: | Field | What it is | | --- | --- | | **Revision** | The revision ID you're viewing, with **Copy revision id** | | **Revision time** | When that revision was written | | **Created** | When the entry was first created | | **Size** | The value's size against the 4 MB DataStore limit, with a meter that turns amber above 75% | | **Users** | User IDs associated with the entry (used for GDPR data requests), each linking to the player profile | | **Attributes** | The entry's metadata attributes, viewable in a popover | The entry has three tabs: **Value**, **Version history** and **Audit log**. The **Entry actions** menu offers the same plus **Copy entry JSON** and **Delete entry…**. **Reload entry** fetches the latest revision; if you have unsaved edits it asks before discarding them. ### Views Choose a view with the **View** control: - **Tree** — a structured, collapsible view of objects and arrays. Large objects and arrays show 200 children at a time, with a link to show more. - **Profile** — offered only for profile-shaped values (see below). - **Raw JSON** — the value as formatted JSON with line numbers, syntax highlighting and validation. #### Profile view Values saved by profile libraries such as ProfileService and ProfileStore are detected automatically: an object with a `Data` key and at least one other of `MetaData`, `GlobalUpdates`, `RobloxMetaData`, `UserIds` and `WasCorrupted`. These open in the **Profile** view by default, with each section labelled: | Section | Shown as | | --- | --- | | `Data` | The player's saved data | | `MetaData` | Session locks, load counts and tags managed by the profile library | | `GlobalUpdates` | Cross-server updates waiting to be processed | | `RobloxMetaData` | Metadata stored alongside the profile | | `UserIds` | Roblox users associated with this profile (GDPR), each linking to the player profile | Any other top-level keys appear under **Other keys**. The header shows **Was corrupted** or **Not corrupted** from the profile's `WasCorrupted` flag. ### Search and copy In the tree and profile views, **Search keys and values** finds keys and primitive values containing your text, ignoring case. Matches are highlighted and their parents expand automatically. Press Enter for the next match and Shift+Enter for the previous one, or use **Previous match** and **Next match**. **Expand all** and **Collapse all** open or close every container. Each row's actions menu has **Copy value** and **Copy JSON path**. Paths use a JSONPath style rooted at `$`: object keys that are valid identifiers are written `.Coins`, others are quoted (`["Weird key"]`), and array indices are `[0]`. For example: ```text $.Data.Inventory[2].Name ``` The **Raw JSON** view has its own **Find in JSON**, **Format** (re-indents valid JSON) and **Copy JSON**. ## Editing Edits are made in your browser first and sent to Roblox only when you confirm them. **1. Turn on editing** In the tree or profile view, select **Edit**. (The raw view is editable straight away.) Select **Done editing** to return to read-only browsing; your pending changes are kept. **2. Make your changes** In the tree: - Double-click a value, or press Enter on it, to edit it inline. Numbers must be valid numbers. - Use a row's actions menu to **Edit value**, **Rename key** (F2), **Add key** or **Add item**, **Replace with JSON…**, change its type under **Change type** (**Object**, **Array**, **String**, **Number**, **Boolean**, **Null**), or delete it. - Arrow keys move between rows; Left and Right collapse and expand. In **Raw JSON**, edit the text directly. Tab inserts two spaces. The status line shows **Valid JSON** or the parse error with its line and column. You can't switch back to another view while the JSON is invalid. Changed rows are marked with a dot. Ctrl+Z (Cmd+Z on macOS) undoes the last change, up to 50 steps. **3. Review the changes** A bar at the bottom summarises your unsaved changes (for example `3 changes · 2 changed, 1 added, 0 removed`) with **Undo**, **Revert** and **Review and save**. Ctrl+S (Cmd+S) also opens the review. The **Review changes** dialog lists every changed path with its before and after values, or shows the whole **Original and modified** values side by side. Add an optional **Reason** (up to 300 characters); it's recorded in the project audit log with your name. **4. Save to Roblox** Select **Save to Roblox**. On success you'll see the new revision ID, and the entry reloads. > **This writes to your live game data:** Saving changes the value your live servers read the next time they load this key. Nothing guards against an edit that is valid JSON but wrong for your game's code — check types and key names carefully, particularly inside profile `Data`. Some details of how saves behave: - **Size limit.** Values over 4 MB (4,194,304 bytes) can't be saved; the bar shows **Over 4 MB** and the API rejects the value. - **No-op saves.** If the value is unchanged, the API returns **Nothing changed.** and writes nothing. - **Users and attributes.** The editor changes only the value. The entry's associated user IDs and attributes are carried over unchanged on every save, because Roblox clears them if a write omits them. - **Rate limit.** Saves are limited to 60 a minute from the same IP address. - **Leaving with unsaved edits.** Selecting another key or DataStore asks **Discard unsaved changes?** before continuing, and the browser warns if you close or reload the tab. ## Conflicts A live game server may save the same key while you're editing it. Bloxlytics never overwrites that save silently. It checks twice: 1. **Revision check.** The editor sends the revision ID it loaded. The API re-reads the entry first; if the current revision is different, nothing is written. 2. **Etag check.** The update request to Roblox carries the entry's etag, so a save that lands between Bloxlytics' check and its write is rejected by Roblox itself. Either way, the **This entry changed while you were editing** dialog opens. Nothing was saved. It shows: - **Changed remotely** — what changed between the revision you loaded and the latest one. - **Your changes** — your edits, with any that touch a path that also changed remotely highlighted as **Also changed remotely**. Then choose: - **Discard mine and load latest** — drop your edits and reload the entry. - **Reapply my changes on top of latest** — copy each of your changes onto the latest value, then open **Review changes** again so you can check the result before it is written. > **Warning:** Reapplying works path by path: each value you set is written at the same path in the latest value, and each key you removed is removed if it's still there. Array items are matched by position, so if the remote change inserted or removed array items, your edits may land on different items. Read the review carefully, especially for paths marked **Also changed remotely**. If the entry was deleted while you were editing, the dialog says **The entry was deleted** and only offers to discard your changes. While your edits are based on an older revision (after a background refresh found a newer one), the unsaved-changes bar shows **Based on revision … — a newer one exists**. ## Creating entries With a DataStore selected, **New entry** opens a dialog with: - **Key** — up to 50 characters. - **Scope** — defaults to the scope you're browsing. - **Value** — any JSON value, validated as you type, up to 4 MB. - **Associated user ids** — optional; up to 4 Roblox user IDs separated by commas, used for GDPR data requests. Creating fails with **An entry with this key already exists.** if the key is taken, so live data is never replaced from this dialog. To change an existing entry, open it and edit it. ## Deleting entries **Delete entry…** in the **Entry actions** menu asks you to type the key exactly to confirm. It's unavailable while you have unsaved edits, and the API refuses the delete if the entry changed since you opened it (**This entry changed since you opened it. Reload before deleting.**). > **Danger:** Deleting marks the entry as deleted on Roblox immediately. Live servers that read the key get no data — for a player save, that usually means the player starts over the next time they join. Roblox keeps deleted entries recoverable through version history for 30 days, but the Explorer doesn't list deleted keys, so plan recovery before you delete. ## Version history The **Version history** tab lists the entry's revisions, newest first, as Roblox returns them (up to 50). Roblox keeps earlier revisions for a limited time. The current revision is marked **Current**, and deleted revisions **Deleted**. This tab needs the `universe-datastores.versions:list` scope; without it you'll see **Version history isn't available**. Select a revision to see it: - **Compare with current** — every path that differs between that revision and the current value. - **Value** — the revision's full value in the tree view. ### Restoring a revision **Restore** replaces the current value with the selected revision's value. The confirmation, **Restore revision?**, shows what will change (up to 20 paths). Restoring writes the old value as a new revision — history is never rewritten, so a restore can be undone by restoring again. Restoring goes through the same save path as an edit: it needs `datastore.write` and the update scope, it's conflict-checked against the current revision, and it's recorded as **Restored** in the audit logs. You can't restore while you have unsaved edits; save or revert them first. ## DataStore audit log Every write attempt made through Bloxlytics — successful, conflicted or failed — is recorded in a DataStore-specific audit log. Open it from the **Audit log** tab at the top of the Explorer (filtered to the selected DataStore, if any, with **Show all DataStores** to widen it) or from an entry's **Audit log** tab (that entry only). It shows the 100 most recent records. | Column | Shows | | --- | --- | | **When** | Relative time; hover for the exact time | | **By** | The team member, or **Deleted user** | | **Action** | **Updated**, **Created**, **Deleted** or **Restored** | | **Entry** | `datastore/scope/key`; select it to open the entry | | **Changes** | Number of changed paths; hover to see up to 12 of them | | **Revision** | Previous and new revision IDs | | **Result** | **Saved**, **Conflict — not saved** or **Failed** (hover for the error) | Behind the table, Bloxlytics also stores the before and after values of each successful write. Values larger than 256 KB are stored as a size marker instead, and up to 500 changed paths are kept per record. Conflicts and failures are logged for edits and restores; creations and deletions are logged when they succeed. Viewing the DataStore audit log needs `datastore.read`. Successful writes also appear in the [workspace audit log](https://docs.bloxlytics.app/workspaces/audit-log) as `datastore.entry_updated`, `datastore.entry_restored`, `datastore.entry_created` and `datastore.entry_deleted`, with the reason you gave. > **Info:** The audit log only covers changes made through Bloxlytics. Saves made by your game servers show up as new revisions in **Version history**, not here. ## Ordered DataStores The **Ordered** tab works with ordered DataStores: integer values that Roblox keeps sorted, usually leaderboards and counters. It needs different Open Cloud scopes from standard DataStores: | Capability | Open Cloud scope | Used for | | --- | --- | --- | | Read ordered DataStores | `universe.ordered-data-store.scope.entry:read` | Listing entries by value and opening an entry | | Edit ordered DataStores | `universe.ordered-data-store.scope.entry:write` | **Increment**, **Set value**, **New entry** and deleting | Your Bloxlytics permissions are the same as for standard DataStores: `datastore.read` to browse and `datastore.write` to change anything. ### Opening an ordered DataStore Roblox can't list ordered DataStores, so type the name under **Open by name** and select **Open**. To keep it in the list for everyone on the project, select **Save** under the name. Removing a saved name only takes it off the list; nothing changes on Roblox. If you open a name that doesn't exist, Roblox returns an empty list rather than an error, so check the spelling and scope when a store looks empty. ### Browsing entries The entries pane shows the scope's entries sorted by value, 50 at a time, with each entry's position. Choose **Highest first** or **Lowest first**, and narrow to a range with **Min value** and **Max value** (both inclusive). Change the scope at the top; it defaults to `global`. When a key ends in a user id, a person icon opens that player's profile. ### Changing a value Open an entry to see its current value. There are two ways to change it, and both show the value before and after for you to confirm, with an optional reason for the audit log: - **Increment** adds an amount (negative to subtract). Roblox applies it atomically, so it can't overwrite a change a game server makes at the same moment. Use this for refunds and corrections. - **Set value** replaces the value. Bloxlytics reads the entry again just before writing and saves nothing if it no longer matches what you saw. Roblox gives ordered entries no version tag, so a server write in the instant between that check and the save can still be overwritten. Prefer **Increment** while servers are writing to the entry. If the value changed, you're shown the newer value and nothing is saved. Values are whole numbers. **New entry** (the plus button on the entries pane) creates an entry and fails if the key already exists. Deleting asks you to type the key. Ordered DataStores keep no version history on Roblox, so a delete can't be undone there; the audit log keeps the value it removed. ### Ordered DataStore changes Each entry's **Changes** tab, and **Audit log → Ordered DataStores**, list every change made through Bloxlytics with the value before and after, who made it, and whether it was saved. ## Opening a player's entry from their profile Each player profile has a **DataStore** tab that opens that player's entry in the same editor, using a DataStore name, scope and key template you set once per project. See [Player Lookup](https://docs.bloxlytics.app/operations/player-lookup#datastore). ## Related - [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud): Create an API key with the DataStore scopes. - [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis): The Open Cloud APIs the Explorer calls and the scopes they need. - [MemoryStore Explorer](https://docs.bloxlytics.app/operations/memorystores): Sorted maps and queues shared by your servers. --- # MemoryStore Explorer > Inspect and fix the sorted maps and queues your servers share, through Roblox Open Cloud, with etag-checked edits, safe queue peeking and an audit trail. The **MemoryStore Explorer** reads and writes your experience's MemoryStore sorted maps and queues through Roblox Open Cloud. MemoryStores hold live state that every server shares, such as matchmaking pools, cross-server queues and short-lived caches, so a bad item can break a game straight away. The Explorer lets you look at that state and fix it without publishing a script. Open it from **MemoryStore Explorer** in the project sidebar. It has three tabs: **Sorted maps**, **Queues** and **Audit log**. ## What you need Like the [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores), it works through the Open Cloud key connected to the project, and two things gate every action: the key's scopes and your Bloxlytics permissions. ### Open Cloud scopes | Capability | Open Cloud scope | Used for | | --- | --- | --- | | Read sorted maps | `memory-store.sorted-map:read` | Browsing sorted maps and opening items | | Edit sorted maps | `memory-store.sorted-map:write` | Saving, creating and deleting items | | Read queues | `memory-store.queue:dequeue` | Peeking at a queue and **Read and hold** | | Add to queues | `memory-store.queue:add` | **Add item** | | Discard queue items | `memory-store.queue:discard` | Removing items you've read | | Flush MemoryStores | `memory-store:flush` | **Flush…** | Roblox also lists the flush scope as `universe.memory-store:flush`; either one works. Add scopes to your key and connect it again in **Integrations** (see [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud)). ### Bloxlytics permissions | Permission | Allows | Default roles | | --- | --- | --- | | `memorystore.read` | Browse sorted maps, peek at queues, view the MemoryStore audit log | Owner, Admin, Developer | | `memorystore.write` | Save, create and delete sorted map items; add, hold and discard queue items (also needs `memorystore.read`) | Owner, Admin, Developer | | `memorystore.flush` | Flush every sorted map and queue (also needs both of the above) | Owner, Admin | MemoryStore permissions are separate from DataStore permissions, so you can let someone fix matchmaking without giving them player data. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions#memorystores). ## Opening a sorted map or queue Roblox can't list sorted maps or queues, so type the name under **Open by name** and select **Open**. Select **Save** under the name to keep it in the list for everyone on the project; removing it from the list changes nothing on Roblox. Roblox returns an empty result for a name that doesn't exist, so check the spelling if a map or queue looks empty. The current selection is kept in the page address, so you can share a link to an item with a teammate who has access. ## Sorted maps ### Browsing items The items pane lists the map's items in sort order, 50 at a time: items without a sort key first, then numeric sort keys, then text sort keys, each then ordered by id. Switch between **Ascending** and **Descending**. Each row shows the item's sort key and how long it has left before it expires. The filter button opens four bounds: **Sort key above**, **Sort key below**, **Id after** and **Id before**. All are exclusive. A sort key bound that's a number compares numeric sort keys; anything else compares text. ### Editing an item Opening an item shows its value as JSON, its sort key, its size and when it expires. You can change: - **Value**: any JSON, up to 32 KB. - **Sort key**: **None**, a **Number** or **Text** (up to 128 characters). - **Time to live**: up to 45 days. Saving restarts the expiry from that moment, so saving with no other changes renews the item. **Review and save** shows what changed in the value and the sort key, and when the item will expire, with an optional reason for the audit log. **Revert** throws away your edits. > **This writes to live game state:** Every server sees a saved item immediately. Check what your game expects before changing its shape. ### Conflicts When you open an item, Bloxlytics keeps its version tag (`etag`). Saving and deleting check it first, and the save sends it to Roblox, which refuses the write if a server changed the item in the meantime. Nothing is overwritten. You can then: - **Load latest**: discard your edits and show the item as it is now. - **Keep my edits**: keep your edits and review them again against the newer version before saving. If the item expired or was removed while you were editing, you're told so instead. ### Creating and deleting The plus button on the items pane creates an item with an id, value, sort key and time to live. It fails if the id already exists, so live items are never replaced from here. Deleting asks you to type the item's id. MemoryStores keep no history, so a deleted item can't be restored; the audit log keeps its last value. ## Queues Opening a queue shows the items at the front, its **Changes**, and controls to add, hold and discard items. ### Peeking **Front of the queue** lists up to 100 items in the order servers would read them: highest priority first, then oldest first. Each shows its data, priority, time left and size. Peeking uses a 0-second invisibility window, so game servers can still take these items. Items that a server or a teammate is currently holding aren't shown. Select **Peek again** to refresh. ### Adding items **Add item** puts JSON data (up to 32 KB) on the queue with a **Priority** (higher numbers go nearer the front) and a **Time to live** of up to 45 days. Servers reading the queue can pick it up straight away. ### Removing items To clear a stuck or bad item, use **Read and remove**: **1. Read and hold** Choose how many items to take from the front (1 to 100) and how long to hide them (1 to 3,600 seconds), then select **Read and hold**. Those items are hidden from every server for that window. **2. Check them** The held items appear at the top with a countdown. **3. Discard or let them go** Select **Discard** to remove them for good. Otherwise do nothing: when the countdown ends they return to the queue in their original place. Roblox can't release them early. Holding hides items from your game, so it needs `memorystore.write`; peeking only needs `memorystore.read`. ## Flushing everything **Flush…** deletes every sorted map and queue in the experience, for all live servers, immediately. It's meant for recovering from corrupted state, and can't be undone. DataStores aren't affected. To confirm, type the experience's Universe ID. Roblox finishes the flush in the background, which can take a few moments. ## MemoryStore audit log The **Audit log** tab, and each item's or queue's **Changes** tab, list every change made through Bloxlytics: saves, creations and deletions of sorted map items, items added to queues, reads that held items, discards and flushes. Each row shows who made it, when, and whether it was saved, stopped by a conflict or refused by Roblox. Select an item or queue to open it. Changes also appear in the workspace [audit log](https://docs.bloxlytics.app/workspaces/audit-log). Changes your game servers make don't appear here. ## Related - [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores): Standard and ordered DataStores. - [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis): The Open Cloud APIs the Explorer calls and the scopes they need. --- # Player Lookup > Find any player by username, display name or user ID, see their status and history, and act on them from one profile. **Player Lookup** finds a player — whether or not they've played your game — and opens their player profile: analytics, DataStore entry, economy, moderation, commands and a full activity timeline, with the actions your role and the game allow. Open it from **Player Lookup** in the project sidebar. It needs the `players.view` permission, which every default role has. ## Finding a player Type into the search box (**Roblox username, display name or user ID**). Results update as you type. The search runs in two stages: 1. **Players recorded in this game.** Bloxlytics searches the players the SDK has seen join your servers. A number matches that exact user ID; text matches anywhere in the username or display name, ignoring case. Up to 20 matches are shown. 2. **Roblox, if nothing matched.** When no recorded player matches, Bloxlytics asks Roblox's public user APIs instead: a number is looked up as a user ID, and text that could be a username (3 to 20 letters, digits or underscores) is looked up as an **exact** username. So you can find a player who has never joined — for example to ban them pre-emptively, or to check an account someone reported — as long as you have their exact username or ID. Roblox display names aren't searchable this way, because Roblox has no lookup by display name. > **Note:** Recorded players come from the [Luau SDK](https://docs.bloxlytics.app/projects/install-the-sdk). Without the SDK, every search goes to Roblox, and profiles show only Roblox's public details. See [Data sources](https://docs.bloxlytics.app/data-sources). ### Results | Column | Shows | | --- | --- | | **Player** | Avatar, display name and username, an online dot, and any [banners](#banners) | | **Status** | **Online** with the server ID, **Offline · last seen …**, or **No activity recorded in this game** for accounts found on Roblox | | **First joined** | First time the SDK saw the player | | **Playtime** | Total recorded playtime | Select a row to open the profile. Each row also has an actions menu; see [Actions](#actions). ### Moderation log and bans If you have `moderation.view`, Player Lookup also has **Moderation log** and **Bans** tabs: the project-wide record of kicks, warnings, bans and unbans, and the list of bans mirrored from Roblox. Both are covered in [Moderation](https://docs.bloxlytics.app/operations/moderation). ## Player profile The profile lives at `/projects//players/`. It opens from Player Lookup, from the **Players** list, from player links across the app (including user IDs in DataStore entries), or by pasting the address. The selected tab is part of the address (`?tab=economy`), so links can point at a tab. If neither the SDK nor Roblox knows the user ID, you'll see **Player not found** with a link to **Search players**. ### Header The header shows: - The display name, any [banners](#banners), and **Roblox account banned** if Roblox reports the account as banned platform-wide (this is Roblox's own ban, not one from your game). - `@username` and the user ID, with **Copy user ID**. - **Online · server …** if the player is in one of your live servers, otherwise **Last seen …**. - **Roblox account since** — the account's creation date from Roblox. - **No activity recorded in this game. Details come from Roblox's public profile.** for players the SDK has never seen. The profile refreshes every 30 seconds while open. Roblox profile details are cached for an hour. ### Banners Banners are badges next to a player's name, in the header and in player lists. They only come from verified sources, and hovering one says which: | Banner | Source | Hover text | | --- | --- | --- | | **Banned** | An active ban in the project's ban records, which mirror Roblox's user restrictions for your experience. The hover text says when it ends, or **Permanent**. | Verified with Roblox | | **Flagged**, **Under investigation** | Flags set by a team member on the **Moderation** tab | Set by a team member in Bloxlytics | | Your own labels | Rules you define under **Player banners** on the project's **SDK** page: when a player property reported by your game equals a value (for example `Role` = `Moderator`), show a label in a chosen tone. Matching ignores case. Up to 20 rules; labels up to 24 characters. | Reported by the game | Banners never come from anything a player could set themselves; game banners use only properties your servers reported with `Analytics:SetPlayerProperty`. ### Actions **Actions** opens a menu containing only what both your role and the game currently support: | Action | Shown when | | --- | --- | | **Open profile** | In result lists only | | **Join server** | The player is in a live server. Opens Roblox's join link for that server. | | **Execute command** | You have `commands.execute`. Opens the command form with the player filled in. | | **Run macro** | You have `macros.execute`. Lists the project's macros, favourites first; picking one opens the Macro Runner with this player filled in so you can review it before running. | | **Warn player**, **Kick player** | You have `moderation.act`, and the player's current server has a connected Cmdr bridge that advertised warn or kick support. | | **Ban player** or **Unban player** | You have `moderation.act`, and the Open Cloud key has `universe.user-restriction:write`. Which one appears depends on whether the player has an active ban. | | **Moderation history** | On the profile, if you have `moderation.view`. Jumps to the **Moderation** tab. | | **Open Roblox profile** | Always | | **Copy user ID** | Always | How bans are verified with Roblox and how kicks and warnings are confirmed by the game is covered in [Moderation](https://docs.bloxlytics.app/operations/moderation). Commands and macros are covered in [Commands](https://docs.bloxlytics.app/operations/commands) and [Macros](https://docs.bloxlytics.app/operations/macros). ## Profile tabs Tabs you don't have permission for are hidden. | Tab | Needs | Data comes from | | --- | --- | --- | | [Overview](#overview) | `players.view` | SDK events and server heartbeats | | [Analytics](#analytics) | `players.view` | SDK events | | [DataStore](#datastore) | `datastore.read`, plus Open Cloud | Open Cloud DataStores | | [Economy](#economy) | `players.view` | SDK economy and purchase events | | [Moderation](#moderation) | `moderation.view` | Bloxlytics records and Roblox user restrictions | | [Commands](#commands) | `commands.execute` | Cmdr bridge | | [Activity](#activity) | `players.view` | SDK events | ### Overview - **Activity** — **First joined**, **Last joined** (**Playing now** if online), **Total playtime**, **Sessions**, **Purchases**, **Robux spent** (completed purchases recorded by the SDK), **Events recorded** and **Active days**. For players the SDK hasn't seen, this says **No activity recorded in this game**. - **Current server** — when the player is online: the server ID (with **Copy server ID**), its player count, whether a command bridge is connected on that server, and **Join server**. Presence comes from server heartbeats; a server counts as live until 90 seconds pass without one. - **Progression** — player properties whose names look like progression: `Level`, `Rebirths`, `Island`, `World`, `Stage`, `Prestige`, `Progression`, `PlayerType`, `VIP` or `Role` (case and punctuation are ignored, so `rebirth` and `player_type` match too). - **Currency balances** — the latest balance reported for each currency. - **Player properties** — the latest value of every property your game set with `Analytics:SetPlayerProperty`, and when it changed. ### Analytics - **Retention** — whether the player came back on day 1, day 7 and day 30 after their first day: **Returned**, **Didn't return**, or **Not yet measurable** if that day hasn't happened yet. - **Active days** — a grid of the last 12 weeks, one square per day the player was active. - **Session history** — the 100 most recent sessions with start, end, duration and server. A session still running shows **In progress**. - **Funnel participation** — funnels the player entered with `Analytics:TrackFunnel`, with the steps they reached. - **Progression** — the latest status (**Started**, **Completed**, **Failed**) and score for each path tracked with `Analytics:TrackProgression`. - **Events in the last 30 days** — the player's 30 most frequent events; each event (other than funnel steps) links to its event page. For what these measure across all players, see [Retention](https://docs.bloxlytics.app/analytics/retention), [Funnels](https://docs.bloxlytics.app/analytics/funnels) and [Events](https://docs.bloxlytics.app/analytics/events). ### DataStore Opens the player's own DataStore entry in the full [DataStore editor](https://docs.bloxlytics.app/operations/datastores): structured and raw views, search, editing with review, conflict handling, version history and the audit log all work exactly as they do in the DataStore Explorer. Tell it where player data lives with three fields, then select **Open**: | Field | Default | | --- | --- | | **Data store** | `PlayerData` | | **Scope** | `global` | | **Key template** | `Player_{userId}` | The key template can use `{userId}` and `{username}`. For example, a game that saves with `DataStore:GetAsync("user_" .. player.UserId)` uses `user_{userId}`. Below the fields you'll see the exact DataStore, scope and key being shown, and **Open in DataStore Explorer** to open the same entry there. > **Info:** These settings are remembered per project **in your browser**, not shared with your team. Each teammate sets them once on their own device. This tab needs `datastore.read` to see the entry and `datastore.write` to change it, as well as the Open Cloud scopes listed in [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores#open-cloud-scopes). If the entry doesn't exist at that key you'll see **Entry not found** — check the key template. > **Warning:** Edits here write to the player's live save. If the player is online, their server may save over your change, or your save may be rejected as a conflict when their server saves first. For player data held in a session-locked profile, make changes while the player is offline. ### Economy - **Currencies** — each currency's **Balance**, plus total **Earned** and **Spent**. - **Transaction history** — the 200 most recent currency changes reported by the game server: **Earned**, **Spent**, or a transfer (**Received** or **Transfer**, with the other player), with the source or sink, item, amount and **Balance after**. - **Purchases** — the 200 most recent developer product, game pass and Premium purchases recorded by the SDK, with status **Completed**, **Failed** or **Prompted** (the prompt opened but no purchase was recorded) and the Robux amount. - **Items owned** — player properties whose names start with `Items`, `Inventory`, `Pets` or `Owned` (ignoring case). These come from the SDK's [economy](https://docs.bloxlytics.app/sdk/economy) and [purchase](https://docs.bloxlytics.app/sdk/purchases) tracking. ### Moderation Shows the player's live ban status read from Roblox, team flags, the moderation history, private notes and Roblox's restriction log for the player. It needs `moderation.view`; changing anything needs `moderation.act`. Everything on this tab is documented in [Moderation](https://docs.bloxlytics.app/operations/moderation). ### Commands Appears if you have `commands.execute`. It has two parts: - **Execute a command** — the command form, with suggestions and validation from the commands your live servers registered. If a command's first argument is a player, this player is filled in. - **Commands targeting this player** — the 100 most recent commands sent to this player from Bloxlytics, including kicks and warnings, with who sent them, the result and the status (**Queued**, **Running**, **Succeeded**, **Timed out**, **Rejected**, **Failed**). Commands need the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge) in your game; see [Commands](https://docs.bloxlytics.app/operations/commands) for routing, validation and who a command runs as. ### Activity A timeline of every event recorded for the player, newest first and grouped by day, written as plain sentences — "Joined the game", "Spent 50 Coins on Shop", "Purchased VIP for R$ 199". Filter by category with the chips at the top: **Sessions**, **Economy**, **Purchases**, **Funnels**, **Progression**, **Properties**, **Experiments** and **Custom events**. Select several to combine them, or **Clear** to show everything. The timeline loads 100 events at a time; **Load older activity** fetches more until you reach the start of recorded activity. Events are kept for 25 months. ## Troubleshooting **A player I know has played doesn't appear in search** Recorded players come from the SDK. If the SDK wasn't running in the server they played on, Bloxlytics has no record of them. Search by exact username or user ID to find them on Roblox instead. See [Install the SDK](https://docs.bloxlytics.app/projects/install-the-sdk). **Kick and warn aren't in the actions menu** They're offered only when the player is in a live server running the Cmdr bridge, and that server advertised kick and warn support when it connected. See [Moderation](https://docs.bloxlytics.app/operations/moderation) and [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge). **The DataStore tab says the entry isn't found** The default template, `PlayerData` / `global` / `Player_{userId}`, is only a guess. Find one of your players' keys in the [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores) and set the same DataStore, scope and key pattern on the tab. **Online status is slow to change** Presence comes from server heartbeats. A player who leaves disappears with the next heartbeat from their server; a server that stops sending heartbeats is treated as offline after 90 seconds. --- # Moderation > Ban and unban players through Roblox's Ban API, kick and warn them through the Cmdr bridge, and keep notes, flags and a verified moderation log. Bloxlytics moderates players through two channels, and never reports an action as done until the channel that applies it says so: | Action | Applied by | Needs | Confirmed by | | --- | --- | --- | --- | | Ban, unban | Roblox, through Open Cloud's user restrictions API (the same Ban API Creator Hub uses) | An Open Cloud key with `universe.user-restriction:write` | Reading the restriction back from Roblox straight afterwards | | Kick, warn | Your game server, through the Cmdr bridge | The player online in a server running the bridge, with kick or warn enabled | The game server's result | | Notes, flags | Bloxlytics only | Nothing in the game | Not applicable — they never affect the player in-game | All moderation lives on the [player profile](https://docs.bloxlytics.app/operations/player-lookup) (the **Actions** menu and the **Moderation** tab) and in **Player Lookup** (the **Moderation log** and **Bans** tabs). ## Before you start - **Bans** need an Open Cloud key connected under **Integrations** with `universe.user-restriction:write`. Add `universe.user-restriction:read` as well so Bloxlytics can show live ban status, the Roblox restriction log and the **Bans** list. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). - **Kicks and warnings** need the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge) running in the player's server and the command bridge turned on in project settings. Kick is on unless the bridge is started with `AllowKick = false`. Warn only exists if you pass an `OnWarn` function, because Bloxlytics can't know how your game shows a warning. - Your role needs the moderation permissions below. ### Permissions | Permission | Allows | Default roles | | --- | --- | --- | | `moderation.view` — View moderation history and notes | The **Moderation** profile tab, the **Moderation log** and **Bans** tabs | Owner, Admin, Developer | | `moderation.act` — Kick, warn, ban and unban players | Kick, warn, ban, unban, adding and deleting notes, setting and clearing flags | Owner, Admin, Developer | Every moderation request also needs `players.view`, and acting needs `moderation.view` too. The API checks these on every request; the app only uses them to decide what to show. Analysts and viewers don't get moderation access unless an owner or admin grants it — see [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). ## Ban a player The **Ban player** item appears in a player's **Actions** menu when the connected key can write user restrictions and the player isn't already banned. **1. Open the ban dialog** On the player's profile, or from a row in **Player Lookup**, open **Actions** and choose **Ban player**. **2. Write the reasons** **Reason shown to the player** is required, up to 400 characters. Roblox shows it to the player when they try to join. **Private note for moderators** is optional, up to 1,000 characters, and is stored by Roblox as the ban's private reason. If you leave it empty, Bloxlytics sends `Issued by via Bloxlytics` so the ban can still be traced from Creator Hub. **3. Choose a duration** Pick **1 hour**, **1 day** (the default), **7 days**, **30 days**, **Permanent** or **Custom**. A custom duration is a number of **Minutes**, **Hours** or **Days** and must be at least one minute. **4. Decide about alternate accounts** By default Roblox also blocks accounts it detects as the player's alts. Turn on **Don't ban alternate accounts** to ban only this account. **5. Confirm** Select **Ban player**. Bloxlytics sends the ban to Roblox, then reads the restriction back. When the read-back shows the ban is active you see "… is banned — verified with Roblox". > **Warning:** A ban applies to the whole experience, not just one server, and with alternate accounts included it can affect accounts you haven't looked at. Roblox enforces it the next time the player tries to join. A ban doesn't remove a player who is in a server right now; kick them as well if you need them out immediately. ### How verification works Roblox can accept a ban request without applying it — for example when the key's permissions are wrong. So for every ban and unban Bloxlytics: 1. Records the action in the moderation log as **Awaiting confirmation**. 2. Sends the change to Roblox with the record's id as the idempotency key, so a retried request can't apply twice. 3. Reads the player's restriction back from Roblox. 4. Marks the record **Verified with Roblox** if the restriction now matches, or **Not applied** with the reason if it doesn't. If the read-back doesn't match you get the error "Roblox accepted the request but the ban state didn't change. Check the key's user-restriction permission." If the key lacks the write scope altogether the request is refused before anything is sent: "The connected API key lacks universe.user-restriction:write, so bans must be issued in-game." Bans and unbans are limited to 20 requests a minute. ### Ban limits | Setting | Limit | | --- | --- | | Reason shown to the player | 1–400 characters | | Private reason | Up to 1,000 characters | | Duration | 60 seconds minimum, or permanent | | Alternate accounts | Included unless **Don't ban alternate accounts** is on | ## Unban a player When the player has a verified, active ban, the **Actions** menu shows **Unban player** instead. Confirm **Unban** in the "Unban …?" dialog. The ban is lifted in Roblox, read back the same way, and recorded as an unban. ## Kick or warn a player **Kick player** and **Warn player** appear only while the player is online in a server whose bridge advertised that capability when it started. Bloxlytics doesn't guess: if the player is offline, or in a server without the bridge, the items aren't offered. **1. Choose the action** Open **Actions** and choose **Kick player** or **Warn player**. **2. Write the message** For a kick, write the **Reason shown to the player**; for a warning, the **Warning message**. Both are required and up to 300 characters. **3. Send it** Select **Kick** or **Warn**. The dialog switches to "Kick sent to the game server" (or "Warn sent…") with a live status, and says "Recorded in Bloxlytics and waiting for the game server to confirm" until the game answers. The command goes to the server the player is in — never to another one. The bridge then: - **Kick** calls `Player:Kick` with your message and reports `Kicked `. The player can rejoin straight away; kicking isn't a ban. - **Warn** calls your `OnWarn(player, message)` function and reports `Warned `, or the error your function raised. If the player has left, the bridge reports "Player is not in this server." and the action is marked **Not applied**. If no server picks the command up or answers in time it times out and is marked **Not applied** with "The game server didn't confirm the action." Kicks and warnings are limited to 30 a minute and also appear in the Macro Runner's command history. > **Note:** Kicks and warnings run through the command bridge, so they stop working when the bridge is turned off in project settings ("The command bridge is disabled in project settings."). ## The Moderation tab The **Moderation** tab on a player's profile has five sections. ### Ban status Read live from Roblox each time you open the tab (it needs `universe.user-restriction:read`). An active ban shows **Banned** with its end time or "Permanent", "Verified with Roblox" and when, **Shown to player**, **Private reason**, **Started** and **Alternate accounts** ("Also banned" or "Not banned"). Otherwise you see **Not banned**. If the key can't read bans you're told the ban state can't be verified here. If Roblox returns an error you see "Couldn't verify the ban status" with the message. ### Flags Two flags a team member can switch on or off, each with an optional reason of up to 300 characters: | Flag | Meaning | | --- | --- | | **Flagged** | Mark for attention by the moderation team. | | **Under investigation** | An open investigation is in progress. | Flags are set in Bloxlytics only. They don't affect the player in-game, and they show as banners on the player wherever they appear in Bloxlytics. ### Moderation history Every action recorded for this player — ban, unban, kick, warning — with the reason, who issued it ("Issued by … in Bloxlytics"), when, the ban duration and expiry, the private reason, and its confirmation badge. Kicks and warnings link to their command execution id. Up to the 200 most recent are shown. ### Notes Notes are private to your team, up to 4,000 characters each, and are listed newest first with their author. Anyone with `moderation.act` can add one with **Add note**. A note can be deleted by its author, or by an owner or admin; the deletion is recorded in the audit log, including the start of the note's text. ### Roblox restriction log When Roblox has logged any ban changes for this player, they're listed here: banned or unbanned, when, the duration, the shown reason and who made the change — "By a game server script" or the Roblox user. This includes bans made in-game or on Creator Hub, which Bloxlytics didn't issue. ## Confirmation badges | Badge | Meaning | | --- | --- | | **Verified with Roblox** | A ban or unban read back from Roblox and matched. | | **Confirmed by game** | A kick or warning the game server reported as done. | | **Awaiting confirmation** | Recorded in Bloxlytics; waiting for Roblox or the game server. | | **Not applied** | Roblox or the game server refused, failed, or never answered. Hover for the detail. | | **Unverified** | Recorded in Bloxlytics only. | | **Roblox log**, **Reported by game** | Records whose source is Roblox's restriction log or the game's own moderation. | ## Banners Banners are the labels shown next to a player's name in lists and on their profile. They only ever come from verified sources — nothing is inferred from usernames or display names: | Banner | Source | | --- | --- | | **Banned** (with end time or "Permanent") | An active, unexpired ban in Bloxlytics' mirror of Roblox's user restrictions. | | **Flagged**, **Under investigation** | Set by a named team member on the **Moderation** tab. | | Your own labels, such as Moderator or VIP | A banner rule in the SDK configuration matched a property your game server reported, for example `Role = Moderator`. Matching ignores case. You can have up to 20 rules. | | **Roblox account banned** | Roblox's public profile reports the account as banned across Roblox, not just in your experience. | ## Moderation log and bans **Player Lookup** has two project-wide views for anyone with `moderation.view`. ### Moderation log Every kick, warning, ban and unban issued from Bloxlytics, newest first (up to 200 rows). Search by user ID, username or reason, and filter by action (**Bans**, **Unbans**, **Kicks**, **Warnings**) and confirmation (**Confirmed / verified**, **Awaiting confirmation**, **Not applied**). Columns: time, action, player, moderator, reason, duration and confirmation. Select a row to open that player's **Moderation** tab. ### Bans A searchable mirror of Roblox's user restrictions for the experience, including bans made outside Bloxlytics. It's refreshed by the scheduled Roblox sync (projects are re-synced when their last sync is more than 6 hours old), whenever you ban or unban, and whenever someone opens a player's **Moderation** tab. Search by user ID or reason; **Include lifted bans** also shows bans that were lifted or have expired. The list shows up to 500 records, with the shown reason, private reason, start, expiry and whether alts are included. > **Info:** A sync imports up to 5,000 restrictions. If the experience has more, only the first 5,000 are synced and the sync reports it as partial. Without `universe.user-restriction:read` the list can't be kept in sync, and the tab tells you so. ## What isn't supported - **Bans without Open Cloud.** Roblox's Ban API is only available through Open Cloud. Without a key that has the write scope, ban in-game or on Creator Hub; Bloxlytics will still show those bans if it can read restrictions. - **Banning from specific places.** Bloxlytics applies experience-wide restrictions only. - **Kicking offline players.** A kick needs a live server with the player in it; there's nothing to kick otherwise. Use a ban. - **Warnings without `OnWarn`.** The bridge reports "Warnings aren't configured in this game (OnWarn)." ## Audit log Every moderation action is also written to the [audit log](https://docs.bloxlytics.app/workspaces/audit-log): "Banned a player", "Unbanned a player", "Kicked a player", "Warned a player", "Added a moderation note", "Deleted a moderation note", "Flagged a player" and "Cleared a player flag". Bans record whether they were verified, the duration and the shown reason. --- # Run commands > Run your game's registered Cmdr commands on live servers from the browser, with validation, server routing and a full history. Bloxlytics can run the [Cmdr](https://eryn.io/Cmdr/) commands your game already has, on live game servers, from the **Macro Runner** page. It doesn't add a scripting backdoor: the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge) in your game only runs commands that are registered with Cmdr, through Cmdr's own dispatcher, so argument types, arity and your `BeforeRun` hooks apply exactly as they do in-game. It never evaluates source code. ## What you need - The [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge) installed and running in your game. Game servers long-poll Bloxlytics over HTTPS; Bloxlytics never opens a connection into Roblox. - The **Cmdr bridge** switch on in the project's SDK configuration. When it's off, servers still register but nothing is dispatched, and requests fail with "The command bridge is disabled in project settings." - At least one live server running the bridge. The **Macro Runner** header shows how many are online. - The right permissions: | Permission | Allows | Default roles | | --- | --- | --- | | `commands.view` — View registered Cmdr commands and history | Opening **Macro Runner**, the **Commands** and **History** tabs, validating command lines | Owner, Admin, Developer | | `commands.execute` — Execute Cmdr commands | Running commands from the **Console**, the player profile and macros | Owner, Admin, Developer | The API checks these on every request. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions) to grant them to other roles. ## Command discovery You don't define commands in Bloxlytics. When a game server starts, its bridge sends a registration ("hello") listing every command registered with Cmdr: name, aliases, description, group and arguments (name, type, description, whether it's optional, and its default). It re-sends this every 5 minutes while the server runs. Bloxlytics keeps the most recent definition of each command per project. Commands that no server has reported for 24 hours are hidden, so a command you remove from the game drops out by itself. The **Commands** tab lists them, searchable by name, alias, description or group: | Column | Shows | | --- | --- | | **Command** | Name and aliases | | **Description** | Cmdr's description | | **Arguments** | The signature: `` for required arguments, `[name: type]` for optional ones, with defaults | | **Group** | The command's Cmdr group | | **Availability** | **Available**, or **Not enabled for the platform** when the game's bridge `AllowedGroups` doesn't include the command's group | If the list is empty, no server with the bridge has started since it was installed, or none has reported in the last 24 hours. ### Registration limits | Item | Limit | | --- | --- | | Commands per server | 500 | | Aliases per command | 20 | | Arguments per command | 32 | | Command or argument name | 64 characters | | Description | 512 characters (argument descriptions 256) | ## The console Open **Macro Runner → Console**. **1. Pick a server** The server picker starts on **Automatic**. Open it to choose a specific live server instead. Each server shows its short job id, player count and tags (set in-game with `Analytics:SetServerTag`), plus: - a person icon when you're in that server, so commands run as your player; - a lock icon when the server only runs commands as a team member who is in it; - a **Studio** badge for Studio sessions. **2. Type the command** Type the command line in the command field, using Cmdr's syntax: arguments separated by spaces, double quotes to group words (`announce "Server restarting soon"`). As you type the first word, up to eight matching commands are suggested; use the arrow keys and **Tab** or **Enter** to accept one, **Esc** to dismiss. Commands that aren't enabled for the platform are greyed out and marked "Not enabled". Once the command is recognised, its signature appears below the field with the argument you're typing highlighted. **3. Run it** Press **Enter** or select **Run**. The line appears in the log with its status, then the command's output or error when the game answers. Beside the console, **Recent commands** lists the last 15 commands anyone on the team ran, with who ran them, when, whether they came from a macro, and the result. It refreshes every 10 seconds. You can also run a command for one player from their [profile](https://docs.bloxlytics.app/operations/player-lookup): **Actions → Execute command**, or the **Commands** tab. Choosing a command whose first argument is a player fills in that player for you, and the command is routed to that player's server. ## Validation Before a command is queued, Bloxlytics checks its structure against the reported definitions — in the browser as you type, and again on the server: - the first word must be a registered command name or alias (case doesn't matter); - the command must be enabled for the platform; - every required argument must be present (optional arguments, ones with defaults and ones Cmdr resolves at runtime don't count); - there can't be more arguments than the command defines, unless the last one is a string, because Cmdr joins trailing words into a final string argument; - `number` and `integer` arguments (and their plural forms, comma-separated) must be numbers, integers must be whole, and `boolean` arguments must be one of `true`, `false`, `yes`, `no`, `on`, `off`, `1` or `0`. Other types — players, teams, your own custom types — are validated by Cmdr in the game, and a mistake comes back as the command's error. A command line can be up to 500 characters. ## Where a command runs Bloxlytics chooses one live server running the bridge, in this order: 1. The server you picked. 2. If the command targets a player (from their profile), the server that player is in. 3. The server you're playing in, if your Roblox account is in one. 4. Otherwise, the least busy live server. **Automatic** never picks a Studio session — choose one explicitly to run commands there. If only Studio sessions are online you're told "Only Studio sessions are online. Choose one explicitly to run commands there." A server you picked that has gone offline gives "That server is offline or doesn't run the bridge." > **Warning:** A command runs on **one** server. A command that changes game state, such as giving currency, only affects players and data on that server. If the command names a player, run it from that player's profile or pick the server they're in. ## Who a command runs as You sign in to Bloxlytics with Roblox, so your Roblox account is verified. That decides how the game sees your command: - **You're in the target server**: the bridge runs the command *as your player*. Your `BeforeRun` hooks see `context.Executor` as your Player and judge you exactly as if you'd typed the command in-game. No hook changes are needed. - **You're not in it**: the command runs in the *system context* — `Executor` is `nil` and `context.Data.Bloxlytics` holds your Bloxlytics id, name, role and the execution id. Use `CmdrBridge.IsPlatformContext(context)` in a hook to allow these; see [Cmdr bridge security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security). A server whose bridge is started with `AllowSystemCommands = false` refuses system-context commands. Sending one fails with "That server only runs commands as a player who is in it. Join it with your linked Roblox account, or pick the server you're in." **Automatic** skips such servers unless you're in one. The line under the console summarises this for you, and every command in the log and history has an icon showing whether it ran as a player or in the system context. ## Per-role Cmdr groups On top of the game's own `AllowedGroups` and hooks, an owner or admin can restrict which Cmdr groups each role may run from Bloxlytics. On the project's **SDK** page, under **Configuration**, **Cmdr groups per role** has a list for **Owner**, **Admin** and **Developer**. Leave a list empty to allow every group the bridge permits. Analysts and viewers who've been granted command access use the developer list. A command outside your role's list is refused before it's sent, for example: `Your role (developer) may only run commands in these Cmdr groups: Admin. "kick" is in "Moderation".` ## Results and statuses Each command becomes an execution that moves through these states: | Status | Meaning | | --- | --- | | **Queued** | Waiting for the chosen server to pick it up. | | **Running** | Delivered to the server. | | **Success** | The command ran. The output is Cmdr's replies plus the command's return value, or "Command executed." | | **Error** | Cmdr, a `BeforeRun` hook (reported as "Rejected by BeforeRun hook: …"), the bridge or the command itself refused or failed. The error is shown. | | **Timed out** | No server picked it up, or it didn't report back, in time. | Commands expire 60 seconds after they're queued. A command still queued after about 70 seconds, or delivered but without a result after 2 minutes, is marked **Timed out**. The bridge refuses expired commands and command ids it has already run, and Bloxlytics accepts exactly one result per command, only from the server it was delivered to. Output and errors are kept up to 4,000 characters. > **Note:** A command that times out may still have run if the server ran it but couldn't report back. Check the game before running it again. Each person can run up to 30 commands a minute in a project. ## History **Macro Runner → History** has a **Command history** table of the last 100 commands sent to game servers — from the console, from macros (marked "From a macro"), from player actions, and kicks and warnings (marked with their kind). Select a row for the full record: the command, status, who ran it, the server's full job id, **Ran as** (player or system), duration, when it was queued and completed, and the full output or error. A player's **Commands** tab lists the commands that targeted that player. Every command is also written to the [audit log](https://docs.bloxlytics.app/workspaces/audit-log) as "Executed a command", with the command line and its target server or player. ## Troubleshooting **No game servers with the Cmdr bridge are online** Commands can only run while at least one live server runs the bridge. Check the server's output for `[Bloxlytics bridge]` warnings — a wrong bridge key, a missing **Allow HTTP Requests** setting or an unreachable API URL stop it from registering. See [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge). **A command shows Not enabled for the platform** The game's bridge `AllowedGroups` doesn't include that command's Cmdr group. Add the group in-game if you want it available from Bloxlytics. **A command fails with Rejected by BeforeRun hook** Your game's hook refused it. If the command ran in the system context, your hook probably requires a player; either join the server so it runs as you, or allow `CmdrBridge.IsPlatformContext(context)` in the hook. **The Run button is disabled** Hover it for the reason: your role lacks `commands.execute`, or no live server with the bridge is online. To run several commands in order, with variables and delays, save them as a [macro](https://docs.bloxlytics.app/operations/macros). --- # Macros > Save sequences of Cmdr commands with variables and delays, then run, dry run, pause, resume or stop them on live servers. A macro is a saved sequence of [Cmdr commands](https://docs.bloxlytics.app/operations/commands) and delays that runs in order on live game servers — for example a starter package for a player: give coins, give an item, send a message. Macros live on the **Macro Runner** page, on the **Macros** tab. A macro never grants more than single commands do. Each step goes through the same permission checks, validation and bridge path as a command you type in the console, and your permissions are checked again before every command step. ## Permissions | Permission | Allows | Default roles | | --- | --- | --- | | `commands.view` | Seeing macros, their run history and favouriting them | Owner, Admin, Developer | | `macros.manage` — Create and edit macros | Creating, editing, duplicating and deleting macros | Owner, Admin, Developer | | `macros.execute` — Run macros | Starting runs (dry runs included) and pausing, resuming or stopping your own runs | Owner, Admin, Developer | | `commands.execute` | Required as well for a real run, and checked before each command step | Owner, Admin, Developer | Someone without `macros.manage` can open a macro but sees "You can view this macro but your role can't edit it". Pausing, resuming or stopping a run is limited to the person who started it, or an owner or admin. ## The macro list The **Macros** tab lists every macro in the project with its step count, variables, description and last run ("Never run" if it hasn't been). Favourites come first, then the rest alphabetically. Use **Search macros** to filter by name or description. Each row has: - a star to **Add to favourites** or **Remove from favourites** — favourites are personal, so they only change the order for you; - **Run**, which opens the run dialog; - a menu with **Edit** (or **View**), **Duplicate**, **Run history** and **Delete**. Select **New macro** to create one. ## Edit a macro ### Name and description **Name** is required, up to 80 characters. **Description** is optional, up to 300 characters, and is shown in the list and when picking a macro from a player's profile. ### Steps Steps run in order, and a failed step stops the macro. A macro has between 1 and 50 steps, and each step is one of two kinds, chosen with the **Command** / **Delay** switch on the step: | Kind | What it holds | Limits | | --- | --- | --- | | **Command** | A Cmdr command line, which may contain `{variables}` | Up to 500 characters | | **Delay** | A wait, in seconds, before the next step | 0.1 to 600 seconds | Every step can also have an optional description of up to 200 characters. Add steps with **Add command** or **Add delay** (a new delay starts at 2 seconds). On each step: - drag the handle to reorder, or focus the handle, press **Space**, then use the arrow keys; - **Move up** and **Move down** shift it by one place; - **Duplicate step** inserts a copy just below; - **Remove step** deletes it (a macro always keeps at least one step). The command field has the same suggestions and argument hints as the console. Steps are validated against the commands your servers have reported, with any `{variable}` standing in for a value of the right type. If no server has reported its commands yet, steps can't be validated or autocompleted, and the editor says so. ### Variables Variables let one macro work for different players or amounts. Use `{name}` anywhere in a command step, such as `givecoins {player} {amount}`, and declare it in the **Variables** panel with **Add**. You can have up to 20 variables, each with: | Field | Rules | | --- | --- | | Name | Letters, numbers and `_`, not starting with a number. Must be unique. | | **Label** | Optional, up to 60 characters. Shown instead of the name when running. | | **Default** | Optional, up to 200 characters. Pre-filled when running. | Every variable used in a step must be declared. If a step uses an undeclared one the panel warns you and offers **Add** to declare it; you can't save until it's declared. Declared variables that no step uses are marked "Not used by any step." > **Tip:** Name a variable `player` to make the macro work from player profiles: choosing **Run macro** on a profile fills `{player}` in with that player's username. ### Save, duplicate and delete - **Create macro** (new macros) or **Save changes** saves it for everyone in the project. If you try to leave with unsaved changes you're asked to **Discard changes** first. - **Duplicate macro** creates a copy named "… (copy)" with the same steps and variables and opens it. - **Delete macro** removes the macro for everyone after you confirm. Its past runs stay in the history. You can't run a macro while it has unsaved changes; save first. ## Run a macro Select **Run** on the list or in the editor. The run dialog shows: - a field for each variable, pre-filled with its default (or the player you came from); - **Target server** — **Automatic** or a specific live server, the same picker as the console; - who the commands will run as; - **Dry run**; - **Steps to run**, a preview of every step with your values substituted. Select **Run macro**, or **Start dry run** when **Dry run** is on. You're taken to the run's page. Before a real run starts, Bloxlytics checks that: - every variable has a value — empty ones are marked "Required"; - every command step, with values substituted, is a valid command line (otherwise you get "Step N: …"); - at least one live server runs the bridge. Values containing spaces are quoted for Cmdr automatically, and double quotes are removed from them. Each person can start up to 10 runs a minute in a project. > **Warning:** A real run executes every command on live servers, one after another, without asking again. Commands that give currency or items, or change saved data, can't be undone by stopping the macro. Use a dry run first when you've changed a macro. ### Which server the steps run on When you pick a server under **Target server**, every command step is sent to it. With **Automatic**, each step is routed the way a single console command is: to the server you're playing in, or else the least busy live server, never a Studio session. Each step then runs as your player if you're in that server, or in the system context otherwise — see [who a command runs as](https://docs.bloxlytics.app/operations/commands#who-a-command-runs-as). If a macro works on one player, pick the server that player is in so every step reaches them. ### Dry runs A dry run checks a macro without sending anything to the game: - each command step is validated against the registered commands and shows "Would run: …" with the final command line; - delays are checked but not waited out; - the first invalid step fails the run, like a real failure. A dry run doesn't need a live server, so it's the only kind possible while no server with the bridge is online or the bridge is turned off. If your role lacks `commands.execute`, the dialog only offers dry runs. > **Note:** Starting a dry run needs only `macros.execute`, but in the current version the per-step permission check also requires `commands.execute`, so a dry run started by someone without it stops at the first command step with "You no longer have permission to execute commands in this project." ## Follow a run The run page (**Macro Runner → History → Run**) updates live. It shows: - the run's status, a **Dry run** badge if it is one, who started it, the target server and the elapsed time; - a progress bar, "N of M steps", and a percentage; - the log, one line per step: `[position/total]`, the command (or `wait N s`), the step status and its duration, with the output or error underneath; - a summary, such as "Completed successfully.", "Dry run passed — every step is valid." or "Failed at step 3. Later steps were skipped."; - the variable values the run used. Step statuses in the log: | Word | Meaning | | --- | --- | | `PENDING` | Not reached yet. | | `RUNNING` | Sent and waiting for the game server's result, or waiting out a delay. | | `SUCCESS` | The command succeeded, or the delay finished. | | `VALID` | Dry run: the step is valid. | | `FAILED` | The command failed, timed out or was refused. The run stops here. | | `SKIPPED` | Never ran because the run failed or was stopped earlier. | Run statuses are **Running**, **Paused**, **Stopped**, **Completed** and **Failed**. ### Pause, resume and stop While a run is active, the person who started it — or an owner or admin — sees: - **Pause**: the run halts before the next step. During a delay, the countdown freezes until you resume. - **Resume**: carries on from where it paused. - **Stop**: ends the run before the next step (or during a delay); remaining steps are marked skipped. A command already sent to a server isn't recalled by pausing or stopping; the run waits for its result first. When a run has finished, **Run again** opens the run dialog for the same macro. ## How runs execute Bloxlytics runs a macro in the background, one step at a time, so you can close the page while it runs: 1. Before each command step, Bloxlytics checks that the person who started the run still has `macros.execute` and `commands.execute` in the project. Roles can change while a run is in progress; if they've lost either, the step fails with "You no longer have permission to execute commands in this project." and the run stops. 2. The step is queued exactly like a console command, so the command bridge switch, your role's Cmdr group list and routing all apply. 3. Bloxlytics waits for the game server's result. A step whose command fails or times out fails the run, and later steps are skipped. A run is only ever executed once at a time. If it is interrupted on our side mid-run, it picks up where it stopped, and a step whose command was already sent waits for that command's result instead of sending it again. ## History **Macro Runner → History** lists recent macro runs, filterable by macro (**All macros** or one macro; **Run history** in a macro's menu opens this filtered). Each run shows its status, how many steps succeeded or failed, who ran it, the duration and when it started; select one to open its run page. The **Command history** table below includes every command a macro sent, marked "From a macro". Creating, updating, duplicating, deleting, running, dry-running, pausing, resuming and stopping macros are all recorded in the [audit log](https://docs.bloxlytics.app/workspaces/audit-log), with the variables each run used. ## Run a macro for a player On a player's [profile](https://docs.bloxlytics.app/operations/player-lookup), **Actions → Run macro** lists the project's macros, favourites first, and shows "Uses {player}" for macros with a `player` variable. Choosing one opens the run dialog on **Macro Runner** with `{player}` filled in, so you can review the steps and pick the player's server before running. --- # Workspaces > How personal workspaces and organisations hold your projects and team, and how to create, switch, edit, leave and delete them. Everything in Bloxlytics belongs to a workspace. A workspace holds projects (one per Roblox experience), members with a role each, a permission matrix and an audit log. There are two kinds: | | Personal workspace | Organisation | | --- | --- | --- | | Created | Automatically, the first time you sign in with Roblox | By you, from **Create organisation** | | Name | Your Roblox display name when the account was created; you can rename it | Whatever you choose, 2–60 characters | | Owner | You, always | Whoever created it, until ownership is transferred | | Can be left | No | Yes, by anyone except the owner | | Can be deleted | No | Yes, by the owner only | | Members, roles, permissions, audit log | Yes | Yes | Both kinds work the same way once they exist: the same roles, the same [permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions), the same [invitations](https://docs.bloxlytics.app/workspaces/invitations) and the same [audit log](https://docs.bloxlytics.app/workspaces/audit-log). The difference is ownership. A personal workspace is tied to your account and can't be handed on, left or deleted. An organisation is a shared space whose ownership can move between people, which makes it the better home for a game a team works on. ## Your personal workspace The first time you choose **Continue with Roblox**, Bloxlytics creates your account and a personal workspace with you as its owner. You can add projects to it straight away. It's listed under **Personal** in the workspace switcher and marked **Personal workspace** in its settings. The workspace is named after your Roblox display name at the moment your account was created. Changing your display name on Roblox later doesn't rename it; rename it yourself under **Workspace settings → General**. ## Organisations ### Create an organisation **1. Open the workspace switcher** Select the workspace name at the top of the sidebar, then **Create organisation**. **2. Fill in the details** | Field | Required | Notes | | --- | --- | --- | | **Organisation name** | Yes | 2–60 characters. | | **Logo URL** | No | An `https://` link to an image. A square image works best. Shown in the switcher and on invitation pages. | | **Billing email** | No | Stored on the organisation. | A preview of the organisation's avatar updates as you type. **3. Create it** Select **Create organisation**. You become its **Owner** and land on its (empty) project list. Next, [invite your team](https://docs.bloxlytics.app/workspaces/invitations) and [add an experience](https://docs.bloxlytics.app/projects/add-an-experience). Anyone signed in can create organisations; it doesn't depend on a role in any other workspace. ### Edit an organisation Open **Workspace settings → General**. You can reach it from the switcher (**Workspace settings**) or from **Settings** at the bottom of the sidebar. | Section | What you can change | Permission needed | | --- | --- | --- | | **Details** | **Name** and **Logo URL**. Select **Save changes**, or **Discard** to undo. | `workspace.manage` | | **Plan and billing** | **Plan** (Free, Pro or Studio) and **Billing email**. Select **Save billing**. | `workspace.billing` | | **Danger zone** | **Leave workspace** or **Delete organisation**. | See below | Without the permission, the fields are shown but disabled, with a note saying which permission is needed. By default only the owner holds `workspace.billing`; admins hold `workspace.manage`. The same **General** tab exists for your personal workspace. > **Note:** The **Plan and billing** section currently records the plan you choose on the workspace without charging anything; the app says so above the plan picker. ### Leave an organisation Under **Danger zone**, select **Leave**, then **Leave workspace**. You lose access to every project in the organisation immediately, and the only way back is a new invitation. The owner can't leave. Transfer ownership first (**Members**, the member's **⋯** menu, **Transfer ownership**); you become an admin and can then leave. Personal workspaces can't be left. ### Delete an organisation Only the owner can delete an organisation. Under **Danger zone**, select **Delete organisation**, type the organisation's name exactly to confirm, then select **Delete organisation** again. > **Deleting an organisation can't be undone:** Deleting an organisation removes all of its projects, their Open Cloud credentials and SDK keys, dashboards, macros, moderation records and configuration, every membership and pending invitation, and the organisation's audit log. Game servers still using those projects' SDK and bridge keys are refused within about a minute. > > Nothing on Roblox changes: your DataStores, bans already applied through the Ban API and Roblox's own analytics are untouched. If you only want to retire one game, delete its project instead from the project's [settings](https://docs.bloxlytics.app/projects/settings). Personal workspaces can't be deleted. ## Switching workspaces The workspace switcher at the top of the sidebar lists every workspace you belong to: your personal workspace under **Personal**, then your organisations under **Organisations**, alphabetically. A tick marks the one you're in. Choosing one opens its project list. Below the list are **Create organisation** and **Workspace settings** (for the current workspace). When you open Bloxlytics, it takes you back to the last project you used if you can still open it, and otherwise to the last workspace you used, or your first one. ## Projects in a workspace A workspace's home page lists its projects, each with its name and description, **Universe ID**, **Data sources** status icons, **Last event** and **Created** date. The header shows whether it's a personal workspace or an organisation, its plan, and your role ("You're an admin of this workspace.", for example). Things to know about projects and workspaces: - **One project per experience, everywhere.** A project *is* a Roblox experience, identified by its Universe ID. An experience can be a project in only one workspace across all of Bloxlytics. If it's already in another workspace, you'll see "… is already a project in another workspace. Ask someone there to invite you." - **You must control the experience to add it.** Creating a project checks with Roblox that you own or manage the experience. See [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience). - **Projects can't be moved between workspaces.** There's no transfer. To move a game to an organisation, delete the project in the old workspace and add the experience again in the new one. A new project always starts empty in Bloxlytics; Roblox's own data, such as DataStores and Roblox analytics, is untouched, and Roblox analytics are imported again once you connect Open Cloud. - **Access is per workspace.** Your role in a workspace applies to every project in it. There are no per-project roles. Creating a project needs `project.create` (owners, admins and developers by default). Without it, **New project** is hidden and the empty project list says "Ask an admin to create one — your role can't." ## If a workspace disappears If you open a workspace you're no longer a member of, or one that has been deleted, Bloxlytics shows **Workspace not found**. It deliberately doesn't say which: someone who isn't a member can't tell whether a workspace exists. ## Related - [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions): The five roles and exactly what each can do. - [Invitations](https://docs.bloxlytics.app/workspaces/invitations): Add people by their Roblox account. - [Audit log](https://docs.bloxlytics.app/workspaces/audit-log): Who did what, in the workspace and its projects. - [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience): Create your first project. --- # Roles and permissions > The five workspace roles, every permission and what it unlocks, how to customise a role's permissions, and the rules that no customisation can change. Every member of a workspace has exactly one role. The role decides what they can do in the workspace and in **every project in it**; there are no per-project roles. Each role starts with a default set of permissions, and owners and admins can [customise](#customising-a-role) the set for each role in their workspace. Bloxlytics checks permissions on the server for every request. Hiding a button in the app is a convenience; the server is what refuses the action. See [enforcement](#how-permissions-are-enforced). > **Info:** Analytics access never implies DataStore, moderation or command access. Those are separate, explicit permissions, so you can give an analyst full analytics without letting them touch player data or game servers. ## The five roles | Role | Rank | In short | | --- | --- | --- | | **Owner** | Highest | Full control, including billing and deleting the organisation. Always holds every permission. Exactly one per workspace. | | **Admin** | | Everything except billing; manages members and permissions. | | **Developer** | | Analytics, DataStore and MemoryStore editing, moderation, commands and macros. | | **Analyst** | | Analytics and configuration of funnels, segments and dashboards. | | **Viewer** | Lowest | Read-only analytics and player lookup. | Rank matters beyond permissions: you can only invite, change, remove or customise roles *below* your own. See [rules no override can change](#rules-no-override-can-change). ## Default permission matrix These are the defaults for a new workspace. ✓ means granted; — means not granted. Highlighted cells on the **Roles & permissions** tab show where your workspace differs from this table. | Permission | Key | Owner | Admin | Developer | Analyst | Viewer | | --- | --- | :-: | :-: | :-: | :-: | :-: | | **Workspace** | | | | | | | | Edit workspace details | `workspace.manage` | ✓ | ✓ | — | — | — | | Manage billing and plan | `workspace.billing` | ✓ | — | — | — | — | | Change member roles and remove members | `members.manage` | ✓ | ✓ | — | — | — | | Invite members | `members.invite` | ✓ | ✓ | — | — | — | | View audit log | `audit.view` | ✓ | ✓ | ✓ | — | — | | **Projects** | | | | | | | | Create projects | `project.create` | ✓ | ✓ | ✓ | — | — | | Edit project settings and SDK keys | `project.settings` | ✓ | ✓ | ✓ | — | — | | Manage Roblox Open Cloud credentials | `project.credentials` | ✓ | ✓ | — | — | — | | Delete projects | `project.delete` | ✓ | ✓ | — | — | — | | **Analytics** | | | | | | | | View analytics | `analytics.view` | ✓ | ✓ | ✓ | ✓ | ✓ | | Create funnels, segments, dashboards, experiments and alerts | `analytics.configure` | ✓ | ✓ | ✓ | ✓ | — | | **Players** | | | | | | | | Look up players and view profiles | `players.view` | ✓ | ✓ | ✓ | ✓ | ✓ | | **DataStores** | | | | | | | | Browse and read DataStores | `datastore.read` | ✓ | ✓ | ✓ | — | — | | Edit, delete and restore DataStore and ordered DataStore entries | `datastore.write` | ✓ | ✓ | ✓ | — | — | | **MemoryStores** | | | | | | | | Browse sorted maps and read queues | `memorystore.read` | ✓ | ✓ | ✓ | — | — | | Edit sorted map items and add or discard queue items | `memorystore.write` | ✓ | ✓ | ✓ | — | — | | Flush all MemoryStore data in an experience | `memorystore.flush` | ✓ | ✓ | — | — | — | | **Moderation** | | | | | | | | View moderation history and notes | `moderation.view` | ✓ | ✓ | ✓ | — | — | | Kick, warn, ban and unban players | `moderation.act` | ✓ | ✓ | ✓ | — | — | | **Commands** | | | | | | | | View registered Cmdr commands and history | `commands.view` | ✓ | ✓ | ✓ | — | — | | Execute Cmdr commands | `commands.execute` | ✓ | ✓ | ✓ | — | — | | Create and edit macros | `macros.manage` | ✓ | ✓ | ✓ | — | — | | Run macros | `macros.execute` | ✓ | ✓ | ✓ | — | — | ## What each permission unlocks Some permissions only work together with others. The **Also needs** column lists them: granting a permission without them has no effect for that feature. ### Workspace | Permission | Unlocks | Also needs | | --- | --- | --- | | `workspace.manage` | Changing the workspace **Name** and **Logo URL** under **Workspace settings → General**. | — | | `workspace.billing` | Changing the **Plan** and **Billing email** under **Plan and billing**. | — | | `members.manage` | Changing members' roles and removing members on **Members**; changing the permission matrix on **Roles & permissions**. Still limited to roles below your own. | — | | `members.invite` | The **Invite people** form, the **Pending invitations** list and **Revoke**. You can only invite to roles below your own. | — | | `audit.view` | The **Audit log** tab and sidebar item for the workspace and all its projects. | — | ### Projects | Permission | Unlocks | Also needs | | --- | --- | --- | | `project.create` | **New project** on the workspace's project list. | — | | `project.settings` | Editing the project's settings; showing the SDK write and bridge keys (each viewing is logged); rotating either key; editing the SDK configuration, including **Cmdr groups per role** and player banners; clearing reported SDK issues. | `analytics.view` to open the project | | `project.credentials` | Connecting, changing and disconnecting the Roblox Open Cloud API key, and requesting a Roblox sync. | `analytics.view` to open the project | | `project.delete` | Deleting a project from its settings (you type the project name to confirm). | `analytics.view` to open the project | ### Analytics | Permission | Unlocks | Also needs | | --- | --- | --- | | `analytics.view` | Opening a project at all, and every analytics page: overview, realtime, retention, funnels, economy, events, monetisation, segments, experiments, alerts, Explore, project settings and integrations (read-only), the SDK page. Viewing shared dashboards and creating **private** dashboards of your own. | — | | `analytics.configure` | Creating, editing and deleting funnels, segments, saved Explore queries, experiments and alerts. Sharing a dashboard with the project, editing shared dashboards, reordering dashboards, and creating or revoking public dashboard links. | `analytics.view` | ### Players | Permission | Unlocks | Also needs | | --- | --- | --- | | `players.view` | The **Players** list, **Player Lookup** and player profiles. Lists of individual players elsewhere, such as churned players and funnel drop-off players, and player-level dashboard widgets. | `analytics.view` to open the project | ### DataStores | Permission | Unlocks | Also needs | | --- | --- | --- | | `datastore.read` | **DataStore Explorer**: listing stores and keys, reading entries, version history, ordered DataStores, and the DataStore audit log. The player profile's **DataStore** tab. | The project's Open Cloud key must have the DataStore read scopes | | `datastore.write` | Editing, creating, deleting and restoring entries; setting, incrementing, creating and deleting ordered DataStore entries. | `datastore.read`, and the key's write scopes | See [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores#open-cloud-scopes) for the Open Cloud scopes. ### MemoryStores | Permission | Unlocks | Also needs | | --- | --- | --- | | `memorystore.read` | **MemoryStore Explorer**: browsing sorted maps, peeking at queues, and the MemoryStore audit log. | The key's MemoryStore read scopes | | `memorystore.write` | Saving, creating and deleting sorted map items; adding queue items; **Read and hold** and discarding. | `memorystore.read`, and the key's write scopes | | `memorystore.flush` | **Flush…**, which deletes every sorted map and queue in the experience. | `memorystore.read`, `memorystore.write` and the key's `memory-store:flush` scope | Flushing is held only by owners and admins by default, because it wipes live state for every server at once. ### Moderation | Permission | Unlocks | Also needs | | --- | --- | --- | | `moderation.view` | The profile's **Moderation** tab, the project's moderation log and the list of bans. | `players.view` | | `moderation.act` | Banning and unbanning, kicking and warning; adding and deleting moderation notes; setting and clearing player flags. | `players.view` and `moderation.view` | ### Commands | Permission | Unlocks | Also needs | | --- | --- | --- | | `commands.view` | **Macro Runner**: the registered command list, checking a command as you type, command history, the macro list, macro run history and run pages, and starring favourite macros. | — | | `commands.execute` | Running a command on a live game server, from the console or a player profile. | `commands.view` | | `macros.manage` | Creating, editing, duplicating and deleting macros. | `commands.view` | | `macros.execute` | Starting a macro run (or dry run) and pausing, resuming or stopping one. | `commands.view`; each command step also needs `commands.execute` | A running macro re-checks `macros.execute` and `commands.execute` for the person who started it before every command step, so removing either stops the run at the next step. See [Macros](https://docs.bloxlytics.app/operations/macros). ## Customising a role Owners and admins can change which permissions each role has, for the whole workspace. Open **Workspace settings → Roles & permissions**. The tab shows the matrix above for your workspace: one row per permission (its label and key), grouped as in the table, with a checkbox per role. Tick or untick a checkbox to grant or remove that permission for everyone with that role. The change saves immediately and applies to every project in the workspace from the next request each member makes; nobody needs to sign in again. - Cells that differ from the role's default are highlighted ("Highlighted cells differ from the role's default."). - Setting a cell back to its default removes the customisation rather than storing a duplicate. - **Reset to defaults** removes every customisation for every role in the workspace. Members keep their roles. It's available to owners and admins only, and only when something has been changed. - Every change is recorded in the [audit log](https://docs.bloxlytics.app/workspaces/audit-log) as **Changed role permissions** (with the role, the permission and whether it was granted or removed), and a reset as **Reset role permissions**. Members without `members.manage` can open the tab and see the matrix, with the note "You can view the permission matrix. Changing it requires the members.manage permission." ### Who can change which cells A checkbox is disabled, with a tooltip explaining why, when: | Tooltip | Reason | | --- | --- | | "Owners always hold every permission" | The **Owner** column can never be changed. | | "Requires members.manage" | You don't hold `members.manage`. | | "You can only change roles below your own" | An admin can change Developer, Analyst and Viewer, but not Admin. Only the owner can change the Admin column. | | "You can't grant a permission you don't hold" | You can remove a permission you don't hold from a lower role, but not grant it. For example, an admin can never grant `workspace.billing`. | > **Granting powerful permissions:** Be careful granting `members.manage` or `members.invite` to Developer, Analyst or Viewer. Members of that role can then invite people, change roles and edit the permission matrix for every role below their own. Granting `datastore.write`, `moderation.act` or `commands.execute` lets that role change player data, ban players or run commands on live servers, and these act on Roblox and your game, not just inside Bloxlytics. ## Rules no override can change Some rules are tied to the role itself, not to a permission, so customising the matrix doesn't affect them: - **The owner holds every permission**, always. - **Rank limits management.** You can only change the role of, remove, invite or customise members and roles strictly below your own. The owner can manage everyone. An admin can't change or remove another admin. - **You can't change your own role.** - **Nobody can be invited as Owner.** Invitations offer Admin, Developer, Analyst and Viewer, limited to roles below yours. - **Only the owner can transfer ownership.** On **Members**, the member's **⋯** menu, **Transfer ownership**. The new owner gets full control and the previous owner becomes an admin. - **The owner can't be removed** and can't leave until they've transferred ownership. - **Only the owner can delete an organisation.** Personal workspaces can't be deleted at all. - **Only owners and admins can reset permissions** to defaults. - **Moderation notes** can be deleted only by the note's author, or by an owner or admin, even if another role holds `moderation.act`. - **Private dashboards** are visible only to the person who created them, whatever their role. ## Cmdr groups per role On top of permissions, a project can limit which Cmdr command groups each role may run from Bloxlytics: **Cmdr groups per role** in the project's SDK configuration has lists for **Owner**, **Admin** and **Developer**, and analysts and viewers who've been granted command access use the developer list. An empty list allows every group the game's bridge permits. See [Per-role Cmdr groups](https://docs.bloxlytics.app/operations/commands#per-role-cmdr-groups). ## How permissions are enforced - **On the server, every time.** Each request is checked against your membership and your role's permissions in that workspace as they are at that moment, including customisations. The app only uses permissions to decide what to show. - **Not a member looks like not found.** If you aren't a member of a workspace, its pages and projects respond as if they don't exist ("Workspace not found", or "You need permission to access this content" for project pages), so ids can't be probed. - **Missing permissions are named.** A refused project action says what's missing, for example "Your role (analyst) lacks the datastore.write permission." - **Roblox limits apply too.** DataStore and ban features also depend on the scopes of the project's Open Cloud API key; a key with read scopes can never be used to write, whatever your role. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). - **Your game has the last word on commands.** Commands only run if the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge/security) and your Cmdr hooks allow them. ## Choosing roles | If someone needs to… | Give them | | --- | --- | | Look at numbers and players, nothing else | **Viewer** | | Build funnels, segments, dashboards, experiments and alerts | **Analyst** | | Edit player data, moderate, run commands and macros, manage SDK keys | **Developer** | | Manage the team, credentials and projects | **Admin** | | Own billing and the organisation itself | **Owner** (one person; transfer when needed) | If a role is nearly right, customise it rather than promoting someone. For example, untick `datastore.write` for Developer if only admins should change player data, or tick `moderation.view` for Analyst so analysts can see bans and notes without acting on them. ## Related - [Invitations](https://docs.bloxlytics.app/workspaces/invitations): Invite people with a role. - [Audit log](https://docs.bloxlytics.app/workspaces/audit-log): See who changed what. - [Security and privacy](https://docs.bloxlytics.app/security): How access is protected. --- # Invitations > Invite people to a workspace by their Roblox account, share the invitation link, and manage, revoke and accept invitations. People join a workspace by invitation. Because everyone signs in to Bloxlytics with Roblox, you invite a **Roblox account**, by username or user ID, not an email address. Roblox doesn't give Bloxlytics anyone's email address, so Bloxlytics can't email the invitation for you: it gives you a link to send them yourself, on Discord, Slack or wherever your team talks. Only the Roblox account you invited can accept the link. If it's forwarded to someone else, it's no use to them. ## Who can invite Inviting needs the `members.invite` permission, which owners and admins have by default. You can only invite people to a role **below your own**: | Your role | Roles you can invite as | | --- | --- | | Owner | Admin, Developer, Analyst, Viewer | | Admin | Developer, Analyst, Viewer | | Developer, Analyst or Viewer (if granted `members.invite`) | Roles below theirs | Nobody can be invited as Owner; to hand over a workspace, [transfer ownership](https://docs.bloxlytics.app/workspaces/roles-and-permissions#rules-no-override-can-change) to an existing member. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions) for what each role can do. ## Invite someone **1. Open Members** Go to **Workspace settings → Members**, or **Members** in the workspace sidebar. The **Invite people** section is at the top. If you don't see it, your role can't invite. **2. Enter their Roblox account** Type their Roblox **username** (for example `builderman`) or numeric **user ID** in **Roblox username or user ID**. Bloxlytics looks the account up on Roblox when you submit. **3. Choose a role** Pick the role from the list next to it. Developer is selected by default when you can assign it. A one-line summary of the role appears under the form. **4. Create the invite** Select **Create invite**. A box titled **Invitation created for @username** shows the link: "Send them this link. Only @username can accept it, after signing in with Roblox." Select **Copy invitation link** and send it to them. > **Copy the link straight away:** The link is shown only once, when you create the invitation. Bloxlytics stores it in a form it can't turn back into a link, so you can't view it again later. If it's lost, revoke the invitation and create a new one. ### If the invite is refused | Message | Meaning | | --- | --- | | "No Roblox account with that username or ID." | Roblox has no account by that username or ID. Usernames are 3–20 letters, digits or underscores; check the spelling, or use the user ID from their Roblox profile URL. | | "@username is already a member." | That Roblox account already belongs to the workspace. Change their role on **Members** instead. | | "You can only invite members below your own role." | The role you picked is at or above yours. | | "Too many requests. Slow down and try again." | Up to 30 invitations an hour can be created from the same IP address. Wait and try again. | ## Pending invitations Below the member list, **Pending invitations** shows every invitation that hasn't been accepted or revoked, with: | Column | Shows | | --- | --- | | **Roblox account** | Avatar and @username of the invited account. | | **Role** | The role they'll get when they accept. | | **Invited by** | Who created the invitation. | | **Expires** | The expiry date, or an **Expired** badge once it has passed. | When nothing is pending you'll see "No pending invitations." This section is visible only to members who can invite. ### Expiry Invitations expire **7 days** after they're created. An expired invitation can't be accepted, and stays in the list marked **Expired** until you revoke it. To give someone more time, revoke it and create a new one. ### Revoke an invitation Select **Revoke** on the invitation's row. The link stops working at once; anyone who opens it sees **Invitation unavailable**. Revoking needs `members.invite`. You can create more than one invitation for the same account (for example, if you lost a link). They're independent until one is accepted; accepting one automatically revokes the others for that account in the workspace. ## Accepting an invitation When the invited person opens the link, they see **Join** and the workspace name, who invited them and as which role, and the Roblox account the invitation is for (**For the Roblox account @username**). What happens next depends on whether they're signed in: **Not signed in** They select **Continue with Roblox** and sign in on Roblox. If they've never used Bloxlytics, this creates their account and personal workspace too. They come back to the invitation page and select **Accept invitation**. **Signed in with the invited account** A tick appears next to the account. They select **Accept invitation** and land on the workspace's project list. **Signed in with a different account** A warning says "You're signed in as @other. Only @username can accept this invitation. Switch to that Roblox account to continue." **Switch account** signs them out and returns to Roblox's sign-in, with the account picker, then back to the invitation. **Not now** leaves the page without accepting; the link keeps working until it expires or is revoked. On accepting, they become a member with the invitation's role, the invitation is marked accepted, and the [audit log](https://docs.bloxlytics.app/workspaces/audit-log) records **Joined the workspace**. If they were somehow already a member, their existing role is kept. ### If the link doesn't work **Invitation unavailable** with "This invitation has expired or was revoked. Ask whoever invited you for a new link." means the link has expired, been revoked, already been accepted, or was copied incompletely. Ask for a new one. ## Removing access later To remove someone who joined, open **Members**, select the **⋯** menu on their row and **Remove from workspace**, then **Remove member**. They lose access to every project in the workspace immediately. This needs `members.manage` and a role above theirs. Members can also leave on their own from **Workspace settings → General → Danger zone**. ## What's recorded | Action | Audit log label | | --- | --- | | Creating an invitation (with the account and role) | **Invited a member** | | Revoking an invitation | **Revoked an invitation** | | Accepting an invitation (with the role) | **Joined the workspace** | | Removing a member | **Removed a member** | | A member leaving | **Left the workspace** | ## Related - [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions): Pick the right role before you invite. - [Your account](https://docs.bloxlytics.app/workspaces/account): How Roblox sign-in works. --- # Audit log > See who did what in a workspace and its projects, filter by project and activity type, and understand every action the log records. The audit log records every administrative action in a workspace and in all of its projects: who did it, what they did it to, when, and from which IP address. It's how you answer "who banned this player?", "who rotated the bridge key?" or "when did this person get admin?". Open it from **Workspace settings → Audit log**, or **Audit log** in the workspace sidebar. ## Who can see it Viewing the log needs the `audit.view` permission. By default owners, admins and developers have it; analysts and viewers don't. Without it, the tab and sidebar item are hidden, and opening the page directly shows **Audit log unavailable**: "Your role doesn't include the audit.view permission." Nobody can edit or delete entries, whatever their role. > **Note:** Entries can include details such as moderation reasons, command text, macro variables and the first 200 characters of a deleted moderation note. Anyone with `audit.view` sees them, even if their role can't open the feature itself. Bear this in mind before granting `audit.view` to a role. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). ## Reading the log Entries are listed newest first, 50 at a time; select **Load more** at the bottom for older ones. | Column | Shows | | --- | --- | | **Action** | What happened, as a readable label (see [every action](#every-action)), with a short summary of the target underneath where there is one. | | **Actor** | The member's name and @username. **System** if no person did it. | | **Project** | The project the action belongs to, linking to its overview, or **Workspace** for workspace-level actions. Hidden on narrow screens. | | **Time** | How long ago. Hover for the exact date and time. | The target summary depends on the action: | Action | Summary shown | | --- | --- | | Role change | The old and new role, for example `developer → admin` | | Invitation | The invited @username | | Permission change | The role, permission and whether it was granted or removed, for example `analyst: moderation.view granted` | | Moderation | `Player` and the player's user ID | | DataStore change | The entry as `datastore/scope/key` | | Command | The command text | | Named things (projects, funnels, macros, dashboards…) | The name, when it was recorded | ### Details Select **Show details** (the arrow at the end of a row) to expand an entry. It lists: - **Action key**: the action's internal name, such as `moderation.ban`. Useful when the readable label isn't specific enough. - **Time**: the full date and time. - **IP address**: where the request came from, when known. - **Target**: the target's type and ID, for example `player/` or `invitation/`. - Any extra data recorded with the action, as JSON: for example the fields changed in a settings update, a ban's duration and public reason and whether Roblox confirmed it, a macro run's variables, or the scopes of a newly connected Open Cloud key. ## Filtering Two menus at the top of the log narrow it down. They combine. **Project**: **All projects** (the default, which also includes workspace-level actions), or one project. **Activity type**: | Option | Includes actions starting with | | --- | --- | | **All activity** | Everything | | **Workspace** | `workspace.` | | **Members** | `member.` | | **Permissions** | `permissions.` | | **Projects** | `project.` | | **Integrations** | `integration.` | | **DataStores** | `datastore.` | | **Moderation** | `moderation.` | | **Commands** | `command.` | | **Macros** | `macro.` | | **Funnels** | `funnel.` | | **Segments** | `segment.` | | **Dashboards** | `dashboard.` | | **Alerts** | `alert.` | | **Experiments** | `experiment.` | Saved Explore queries (`query.` actions) have no category of their own; they appear under **All activity**. If nothing matches you'll see **No matching activity** with "Try a different filter." There's no separate audit log page for each project: choose the project in the **Project** filter. ## Every action These are all the actions Bloxlytics records, with the label the log shows. ### Workspace and members | Label | Action key | Recorded when | | --- | --- | --- | | Created the workspace | `workspace.created` | An organisation is created. | | Updated workspace settings | `workspace.updated` | Name, logo, plan or billing email changes. Details list the new values. | | Transferred ownership | `workspace.ownership_transferred` | The owner makes another member owner. | | Invited a member | `member.invited` | An invitation is created. Details include the Roblox account and role. | | Revoked an invitation | `member.invitation_revoked` | An invitation is revoked. | | Joined the workspace | `member.joined` | Someone accepts an invitation. Details include their role. | | Left the workspace | `member.left` | A member leaves. | | Removed a member | `member.removed` | A member is removed by someone else. | | Changed a member's role | `member.role_changed` | A member's role changes. | | Changed role permissions | `permissions.changed` | A cell in the permission matrix is ticked or unticked. | | Reset role permissions | `permissions.reset` | **Reset to defaults** is used. | ### Projects and integrations | Label | Action key | Recorded when | | --- | --- | --- | | Created a project | `project.created` | A project is added. Details include its name and how access to the experience was verified. | | Updated project settings | `project.updated` | Project settings are saved. Details list the changed fields. | | Deleted a project | `project.deleted` | A project is deleted. Details include its name. | | Viewed SDK keys | `project.keys_viewed` | Someone reveals the project's write and bridge keys. | | Rotated the write key | `project.write_key_rotated` | The SDK write key is rotated. | | Rotated the bridge key | `project.bridge_key_rotated` | The Cmdr bridge key is rotated. | | Updated SDK configuration | `project.sdk_config_updated` | The SDK configuration is saved. | | Connected Roblox Open Cloud | `integration.connected` | An Open Cloud API key is connected. Details include the key's name and scopes. | | Disconnected Roblox Open Cloud | `integration.disconnected` | The key is removed. | | Requested a Roblox sync | `integration.sync_requested` | Someone asks for a Roblox analytics import. Details say whether it was the full history. | ### DataStores | Label | Action key | Recorded when | | --- | --- | --- | | Edited a DataStore entry | `datastore.entry_updated` | An entry is saved. Details include the number of changes, the new revision and the reason given. | | Restored a DataStore entry | `datastore.entry_restored` | An older version is restored. | | Created a DataStore entry | `datastore.entry_created` | A new entry is created. | | Deleted a DataStore entry | `datastore.entry_deleted` | An entry is deleted. | The [DataStore audit log](https://docs.bloxlytics.app/operations/datastores) in the DataStore Explorer keeps more detail for these, including the values before and after, each changed path, and failed or conflicting saves. ### Moderation | Label | Action key | Recorded when | | --- | --- | --- | | Banned a player | `moderation.ban` | A ban is applied. Details include the duration, the public reason and whether Roblox confirmed it. | | Unbanned a player | `moderation.unban` | A ban is lifted. | | Kicked a player | `moderation.kick` | A kick is sent to the game. | | Warned a player | `moderation.warn` | A warning is sent to the game. | | Added a moderation note | `moderation.note_added` | A note is added to a player. | | Deleted a moderation note | `moderation.note_deleted` | A note is deleted. Details keep the first 200 characters of it. | | Flagged a player | `moderation.flag_set` | A flag is set. Details include the flag and reason. | | Cleared a player flag | `moderation.flag_cleared` | A flag is cleared. | See [Moderation](https://docs.bloxlytics.app/operations/moderation) for the moderation log, which tracks whether each action was confirmed. ### Commands and macros | Label | Action key | Recorded when | | --- | --- | --- | | Executed a command | `command.executed` | A command is sent from the console or a player profile. Details include the command text and target server or player. | | Created a macro | `macro.created` | | | Updated a macro | `macro.updated` | | | Duplicated a macro | `macro.duplicated` | | | Deleted a macro | `macro.deleted` | | | Ran a macro | `macro.run` | A run starts. Details include the run and its variables. | | Dry-ran a macro | `macro.dry_run` | A dry run starts. | | Paused a macro run | `macro.pause` | | | Resumed a macro run | `macro.resume` | | | Stopped a macro run | `macro.stop` | | Individual macro steps aren't separate entries here; they're in **Macro Runner → History**. See [Commands](https://docs.bloxlytics.app/operations/commands) and [Macros](https://docs.bloxlytics.app/operations/macros). ### Analytics configuration These actions don't have a hand-written label, so the log builds one from the action key. | Label shown | Action key | | --- | --- | | Created funnel / Updated funnel / Deleted funnel | `funnel.created`, `funnel.updated`, `funnel.deleted` | | Created segment / Updated segment / Deleted segment | `segment.created`, `segment.updated`, `segment.deleted` | | Created query / Updated query / Deleted query | `query.created`, `query.updated`, `query.deleted` (saved Explore queries) | | Created dashboard / Saved dashboard / Deleted dashboard | `dashboard.created`, `dashboard.saved`, `dashboard.deleted` | | Widget added dashboard | `dashboard.widget_added` | | Link created dashboard / Link revoked dashboard | `dashboard.link_created`, `dashboard.link_revoked` (public dashboard links) | | Digest created dashboard | `dashboard.digest_created` | | Created alert / Updated alert / Deleted alert | `alert.created`, `alert.updated`, `alert.deleted` | | Created experiment / Updated experiment / Deleted experiment | `experiment.created`, `experiment.updated`, `experiment.deleted` | | Draft experiment / Running experiment / Stopped experiment | `experiment.draft`, `experiment.running`, `experiment.stopped` (status changes) | ## What isn't in this log - **Sign-ins.** Signing in and creating an account aren't tied to a workspace, so they don't appear in any workspace's log. Your own signed-in devices are on your [account page](https://docs.bloxlytics.app/workspaces/account#sessions). - **Reading.** Browsing analytics, opening player profiles and reading DataStore entries aren't logged. Revealing SDK keys is the exception. - **Changes made outside Bloxlytics.** Bans applied in-game or on Creator Hub, and DataStore writes from your game, don't appear here. ## How long entries are kept Audit entries are kept for as long as the workspace exists. - **Deleting a project** keeps its entries. They stay in the log, but are no longer linked to the project: the **Project** column shows **Workspace** and the project disappears from the **Project** filter. The **Deleted a project** entry keeps its name. - **Deleting an organisation** deletes its audit log along with everything else. See [Delete an organisation](https://docs.bloxlytics.app/workspaces/overview#delete-an-organisation). ## Related - [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions): Who holds `audit.view`. - [Security and privacy](https://docs.bloxlytics.app/security): How Bloxlytics protects your workspace. --- # Your account > How signing in with Roblox works, and how to manage your profile, alert email, theme, signed-in sessions and signing out. Your Bloxlytics account is your Roblox account. There's no separate username or password: you sign in with Roblox, and Bloxlytics knows you by your Roblox user ID. Your account settings are on the **Profile** page; open it by selecting your name at the bottom of the sidebar. ## Signing in with Roblox On the sign-in page, select **Continue with Roblox**. The same button creates your account the first time ("New here? The same button creates your account and a personal workspace."). **1. Bloxlytics sends you to Roblox** Your browser goes to Roblox's own sign-in and consent page. Bloxlytics asks only for the `openid` and `profile` scopes. **2. You sign in and approve on Roblox** You sign in and approve access on Roblox's site. Your Roblox password is never entered on, or seen by, Bloxlytics. **3. Roblox sends you back** Bloxlytics reads your Roblox profile, then immediately revokes the access Roblox granted it. You're signed in and returned to the page you were trying to open, or to your last project. ### What Bloxlytics receives The sign-in page summarises it: "Your username, display name and avatar — nothing else." In full: | Received from Roblox | Used for | | --- | --- | | Roblox user ID | Your identity. Your account is tied to it. | | Username | Shown as @username to teammates, and used to match [invitations](https://docs.bloxlytics.app/workspaces/invitations). | | Display name | Your name in Bloxlytics. | | Avatar | Your picture in the app. | Bloxlytics doesn't receive your email address, password, inventory, Robux or anything else, and it keeps no Roblox tokens, so it can't act on your Roblox account after sign-in. Your name and avatar are refreshed from Roblox each time you sign in. > **Info:** Technically, sign-in uses the OAuth 2.0 authorisation code flow with PKCE (S256), plus a `state` value bound to your browser and a one-time `nonce`. Bloxlytics only ever redirects you to its own pages afterwards. See [Security and privacy](https://docs.bloxlytics.app/security#signing-in) for the details. ### Renaming yourself on Roblox Because your account is tied to your Roblox user ID, changing your username or display name on Roblox doesn't create a new account or lose access. The new name appears the next time you sign in. Invitations are tied to the user ID too, so an invitation made before you renamed still works. ### Sign-in problems | Message | What happened | What to do | | --- | --- | --- | | **Sign-in cancelled** | You cancelled on Roblox. | Select **Continue with Roblox** again when you're ready. | | **Sign-in link expired** ("Sign-in attempts are valid for 10 minutes.") | More than 10 minutes passed between starting and finishing. | Start again. | | **Sign-in link expired** ("That sign-in attempt can't be finished.") | The response from Roblox didn't match a sign-in started in this browser, for example a link opened in another browser, or cookies blocked. | Start again in the same browser, with cookies allowed for Bloxlytics. | | **Roblox couldn't complete the sign-in** | Roblox rejected or didn't answer the request. | Try again in a moment. | | **Something went wrong on our side** | An error in Bloxlytics. Your Roblox account wasn't affected. | Try again. | Sign-in is limited to 20 attempts a minute from the same IP address. ## The Profile page ### Roblox account Shows your avatar, display name, @username and **User ID** (with **Copy user ID**), plus **Last sign-in** and **Member since**. **Open on Roblox** opens your Roblox profile in a new tab. Two buttons: - **Switch account** signs you out of Bloxlytics and starts a fresh Roblox sign-in that asks Roblox to let you choose an account. Use it when you're signed in to Roblox with a different account from the one you want, for example to accept an invitation sent to your other account. - **Sign out** ends this session and returns you to the sign-in page. See [signing out](#signing-out). There's nothing to edit here: your identity always comes from Roblox. ### Notifications **Email for alerts** is optional. [Alerts](https://docs.bloxlytics.app/analytics/alerts) can email this address. It's never used to sign in and isn't shown to teammates. Type an address and select **Save**. **Remove** clears a saved address; **Discard** undoes unsaved typing. Because Roblox doesn't share email addresses, this is the only way Bloxlytics learns yours. ### Appearance **Theme** has three options: **System** (follows your device's light or dark setting), **Light** and **Dark**. The change applies at once. The choice is remembered by the browser you made it in; on another device or browser, Bloxlytics starts with **System** until you choose again. ### Sessions **Sessions** lists every device currently signed in to your account, most recently active first: | Column | Shows | | --- | --- | | **Device** | The browser and operating system, for example "Firefox on Windows", and the IP address it signed in from. **This device** marks the one you're using. | | **Last active** | "Now" for this device; otherwise how long ago it was last used. Hover for the exact time. | Select **Sign out** on a row to end that session. **Sign out other sessions** ends every session except the one you're using. Both take effect immediately: the next thing that device tries to do sends it to the sign-in page. > **Tip:** If you've signed in on a shared or lost computer, or think someone else has access to your account, use **Sign out other sessions**. Then check your Roblox account's own security settings, since Bloxlytics access always starts with a Roblox sign-in. #### How long sessions last A session lasts 30 days from when you last used Bloxlytics. Each time you use the app, the 30 days start again, so you stay signed in while you're active. After 30 days without use the session expires and you'll need to sign in again. ## Signing out **Sign out** on the Profile page ends the session in this browser and removes it from your account straight away. Signing out of Bloxlytics doesn't sign you out of Roblox. If you're still signed in to roblox.com, selecting **Continue with Roblox** may sign you straight back in to the same account. To sign in as someone else, use **Switch account**, or sign out on Roblox first. ## Deleting your account There's no option to delete your Bloxlytics account in the app. To have it deleted, contact Bloxlytics as described in the [privacy policy](https://bloxlytics.app/legal/privacy). Before you ask, consider what you own: - Projects in your **personal workspace** can't be moved elsewhere. If a team needs one, they'll have to add the experience again in their organisation once you've deleted the project. - If you **own an organisation**, transfer ownership to another member first ([Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions#rules-no-override-can-change)) or delete the organisation yourself ([Workspaces](https://docs.bloxlytics.app/workspaces/overview#delete-an-organisation)), so your team isn't left without an owner. To stop using one organisation without deleting your account, leave it from **Workspace settings → General → Danger zone**. ## Related - [Security and privacy](https://docs.bloxlytics.app/security): How sign-in, sessions and your data are protected. - [Invitations](https://docs.bloxlytics.app/workspaces/invitations): Joining a team with your Roblox account. --- # Security and privacy > How Bloxlytics protects your account, your experience's credentials and your players' data, and what it can and can't do in your game. Bloxlytics can change live player data and run administrative commands in your game, so every request is authorised on the server, every sensitive action is attributed to a named person and logged, and every credential you give it is stored encrypted. This page describes how that works from your side. ## Signing in You sign in to Bloxlytics with your Roblox account and nothing else. There are no Bloxlytics passwords to leak or reuse. - **Sign in with Roblox** uses OAuth 2.0 with PKCE (S256). Bloxlytics asks Roblox only for the `openid` and `profile` scopes, which give it your Roblox user id, username, display name and avatar. It can't see your email address, your inventory or anything else on your Roblox account. - Your Bloxlytics account is tied to your Roblox user id. Renaming yourself on Roblox doesn't create a new account; your new name is picked up the next time you sign in. - Bloxlytics keeps no Roblox tokens. As soon as it has read your profile it revokes the refresh token Roblox issued, so it can't act on your Roblox account later. - Each sign-in attempt is bound to the browser that started it and expires after 10 minutes. The response from Roblox must match that attempt exactly, so a sign-in link someone else started can't log you into their account. After signing in you're only ever sent to a page on Bloxlytics itself, never to another site. - Sign-in is rate limited to 20 attempts a minute per IP address. Because there's no email on your account, invitations name a Roblox account rather than an address. See [Invitations](https://docs.bloxlytics.app/workspaces/invitations). ### Sessions - A session is a random 256-bit token held in a cookie that scripts on the page can't read (`HttpOnly`), that isn't sent with cross-site requests (`SameSite=Lax`) and that is only sent over HTTPS. - Bloxlytics stores a SHA-256 hash of the token, never the token itself, so a copy of its records couldn't be used to sign in as you. - A session lasts 30 days from when you last used it. Keep using Bloxlytics and you stay signed in; leave it for 30 days and you'll need to sign in again. - **Profile → Sessions** lists every device signed in to your account with its IP address, browser and when it was last active. **Sign out** ends one session; **Sign out other sessions** ends all of them except the one you're using. Signing out removes the session at once. See [Your account](https://docs.bloxlytics.app/workspaces/account). ## Roles and permissions Access is decided on the server for every request. The dashboard hides buttons your role can't use, but that is only a convenience: the API checks your permission again whatever the browser sends. - Every workspace member has a role: **Owner**, **Admin**, **Developer**, **Analyst** or **Viewer**. Each role has a default set of permissions, and owners and admins can adjust them per role. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). - Nobody can change permissions for a role at or above their own, nobody can grant a permission they don't hold themselves, and the Owner role always keeps every permission. - Analytics access never implies anything else. Reading DataStores (`datastore.read`), editing them (`datastore.write`), moderation (`moderation.view`, `moderation.act`), Cmdr commands (`commands.view`, `commands.execute`), macros (`macros.manage`, `macros.execute`) and the Open Cloud key (`project.credentials`) are all separate grants. - If you aren't a member of a workspace, its workspaces and projects return "not found" rather than "forbidden", so ids can't be probed to find out what exists. - Every analytics query is restricted to the project it was made for. Values you enter, such as segment rules, funnel steps and filters, are always passed as typed parameters and never pasted into a query. ### Adding an experience A project is one Roblox experience, and each experience can be in Bloxlytics only once. So that nobody can claim your experience and lock you out of it, only someone who controls it on Roblox can add it. Bloxlytics accepts, in this order: 1. Your Roblox account created the experience. 2. Your Roblox account owns the group that owns the experience. 3. You provide an Open Cloud API key that reaches the experience. This is how group members and collaborators prove they manage it, because Roblox's public APIs don't show group role permissions. This check runs before Bloxlytics looks for an existing project, so someone who doesn't control an experience can't find out whether it's already in Bloxlytics. See [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience). ### Commands and macros - Running a Cmdr command needs `commands.execute`, and each person can run at most 30 commands a minute per project. - Owners and admins can limit which Cmdr groups each role may run (**Cmdr groups per role** in SDK settings). - If you're in the game server a command is sent to, it runs as your own player, so your game's own Cmdr permissions apply to you. See [Commands](https://docs.bloxlytics.app/operations/commands). - A macro never lets you do more than you could by hand. A real run needs `commands.execute` as well as `macros.execute`, and before every step Bloxlytics checks again that the person who started the run still has both. If a role changes mid-run, the run stops at the next step. Each person can start 10 macro runs a minute per project. ## Credentials and keys | Secret | How Bloxlytics keeps it | | --- | --- | | Your Open Cloud API key | Encrypted with AES-256-GCM. It's decrypted only on Bloxlytics servers, in memory, for the moment of a Roblox call. It's never sent back to your browser and never sent to game servers. The dashboard shows only its last four characters. | | SDK write key (`bxw_…`) and bridge key (`bxb_…`) | A SHA-256 hash to check requests, plus an AES-256-GCM encrypted copy so people with `project.settings` can show the key again. | | Discord webhook URLs for alerts and digests | Encrypted with AES-256-GCM. The dashboard only says whether one is set. | | Session, invitation and public dashboard link tokens | SHA-256 hash only. The token itself is shown once and can't be recovered. | **Rotate key** on the project's SDK keys replaces a write or bridge key, and game servers still using the old key are refused straight away. Rotating a key is recorded in the audit log, and so is showing one. When you connect Open Cloud, Bloxlytics reads which scopes the key has and turns on only the features those scopes allow. A key with read scopes can never be used to write. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) and [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis). ## Requests from your game Game servers talk to `api.bloxlytics.app`, which serves only ingestion, remote configuration, the Cmdr bridge and SDK downloads. None of the dashboard's API is reachable there. Roblox game servers only make HTTPS requests, and so does Bloxlytics. ### Analytics SDK - Every request carries your Universe ID and the project's write key. The key is compared against its stored hash in constant time. - A write key can only add events to its own project and read that project's remote configuration. It can't read analytics, call Roblox or run commands, so a leaked write key is low impact. - A batch holds up to 500 events and 1 MB. Each event is checked on its own, so one malformed event doesn't cost the rest of the batch, and every event is checked again before it's stored. - Each event id is remembered for 48 hours, so an SDK retry never counts an event twice. - Timestamps more than 5 minutes in the future are moved to the time the event arrived, and events more than 30 days old are rejected. - Each project can send 3,000 ingest requests and 2,000 configuration requests a minute. See [How events are delivered](https://docs.bloxlytics.app/sdk/delivery) and [Send events](https://docs.bloxlytics.app/api/ingest/send-events). ### Cmdr bridge The bridge carries commands, so it has stronger protection: - Every bridge request carries the bridge key, a timestamp that must be within 120 seconds of Bloxlytics's clock, and a single-use nonce. A captured request can't be replayed: the nonce has already been used, and once the timestamp is stale the request is refused anyway. - Every command has an id and expires 60 seconds after it's queued. The bridge refuses expired commands and ids it has already seen. - A result is accepted only once, and only from the game server the command was sent to. Another server, even one with the right key, can't report a result for it. - A command no server picks up, or one that never reports back, is marked as timed out. Moderation actions waiting on it are marked as failed. - Each project can make 20,000 polls, 6,000 result reports and 600 hellos a minute. See [Bridge security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security) and [Poll for commands](https://docs.bloxlytics.app/api/bridge/poll). ## What Bloxlytics can never do in your game - Bloxlytics never connects into Roblox. Your game servers poll Bloxlytics; Bloxlytics can't reach a server that isn't running the bridge. - The bridge runs only commands registered with Cmdr in your game, through Cmdr's own dispatcher. Each command passes your `AllowedGroups` check, Cmdr's argument validation and your BeforeRun hooks before it runs. - Bloxlytics never sends Lua source and never asks the game to evaluate code. There is no command it can invent that your game hasn't registered. - Commands are only sent to Roblox Studio sessions when someone chooses that session explicitly. - The SDK refuses to run on the client. Currency and purchase events must come from server code. ## Browser protections - **Cross-site request forgery.** Every request that changes something must carry the header `X-Requested-With: bloxlytics`. A page on another site can't add a custom header without the browser first asking permission (a CORS preflight), and only `dash.bloxlytics.app` is allowed. - **WebSockets.** The live updates connection is refused unless it comes from `dash.bloxlytics.app`, which stops another site from opening it with your cookies. Each connection is checked against your permissions for that project, and only people with `analytics.view` receive its messages. - **Security headers.** Every response tells the browser to use HTTPS only (HSTS), not to guess content types, not to show Bloxlytics inside a frame on another site, and to limit what it sends in the referrer. The dashboard can't use your camera, microphone or location. - **Input.** Every request body and query string is validated before it's used, and invalid fields come back as a `400` naming the field. ## Rate limits Limits protect your project and Roblox's limits on your Open Cloud key. Going over one returns `429` with the code `rate_limited`. See [Errors](https://docs.bloxlytics.app/api/errors). | What | Limit | | --- | --- | | Any dashboard request, per IP address | 600 a minute | | Sign-in start and callback, per IP address | 20 a minute | | Explore and chart queries | 240 a minute | | Dashboard widget data | 600 a minute | | Creating projects | 20 a minute | | Invitations | 30 an hour | | Connecting Open Cloud | 10 a minute | | **Sync now** | 6 every 10 minutes | | DataStore saves | 60 a minute | | Bans and unbans | 20 a minute | | Kicks and warnings | 30 a minute | | Testing an alert | 10 a minute | | Sending a digest now | 5 a minute | | Public dashboard link | 60 a minute for the page, 300 a minute for its widgets | | Commands, per person per project | 30 a minute | | Macro runs, per person per project | 10 a minute | | Ingest, per project | 3,000 requests a minute | | Remote configuration, per project | 2,000 requests a minute | | Bridge poll, result and hello, per project | 20,000, 6,000 and 600 a minute | ## Audit logs The workspace audit log records who did what, to what, when and from which IP address. It covers membership and permission changes, invitations, project and integration changes, viewing and rotating keys, SDK settings, funnels, segments, dashboards (including public links and digests), saved queries, experiments, alerts, command executions, macro runs and their pause and stop controls, moderation actions, notes and flags, and DataStore writes. Entries about a deleted project stay in the log. See [Audit log](https://docs.bloxlytics.app/workspaces/audit-log). Two areas have their own, more detailed trails: - **DataStores.** Every save attempt, whether it succeeded, hit a conflict or failed, records the person, the revision before and after, the changed JSON paths, and the old and new values (values over 256 KB are noted by size only). See [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores). - **Moderation.** Every ban, unban, kick and warning records whether Roblox or the game confirmed it. Bans and unbans are read back from Roblox after they're made; kicks and warnings are confirmed only when the game server reports success. See [Moderation](https://docs.bloxlytics.app/operations/moderation). ## Public dashboard links Sharing a dashboard publicly is off until someone turns it on for that dashboard. - Only dashboards shared with the project can have a public link, and only people who can configure analytics can create one. - The link's token is shown once. Bloxlytics stores only its SHA-256 hash, so a lost link can't be recovered, only replaced. Links can expire and can be revoked at any time. - A public link returns the layout and the computed numbers only. It never returns widget configurations, segment definitions or any table that names individual players. - A private dashboard is visible only to the person who created it and returns "not found" to everyone else. See [Dashboards](https://docs.bloxlytics.app/analytics/dashboards). ## What data is stored ### About you and your team Your Roblox user id, username, display name and avatar; an email address only if you add one for alert emails (it's never used to sign in); your workspaces, roles and preferences; your active sessions with their IP address and browser; and the audit log. Every email Bloxlytics sends (alerts and digests) is kept as a record of what was sent to whom. ### About your players Only what your game sends through the SDK and what Roblox returns for your experience. Players are identified by their Roblox user id. The SDK's session events include the player's username, display name, country, language, Premium status and account age, as Roblox reports them to your game server. Bloxlytics doesn't infer anything about a player from their username: banners such as MODERATOR come only from properties your game reports, and FLAGGED or UNDER INVESTIGATION are set by a named team member. ### How long it's kept | Data | Kept for | | --- | --- | | Raw events, sessions, economy transactions, purchases, funnel steps and concurrent-player samples | 25 months, then deleted automatically | | Player summaries, daily active players, player properties, balances, hourly event counts, experiment exposures and player dimensions | As long as the project exists | | Analytics imported from Roblox, and public counters (visits, favourites, likes) | As long as the project exists | | Workspace, project, dashboard, alert, command and moderation records | Until you delete them or the project | | Sessions | 30 days after last use | | Invitations | Expire after 7 days | | Event ids used to prevent double counting | 48 hours | Deleting a project is permanent. Its configuration is deleted at once and its analytics are removed from storage in the background, so a new project for the same experience starts empty. Roblox's own records (DataStores, bans, Roblox analytics) are unaffected. ## Reporting issues If a key leaks, act on it straight away: - **Write key.** Low impact: it can only add events to the project and read its remote configuration. Rotate it with **Rotate key** and update your game. - **Bridge key.** High impact: it lets a server poll for and answer commands. Rotate it immediately, then check the command history and the audit log for anything you don't recognise. - **Open Cloud API key.** Revoke it in Creator Hub and create a new one, then reconnect it in **Integrations**. Bloxlytics never shows the full key, so a leak didn't come from the dashboard, but revoking it on Roblox is the only way to stop it working anywhere. If you think you've found a security problem in Bloxlytics itself, report it privately to the Bloxlytics team rather than posting it publicly, and include what you did, what you saw and the project involved. --- # Roblox APIs Bloxlytics uses > Every Roblox API Bloxlytics calls, why it calls it, which Open Cloud scope it needs, how often, and what you see when Roblox refuses or rate limits a request. Bloxlytics talks to Roblox in three ways, each with its own credential: | Channel | Direction | Credential | Where it lives | | --- | --- | --- | --- | | Roblox public web APIs | Bloxlytics → Roblox | None | — | | Roblox Open Cloud | Bloxlytics → Roblox | Your Open Cloud API key | Bloxlytics servers only, encrypted | | Sign in with Roblox | Your browser ⇄ Roblox ⇄ Bloxlytics | Bloxlytics's OAuth app | — | Separately, your game servers call Bloxlytics (the SDK and the Cmdr bridge) with the project's write and bridge keys. Those keys can't call Roblox, and your Open Cloud key is never sent to a game server or back to your browser. See [Data sources](https://docs.bloxlytics.app/data-sources) for what each source gives you and [Security and privacy](https://docs.bloxlytics.app/security) for how keys are stored. Every call to Roblox is made from Bloxlytics servers, never from your browser, and times out after 15 seconds (30 seconds to submit an analytics query). ## Sign in with Roblox Bloxlytics accounts are Roblox accounts. Sign-in uses Roblox's OAuth 2.0 authorisation code flow with PKCE (S256) on `apis.roblox.com`: | Step | Endpoint | Why | | --- | --- | --- | | Authorise | `GET /oauth/v1/authorize` | Sends you to Roblox to approve the `openid` and `profile` scopes | | Exchange the code | `POST /oauth/v1/token` | Swaps the one-time code for tokens, proving the PKCE verifier | | Read your profile | `GET /oauth/v1/userinfo` | Your Roblox user id, username, display name and avatar | | Revoke | `POST /oauth/v1/token/revoke` | Ends the authorisation straight away; Bloxlytics keeps no Roblox tokens | The ID token's audience, nonce, subject and expiry are checked before you're signed in. If Roblox refuses or can't be reached, you're returned to the sign-in page with an explanation, and nothing is created. ## Public web APIs These need no key, which is why Bloxlytics shows live players, visits, favourites and likes for any project from the moment you add it. | API | Endpoint | Used for | How often | | --- | --- | --- | --- | | Games | `GET games.roblox.com/v1/games?universeIds=…` | Experience name, creator, root place, live player count, visits, favourites, creation date | Live players every minute and visits and favourites every hour, for every project in batches of 50; experience details when you add a project, connect Open Cloud and on every sync | | Game votes | `GET games.roblox.com/v1/games/votes?universeIds=…` | Likes and dislikes | Every hour, with the visits snapshot | | Place to universe | `GET apis.roblox.com/universes/v1/places/{placeId}/universe` | Accepting a place ID (the number in a game's URL) when you add an experience | When you add a project | | Groups | `GET groups.roblox.com/v1/groups/{groupId}` | Finding a group's owner, to check you own a group experience you add | When you add a project | | Users | `GET users.roblox.com/v1/users/{userId}` | Player lookup by id, player profiles, invitations by user id | On demand; profiles are cached for an hour | | Usernames | `POST users.roblox.com/v1/usernames/users` | Player lookup and invitations by username | On demand | | Experience icons | `GET thumbnails.roblox.com/v1/games/icons` | The project's icon (150×150) | With experience details | | Avatar headshots | `GET thumbnails.roblox.com/v1/users/avatar-headshot` | Player avatars in lists, feeds and profiles, 100 players per request | On demand; cached for 6 hours | Live counters shown before the first hourly snapshot exists are cached for a minute. Icons and avatars are best-effort: if Roblox doesn't return one, it's left out rather than causing an error. If the votes API fails, likes and dislikes are left out of that snapshot and the other counters are still recorded. ### Who may add an experience Adding a project uses these APIs to confirm you control the experience. Bloxlytics accepts, in order: your Roblox account created it; your account owns the group that owns it; or an Open Cloud API key that reaches it (for group members and collaborators, whose role permissions the public APIs don't show). See [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience). ## Open Cloud Open Cloud calls use your project's API key in the `x-api-key` header. When you connect a key, Bloxlytics reads its scopes and enables each feature separately, so a key with only read scopes can never be used to write. ### Scopes | Capability | Scope | Used for | | --- | --- | --- | | List DataStores | `universe-datastores.control:list` | The DataStores list; confirming an "all experiences" key | | List entries | `universe-datastores.objects:list` | Browsing keys | | Read entries | `universe-datastores.objects:read` | Opening an entry or a revision, and the conflict check before every save | | Update entries | `universe-datastores.objects:update` | Saving edits and restoring revisions | | Create entries | `universe-datastores.objects:create` | **New entry** | | Delete entries | `universe-datastores.objects:delete` | Deleting an entry | | List versions | `universe-datastores.versions:list` | Version history | | Read ordered DataStores | `universe.ordered-data-store.scope.entry:read` | Ordered entries, and the check before every **Set value** and delete | | Edit ordered DataStores | `universe.ordered-data-store.scope.entry:write` | **Increment**, **Set value**, **New entry** and deleting | | Read sorted maps | `memory-store.sorted-map:read` | Browsing sorted maps and opening items | | Edit sorted maps | `memory-store.sorted-map:write` | Saving, creating and deleting sorted map items | | Read queues | `memory-store.queue:dequeue` | Peeking at a queue and **Read and hold** | | Add to queues | `memory-store.queue:add` | **Add item** | | Discard queue items | `memory-store.queue:discard` | Discarding held items | | Flush MemoryStores | `memory-store:flush` or `universe.memory-store:flush` | **Flush…** | | Read bans | `universe.user-restriction:read` | Ban status, ban history, the bans sync; confirming an "all experiences" key | | Ban and unban | `universe.user-restriction:write` | **Ban player** and **Unban** | | Read Roblox analytics | `universe.analytics:read` | Roblox-reported metrics and Roblox funnels | Developer product names and prices use Roblox's developer products API, which needs read access to your experience's developer products. If your key can't list them, Bloxlytics names products from your game's purchase events instead. ### Endpoints All on `apis.roblox.com`. `{u}` is your Universe ID and `…/entries` is `/cloud/v2/universes/{u}/data-stores/{ds}/scopes/{scope}/entries`. | Feature | Endpoint | Scope | | --- | --- | --- | | Validate a key | `POST /api-keys/v1/introspect` | None (the key itself) | | List DataStores | `GET /cloud/v2/universes/{u}/data-stores` (up to 100 per page, optional name prefix) | `universe-datastores.control:list` | | List keys | `GET …/entries` (up to 100 per page; scope `-` lists every scope) | `universe-datastores.objects:list` | | Read an entry or revision | `GET …/entries/{key}` and `…/entries/{key}@{revisionId}` | `universe-datastores.objects:read` | | Update an entry | `PATCH …/entries/{key}?allowMissing=…`, with the entry's `etag` | `universe-datastores.objects:update` | | Create an entry | `POST …/entries?id={key}` | `universe-datastores.objects:create` | | Delete an entry | `DELETE …/entries/{key}` (Roblox keeps it recoverable for 30 days) | `universe-datastores.objects:delete` | | Version history | `GET …/entries/{key}:listRevisions` (50 per page) | `universe-datastores.versions:list` | | List ordered entries | `GET /cloud/v2/universes/{u}/ordered-data-stores/{name}/scopes/{scope}/entries` (up to 100 per page, `orderBy=value desc`, value range filter) | `universe.ordered-data-store.scope.entry:read` | | Read, set, create or delete an ordered entry | `GET`, `PATCH`, `POST` and `DELETE` on those entries | `…entry:read` or `…entry:write` | | Increment an ordered entry | `POST …/entries/{key}:increment` | `universe.ordered-data-store.scope.entry:write` | | List sorted map items | `GET /cloud/v2/universes/{u}/memory-store/sorted-maps/{map}/items` (up to 200 per page, filter on `id` and `sortKey`) | `memory-store.sorted-map:read` | | Read, update, create or delete a sorted map item | `GET`, `PATCH` (with the item's `etag`), `POST` and `DELETE` on `…/items/{id}` | `memory-store.sorted-map:read` or `:write` | | Add a queue item | `POST /cloud/v2/universes/{u}/memory-store/queues/{queue}/items` | `memory-store.queue:add` | | Read queue items | `GET …/queues/{queue}/items:read` (up to 100; a 0-second invisibility window for peeking) | `memory-store.queue:dequeue` | | Discard queue items | `POST …/queues/{queue}/items:discard` with the read id | `memory-store.queue:discard` | | Flush MemoryStores | `POST /cloud/v2/universes/{u}/memory-store:flush` | `memory-store:flush` | | Ban status | `GET /cloud/v2/universes/{u}/user-restrictions` and `…/user-restrictions/{userId}` | `universe.user-restriction:read` | | Ban or unban | `PATCH …/user-restrictions/{userId}?updateMask=gameJoinRestriction` with an idempotency key | `universe.user-restriction:write` | | Ban history | `GET …/user-restrictions:listLogs` | `universe.user-restriction:read` | | Roblox analytics | `POST /analytics-query-api/v1/universes/{u}/metrics`, then polling the operation it returns | `universe.analytics:read` | | Developer products | `GET /developer-products/v2/universes/{u}/developer-products/creator` (beta) | Developer product read access | Entry keys that contain `@` are read as `{key}@latest`, as the API requires. ### Connecting a key **Connect Open Cloud** in **Integrations** runs these steps and shows the result of each, so you can see exactly where a connection failed: 1. **Validate API key**: introspection must say the key is enabled and not expired. 2. **Check permissions**: the key needs at least one scope Bloxlytics can use, and it must reach this experience. Either the experience is listed on the key, or the key is set to all experiences its owner can access; in that case Bloxlytics confirms it with one read-only call (listing DataStores or bans), so the key needs `universe-datastores.control:list` or `universe.user-restriction:read`. 3. **Retrieve experience**: name, creator and root place from the games API. 4. **Store credentials**: the key is encrypted; only its last four characters are kept readable. 5. **Import historical analytics**: queued if the key has `universe.analytics:read`, otherwise skipped with a note. Use a key on your own Roblox account. Roblox is retiring group-owned keys, and a user key works for group experiences you manage. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). ### Sync schedule | Data | When | | --- | --- | | Experience details and developer products | Every 6 hours while automatic sync is on, and on **Sync now** | | Bans | Same, if the key can read bans: every restriction Roblox lists, up to 5,000 | | Roblox analytics and funnels | Same, if the key has `universe.analytics:read`. Scheduled syncs re-import the last 7 days, **Sync now** the last 30 | | Full analytics history | Once, when you first connect: every day Roblox still holds, up to 4 years or back to the experience's creation. Projects connected before full-history import existed get it on their next sync, and **Import full history** re-runs it (plus bans and developer products) | Scheduled syncs skip analytics while an import is already queued or running. Each sync is listed in **Integrations** as queued, running, succeeded, partial or failed, with what it imported and why it stopped. You can turn automatic sync off for a project there. ### Roblox analytics Bloxlytics requests these metrics, one day at a time: `DailyActiveUsers`, `DailyRevenue`, `ForwardD1Retention`, `ForwardD7Retention`, `ForwardD30Retention`, `PayingUsersCVR`, `AverageSessionLengthMinutes`, `NewUsers` and `PeakConcurrentUsers`. Roblox only reports complete days, so the most recent day is yesterday (UTC). History is imported newest first in 180-day windows. If Roblox says a window asks for too many data points, the window is halved, down to 7 days. When a window crosses the point where Roblox stops holding data, Bloxlytics narrows it to the exact day and imports everything after it. Re-importing a day replaces it, so syncs never double count. Roblox numbers are always shown separately from SDK numbers, labelled **Roblox**, and never blended into the same series. See [Roblox data](https://docs.bloxlytics.app/analytics/roblox-data). ### Roblox funnels Funnels your game logs with `AnalyticsService:LogFunnelStepEvent` or `LogOnboardingFunnelStepEvent` are imported with the same scope and shown under **From Roblox** on the Funnels page. No Bloxlytics SDK is needed. - Roblox reports funnel metrics as totals over a date range, so each sync stores a snapshot for the last 7, 30 and 90 days and 12 months of complete UTC days. Roblox only accepts `FunnelName` as a filter, so Bloxlytics first lists the funnels with `POST /analytics-query-api/v1/universes/{u}/dimension-values`, then queries `FunnelUserTotalCount` (players) and `FunnelStepTotalCount` (funnel sessions) for each funnel, broken down by `FunnelStep`. - Conversion and drop-off are worked out from the player counts. Roblox counts a player who skips a step as completing the steps before it. - Each funnel's `FunnelCohortCompletionRate` is imported per day: across the full history on the first import, then for the period each sync covers. - A funnel Roblox no longer reports in a window drops out of that window's snapshot. See [Funnels](https://docs.bloxlytics.app/analytics/funnels). ### DataStore edits - The editor sends the revision you loaded. Bloxlytics reads the entry again first; if the revision has moved on (for example, a live server saved), nothing is written and you're shown the newer value to review. - The update also carries the entry's `etag`, so a save that races between that check and the update is rejected by Roblox, and you're shown the newer value again. - The entry's users and attributes are carried over on every update, because Roblox clears them when they're left out. - Restoring a version writes that version's value as a new revision. History is never rewritten. See [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores). ### Ordered DataStore and MemoryStore edits - Roblox gives ordered entries no version tag. Before **Set value** or a delete, Bloxlytics reads the entry and writes nothing if the value changed since you opened it. **Increment** uses Roblox's atomic increment instead, so it never races with a server. - Sorted map saves and deletes check the item's `etag`, and the save sends it to Roblox, so a server's write between your load and your save is never overwritten. - Peeking at a queue reads with a 0-second invisibility window, which leaves items available to servers. **Read and hold** hides items for the window you choose; only a discard removes them. - Roblox keeps no history for either, so the audit log stores the value each change replaced. See [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores#ordered-datastores) and [MemoryStore Explorer](https://docs.bloxlytics.app/operations/memorystores). ### Bans After every ban or unban, Bloxlytics reads the restriction back from Roblox, because Roblox can report success without applying the change. The moderation record is marked **confirmed** or **failed** accordingly. Each request carries an idempotency key, so a retried request can't apply twice. Kicks and warnings don't use Open Cloud: they go through the Cmdr bridge and are confirmed when the game reports success. See [Moderation](https://docs.bloxlytics.app/operations/moderation). ## Failures and rate limits When Roblox refuses a request you made in the dashboard, you see Roblox's reason rather than a generic error, and the API returns it with the code `roblox_error` and Roblox's own status (see [Errors](https://docs.bloxlytics.app/api/errors)): | Roblox says | You see | Bloxlytics returns | | --- | --- | --- | | Unreachable, timed out, or a server error | "Couldn't reach Roblox" or Roblox's message | `502` | | `401` | "Roblox rejected the API key (missing, invalid or revoked)." | `400` | | `403` | "The API key lacks permission for this operation", with Roblox's detail | `400` | | `404` | Roblox's message, or "Not found on Roblox." | `404` | | `429` | "Roblox rate limit reached. Try again shortly." | `429` | Where a scope is missing, the page says which scope to add instead of failing silently. In the background: - **Rejected key.** If Roblox rejects the key during a sync, the integration shows **Needs attention** with Roblox's error. Reconnect a working key in **Integrations**. - **Analytics rate limit.** Roblox allows 30 analytics requests a minute per key owner, so Bloxlytics spaces requests at least 2.1 seconds apart. If Roblox still rate limits, it waits and retries up to four times, 15 seconds longer each time. An analytics query Roblox hasn't finished within a minute counts as a failed request. - **Metrics Roblox won't report.** Any metric Roblox rejects for your experience is shown as **Not available** with Roblox's reason, and nothing is estimated in its place. The sync is marked partial and names the metrics. - **History that stops early.** If a later window fails after earlier ones succeeded, what was imported is kept and the sync is marked partial, naming the metrics whose history stopped early. - **No Roblox funnels.** If Roblox doesn't report funnels for the experience, the Funnels page says so with Roblox's reason. - **Developer products.** If the key can't list developer products, the sync is marked partial and product names come from your game's purchase events instead. - **More than 5,000 bans.** The first 5,000 are synced and the sync is marked partial. ## What is not supported and why | Capability | Status | | --- | --- | | Listing DataStore **scopes** | Open Cloud has no endpoint for this. Enter a scope, or list across every scope with `-`. | | Listing ordered DataStores, sorted maps or queues | Open Cloud has no endpoint for this. Open one by name and save it for the project. | | Releasing held queue items early | Open Cloud has no endpoint for this. Held items return when the invisibility window ends. | | Teleporting a team member to a player | Not possible from a website. **Join server** opens the Roblox link for the player's server instead. | | Purchase **attempts** for developer products | Roblox only lets a game server see that a purchase prompt finished (`PromptProductPurchaseFinished`). Prompts closed without buying are recorded as attempts; nothing earlier is observable. | | Premium payouts and engagement-based payouts | Open Cloud doesn't expose them to third parties. | | Roblox analytics metrics beyond the list above | The Analytics Query API is in beta. Bloxlytics requests only the metrics listed in [Roblox analytics](#roblox-analytics), and any that Roblox rejects are shown as **Not available**, never estimated. | | Time between steps and lists of players who dropped, for Roblox funnels | Roblox reports funnel totals only, not per-player events. Use funnels built from SDK events for these (see [Funnels](https://docs.bloxlytics.app/analytics/funnels)). | | Retention from before you installed the SDK | Bloxlytics computes retention from SDK data, so its history starts when the SDK is installed. Roblox-reported retention is shown separately where Roblox provides it. | | Confirming an "all experiences" key without DataStore list or ban read scopes | Introspection shows such a key as `*`, which says nothing about one experience, so Bloxlytics must make a read-only call to prove it reaches yours. Add one of those two scopes, or add the experience to the key by name. | | Group-owned API keys | Roblox is retiring them. Use a key on your own account; it works for group experiences you manage. | | Calling into a game server | Roblox doesn't allow inbound connections to game servers. Commands, kicks and warnings work only through the Cmdr bridge, which your servers poll. | --- # Troubleshooting > The real failure modes of sign-in, adding experiences, the SDK, the Cmdr bridge and Open Cloud, with the exact messages you'll see and how to fix each one. Messages are quoted as Bloxlytics or the Luau modules show them. Game-side messages appear in the server output (the **Output** window in Studio, or the **Developer Console** in a live server, under **Server**). > **Tip:** For the SDK, the fastest diagnosis is the **Debugger** on the project's **SDK** page, plus `Debug = true` in `Analytics:Start`, which prints every send, retry and configuration load. ## Signing in **Sign-in cancelled** You chose to cancel on Roblox's approval page. Choose **Continue with Roblox** again when you're ready. **Sign-in link expired** Each sign-in attempt is valid for 10 minutes and can be used once, from the browser that started it. If you took longer, used the back button, or finished sign-in in a different browser, start again. **Roblox couldn't complete the sign-in** Roblox rejected or didn't answer the request. Wait a moment and try again; your Roblox account isn't affected. ## Adding an experience **No experience found for the number I entered** Bloxlytics tried the number as a Universe ID and as a place ID, and Roblox returned neither. Copy the Universe ID from Creator Hub (your experience → **Copy Universe ID**), or use the number from the game's URL. Every message you can get when adding an experience is listed in [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience#errors-you-may-see). **I manage the experience but Bloxlytics says it belongs to someone else** Only the creator and the owner of the creator group are recognised automatically, because Roblox's public APIs don't show group roles or collaborators. Prove access with an Open Cloud API key from your own account that includes the experience. See [Prove you manage it with an API key](https://docs.bloxlytics.app/projects/add-an-experience#prove-you-manage-it-with-an-api-key). **It's already a project in another workspace** An experience can only be a project once across Bloxlytics. Ask someone in that workspace to invite you. ## SDK and events ### Nothing arrives **No warning, and the debugger says Waiting for the first batch** The SDK only warns about configuration problems. Network failures are retried quietly with backoff (up to 60 seconds between attempts), so a missing setting can look like silence. Check, in order: 1. **HTTP requests are allowed.** Studio → **Game Settings → Security** → **Allow HTTP Requests**, then publish. Without it every request fails before it leaves the server, and the SDK keeps retrying. 2. **You're testing in a live server, or `TrackInStudio = true` is set.** Analytics is off in Studio by default. With `Debug = true` the output shows `Studio session — tracking disabled (set TrackInStudio = true to test)`. 3. **`ApiUrl` is the HTTPS API URL from the SDK page.** Roblox game servers only call HTTPS endpoints. 4. **`Analytics:Start` actually runs**, from a server Script, once. Turn on `Debug = true` to see `send failed (); retrying in s` for each failed attempt. **[Bloxlytics] The SDK only runs on the server** The module was required from a LocalScript or client context. Require and start it from a server Script, such as one in `ServerScriptService`. **[Bloxlytics] Init/Start called twice; ignoring the second call** `Analytics:Start` (or `Init`) ran more than once on the same server. The first call wins. Keep one boot script. **[Bloxlytics] Not started: … Your game keeps running without analytics.** The configuration passed to `Start` can't be used, so analytics stays off for this server. The reason is in the message: | Reason | Fix | | --- | --- | | pass a configuration table | Call `Analytics:Start({ … })` with a table. | | this place isn't published, so it has no Universe ID yet; publish it, or set ProjectID to the experience's Universe ID | Publish the place. In an unpublished place, set `ProjectID` to the Universe ID to test. | | ProjectID `` isn't this experience's Universe ID (``); leave ProjectID out to use it automatically | Remove `ProjectID`. The SDK uses `game.GameId`. | | ProjectID must be the experience's Universe ID (or leave it out to use game.GameId) | Remove `ProjectID`, or set it to the Universe ID. | | WriteKey must start with bxw_ (use the write key, not an Open Cloud or bridge key) | Use the **Write key** from the SDK page. | | WriteKey must be a string or a Secret from HttpService:GetSecret | Pass the key string or the Secret object itself. | | ApiUrl must be your Bloxlytics API URL | Set `ApiUrl` to the **API URL** from the SDK page. | **[Bloxlytics] API rejected a batch (401)** Bloxlytics didn't accept the key: *Missing project id or key.* or *Invalid project key.* The SDK drops the batch, since retrying won't help. Common causes: - The write key was rotated. Update the key or the `bloxlytics_write_key` secret and restart servers. - The secret holds the wrong value, such as the bridge key or an Open Cloud key. - The project was deleted, or this place belongs to a different experience than the project. **[Bloxlytics] API rejected a batch (400)** The whole batch was malformed, or every event in it was invalid. The message and the debugger's **Recent problems** say which field. This usually means the module was modified; download a fresh copy from the **SDK** page. **[Bloxlytics] Event queue full; dropping oldest events until the API is reachable** The server couldn't reach Bloxlytics for long enough that 5,000 events queued up. The oldest are dropped first. Check HTTP requests are allowed and the API URL is right. Brief outages are fine: queued events are sent when the connection returns. ### Events are rejected The debugger's **Rejected events** counts events Bloxlytics refused, and **Recent problems** shows why. Rejected events aren't stored. | Reason in the debugger | Cause | Fix | | --- | --- | --- | | session tracking disabled, economy tracking disabled, purchase tracking disabled, custom events disabled | That category is switched off in **Configuration** on the SDK page | Turn it back on, or stop sending those events | | blocked | The event name is in **Blocked events** | Remove it from the list | | Unknown currency "``" — add it in SDK settings | **Currencies** are configured, and this one isn't among them | Add the currency, or fix the name. The SDK also warns: *Currency "``" isn't configured in Bloxlytics → SDK settings; events will be rejected* | | Invalid event name "``" | Custom event names must start with a letter and use only letters, digits, space and `_ . : -`, up to 64 characters | Rename the event | | Unknown reserved event `$` | A custom event name starts with `$`, which is reserved | Rename the event | | `` requires userId | A player event was sent without a player | Pass the player | | ``: `` `` | A reserved event's properties failed validation, for example a negative amount | Fix the call's arguments | | ``: timestamp older than 30 days | Events older than 30 days aren't accepted | None needed; this only affects very old queued events | | Rejected `` of `` events: … | Some events in a batch were malformed; the rest were accepted | See the field named in the message | Configuration changes reach servers within 5 minutes, so a fix on the SDK page takes up to that long to show. ### SDK warnings about your calls These are printed once per kind of problem, and the affected event or property is dropped: | Warning | Meaning | | --- | --- | | TrackEvent: invalid event name `` | See the naming rule above. | | TrackEvent(``): player must be a Player | The first argument looked like a player but isn't one. | | TrackFunnel(``): pass the player so the step can be attributed | Funnel steps need a player. | | TrackFunnel: funnel and step must be non-empty strings | | | TrackProgression(player, 'start'\|'complete'\|'fail', path, score?) | The call didn't match this form. | | Economy: currency must be a non-empty string | | | ``: dropped invalid property name `` | Property names start with a letter or `_`, up to 40 characters. | | ``: property `` has unsupported type `` | Values must be strings, numbers or booleans. | | ``: only the first 32 properties are kept | | | SetServerTag: invalid tag name …, or at most 16 tags per server | | Full rules are in the [Event reference](https://docs.bloxlytics.app/sdk/event-reference). ### Data looks wrong **Concurrent players differ between Realtime and Roblox's page** When Roblox reports concurrent players, Bloxlytics shows Roblox's number and uses the SDK's heartbeat count only as a fallback. The SDK's count comes from servers running the SDK, so servers that haven't been updated, or Studio sessions, make it differ. See [How data gets in](https://docs.bloxlytics.app/data-sources#when-two-sources-report-the-same-thing). **Retention or funnels are empty, but Roblox shows numbers** SDK history starts when the SDK is installed; Bloxlytics can't reconstruct earlier player-level history. Roblox's own retention and funnels are shown separately, if Open Cloud is connected with `universe.analytics:read`. **Studio test events appear in my analytics** With `TrackInStudio = true`, Studio sessions send events to the same project as live servers. Turn it off once you've finished testing. ## Cmdr bridge **[Bloxlytics] Cmdr was passed but the CmdrBridge module wasn't found** `Analytics:Start` received `Cmdr` but couldn't find a ModuleScript named `CmdrBridge` inside `Analytics` or next to it. Analytics still runs; remote commands are off. Add the module with exactly that name. **[Bloxlytics] Cmdr was passed without BridgeKey** Add `BridgeKey`, usually `HttpService:GetSecret("bloxlytics_bridge_key")`. **[Bloxlytics bridge] Not started: … Remote commands are off.** | Reason | Fix | | --- | --- | | it must run on the server | Start it from a server Script. | | pass the server Cmdr module as Cmdr | Pass the server-side Cmdr module (with `Registry` and `Dispatcher`), not the client one. | | BridgeKey must start with bxb_ (use the bridge key, not the write key) | Use the **Bridge key** from the SDK page. | | BridgeKey must be a string or a Secret from HttpService:GetSecret | | | ApiUrl is required | | | the project ID problems listed for analytics | See [Not started](#nothing-arrives) above. | **[Bloxlytics bridge] registration failed (status)** The server couldn't register with Bloxlytics. It retries automatically, waiting 5 seconds and doubling up to 2 minutes. A 401 means the bridge key is wrong or was rotated; a status of 0 usually means HTTP requests aren't allowed or the API URL is wrong. **No game servers with the Bloxlytics bridge are online** Bloxlytics has no live server that registered the bridge. A server counts as live if it was heard from in the last 90 seconds. Check the server output for the warnings above. If the **Cmdr bridge** setting was off when the servers started, they registered but aren't listening; turn it on and restart them. **The command bridge is disabled in project settings** **Cmdr bridge** is off in **Configuration** on the SDK page. Turn it on. Dry runs of macros still work while it's off. **Only Studio sessions are online** Studio sessions are never picked automatically. Choose the Studio session explicitly as the target server, or start a live server. **That server only runs commands as a player who is in it** The server was started with `AllowSystemCommands = false`, and you aren't in it. Join that server with your Roblox account, or pick the server you're in. **My command isn't in the list, or isn't recognised** The command list shows commands servers have reported in the last 24 hours. Servers report about 3 seconds after starting and every 5 minutes after that, so commands registered later appear on the next report. In-game, *"``" is not a registered command.* means that server's Cmdr registry doesn't have it. **Your role may only run commands in these Cmdr groups** **Cmdr groups per role** on the SDK page limits your role to certain groups, and this command is in another. Ask an admin, or run a command from an allowed group. **The command was rejected in the game** The game refused it. The result says why: | Result | Meaning | | --- | --- | | The `` group isn't allowed from Bloxlytics (AllowedGroups). | The command's group isn't in the game's `AllowedGroups`. | | This game only runs Bloxlytics commands as a team member who is in the server (AllowSystemCommands = false). | System-context commands are refused by this game. | | Rejected by BeforeRun hook: `` | Your hook returned a reason. For system-context commands, allow them with `CmdrBridge.IsPlatformContext`. Outside Studio, Cmdr blocks all commands if no `BeforeRun` hook exists. | | Command expired before it reached the server. | Commands expire 60 seconds after they're sent. | | Kick is disabled in this game's bridge configuration. | `AllowKick = false`. | | Warnings aren't configured in this game (OnWarn). | Pass `OnWarn` to enable warnings. | | Announcements aren't configured in this game (OnAnnounce). | Pass `OnAnnounce`. | | Player is not in this server. | The player left before the command arrived. | **The game server didn't respond in time** The command was picked up but no result came back, or no server picked it up before it expired (*Expired before a server picked it up.*). The server may have shut down, or the command is still running beyond the time limit. Check the command's history entry and the server output. ## Open Cloud **Roblox rejected the API key (missing, invalid or revoked) — HTTP 401** Roblox doesn't recognise the key: it was revoked, regenerated or mistyped. During a sync this sets the Open Cloud status to **Needs attention**, and automatic sync and **Sync now** stop. Fix the key in Creator Hub and choose **Re-validate**, or **Replace key** with a new one. **The API key lacks permission for this operation — HTTP 403** The key is valid but doesn't allow what was attempted. Typical causes: - The scope isn't on the key. Compare **Permissions by feature** on the **Integrations** page with what you're trying to do. - The experience isn't in the key's access permissions. - The request came from an address not in the key's **Accepted IP Addresses**. Add `0.0.0.0/0`. After changing the key in Creator Hub, choose **Re-validate** so Bloxlytics picks up the new scopes. **The key has no scopes Bloxlytics can use** At **Check permissions**, the key had none of the scopes listed in [Scopes and what they unlock](https://docs.bloxlytics.app/projects/open-cloud#scopes-and-what-they-unlock). Add at least one. **The key is set to all your experiences, but Bloxlytics can only confirm it reaches the experience with …** A key set to all experiences is confirmed with a read-only call, which needs `universe-datastores.control:list` or `universe.user-restriction:read`. Add one, or name the experience on the key. **This key is disabled on Roblox / This key has expired** Enable the key in Creator Hub, or create a new one and use **Replace key**. The **Expires** item on the **Integrations** page is marked **(soon)** when expiry is less than 14 days away. **Roblox rate limit reached. Try again shortly. — HTTP 429** Roblox asked Bloxlytics to slow down. Analytics imports already wait and retry on their own; for anything else, wait a minute. **Connect a Roblox Open Cloud API key in Integrations first** The feature you opened (such as the DataStore Explorer or a ban) needs Open Cloud, and no key is connected. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). **Connect Open Cloud before syncing** **Sync now** only works when the status is **Connected**. If it's **Needs attention**, choose **Re-validate** first. **Importing analytics history needs an API key with universe.analytics:read** **Import full history** imports Roblox analytics, which needs that scope. Add it to the key and choose **Re-validate**. **A sync shows Error or Partial** Open **Sync history** on the **Integrations** page: each row is one kind of data, and its **Result** column has Roblox's message. **Partial** means the job finished with something unavailable, such as metrics Roblox doesn't return for the experience, more than 5,000 bans, or a key that can't list developer products. [Sync history](https://docs.bloxlytics.app/projects/open-cloud#sync-history) lists the common notes. **A Roblox analytics metric says Not available** Roblox's Analytics API, which is in beta, didn't return that metric for your experience; the reason is Roblox's own error. Bloxlytics never estimates a metric Roblox doesn't provide. It's checked again on every sync. ## Still stuck? Check [What Roblox doesn't support](https://docs.bloxlytics.app/help/limitations) in case what you're after isn't possible, and the [FAQ](https://docs.bloxlytics.app/help/faq). --- # What Roblox doesn't support > Honest limits of Bloxlytics, most of them because Roblox doesn't expose the data or action, and what Bloxlytics does instead. Bloxlytics only shows what it can actually observe, and it never estimates a number to fill a gap. That means some things you might expect aren't available. Most are limits of what Roblox makes available to third parties; a few are things Bloxlytics doesn't do yet. Each is listed with the reason and the closest alternative. For the Roblox endpoints behind each feature, see [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis#what-is-not-supported-and-why). ## DataStores | What | Status | Why, and what to do instead | | --- | --- | --- | | Listing a DataStore's **scopes** | Not possible | Open Cloud has no endpoint that lists scopes. Enter the scope you want, or list keys across all scopes with `-`. | | Listing **ordered DataStores**, **sorted maps** or **queues** | Not possible | Open Cloud has no endpoint that lists them. Open one by its name and save it to the project's list. See [Ordered DataStores](https://docs.bloxlytics.app/operations/datastores#ordered-datastores) and [MemoryStore Explorer](https://docs.bloxlytics.app/operations/memorystores#opening-a-sorted-map-or-queue). | | Version history for ordered DataStores and MemoryStores | Not available | Roblox keeps none. Bloxlytics records the value each change replaced in the audit log. | | Releasing held queue items early | Not possible | Roblox has no call for it. Held items return to the queue when their invisibility window ends, or you discard them. | | Undoing a delete | On Roblox only | Deleted entries are recoverable on Roblox for 30 days. Restoring a *version* in Bloxlytics writes that version's value as a new revision; history is never rewritten. | ## Players and moderation | What | Status | Why, and what to do instead | | --- | --- | --- | | Teleporting a team member to a player | Not possible | A website can't move you into a game server. **Join server** opens Roblox's link to the player's server instead. | | Kicking or warning a player without a live server | Not possible | Open Cloud has no kick or warning API. Kicks and warnings go through the [Cmdr bridge](https://docs.bloxlytics.app/projects/connect-cmdr) to the server the player is in, and are confirmed only when the game reports success. | | Trusting a ban response on its own | Not done | Roblox can report success for a ban without applying it when the key's scopes are wrong. Bloxlytics reads every restriction back and marks the action confirmed or failed. | | Ban records beyond 5,000 | Partial | Each sync imports up to 5,000 restrictions and marks the job **Partial** if there are more. | | Inferring roles or badges from usernames | Never done | **MODERATOR**, **VIP** and similar banners come only from properties your game reports, matching rules you set. **BANNED** comes from Roblox; **FLAGGED** and **UNDER INVESTIGATION** are set by a named team member. | | Players' email addresses or real names | Not available | Roblox doesn't share them, and the SDK doesn't collect them. | ## Analytics | What | Status | Why, and what to do instead | | --- | --- | --- | | Player-level history from before the SDK was installed | Not possible | Roblox doesn't expose per-player events. Bloxlytics' retention, funnels, economy and player analytics start when you install the SDK. Roblox's own aggregated analytics, back up to 4 years, come through [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud). | | Public-data history from before the project existed | Not possible | Roblox's public APIs only give current values. Concurrent players, visits and favourites are recorded from the moment you add the experience. | | Today's Roblox analytics | Not available until tomorrow | Roblox reports its analytics for complete UTC days only. | | Every Roblox analytics metric | Depends on Roblox | The Analytics API is in beta. Bloxlytics requests nine metrics; any Roblox refuses for your experience is shown as **Not available** with Roblox's error. | | Time between steps and drop-off players in Roblox funnels | Not possible | Funnels logged with `AnalyticsService` are reported by Roblox as totals, without per-player events. Use [SDK funnels](https://docs.bloxlytics.app/analytics/funnels) for those. Roblox also counts a player who skips a step as completing the steps before it. | | Developer product purchase **attempts** before a prompt finishes | Not observable | Roblox only reports a developer product prompt to the server when it finishes. Every finished prompt is recorded as an attempt, and a purchase as completed only when your `ProcessReceipt` handler grants it. | | Premium payouts and engagement-based payouts | Not available | Roblox doesn't expose them to third parties through Open Cloud. | | Developer product names without the SDK | Depends on the key | Names and prices are imported when Roblox lets the key list developer products. Otherwise they come from SDK purchase events. | | Filtering concurrent players by player | Not possible | Concurrent players are counted per server, not per player. A chart with player filters or a segment leaves concurrent players out and says so. | | Events older than 30 days | Rejected | Events are accepted up to 30 days after they happened; timestamps more than 5 minutes in the future are set to the time received. | | Data older than 25 months | Deleted | Raw events, sessions, economy, purchases, funnel steps and concurrent-player samples are kept for 25 months, then deleted automatically. | ## The SDK and the bridge | What | Status | Why, and what to do instead | | --- | --- | --- | | Tracking from the client | Not supported, by design | The SDK refuses to run on the client. Amounts from clients can't be trusted; call tracking functions from server code. | | Plain HTTP API URLs in live games | Not possible | Roblox game servers only call HTTPS endpoints. | | Running source code sent from the website | Never done | The bridge only runs commands your game registered with Cmdr, through Cmdr's dispatcher and your hooks. | | Command consoles other than Cmdr | Not supported | The bridge is built for Cmdr's registry, dispatcher and hooks. | | Identical behaviour on every Cmdr version | Not guaranteed | The bridge runs commands with Cmdr's own `Dispatcher:Evaluate` and `RunHooks`. Their behaviour can differ between Cmdr versions, so test commands in Studio after updating Cmdr. | | Commands that wait longer than about a minute | Limited | Commands expire if no server picks them up within 60 seconds, and Bloxlytics stops waiting for a result shortly after. | ## Accounts, keys and projects | What | Status | Why, and what to do instead | | --- | --- | --- | | Email and password sign-in | Not offered | Sign-in is with Roblox only, so identity is always a real Roblox account and commands can run as your own in-game player. | | Invitations by email | Not possible | Roblox doesn't give Bloxlytics anyone's email address. Invitations name a Roblox account and you share the link. Email is used only for alert notifications, if you add one to your profile. | | Group-owned Open Cloud keys | Not supported | Roblox is discontinuing group-owned API keys. Use a key on your own account; it works for group experiences you can manage. | | Recognising group managers and collaborators automatically | Not possible | Roblox's public APIs don't show group role permissions or collaborator access, so only the creator and the group's owner are recognised. Others prove access with an [API key](https://docs.bloxlytics.app/projects/add-an-experience#prove-you-manage-it-with-an-api-key). | | The same experience in two workspaces | Not possible | A project *is* the experience, so it exists once. Invite people into the workspace that has it. | | Moving a project to another workspace | Not supported | Delete it and add the experience again in the other workspace; data doesn't carry over. | ## Related - [How data gets in](https://docs.bloxlytics.app/data-sources) - [Troubleshooting](https://docs.bloxlytics.app/help/troubleshooting) - [FAQ](https://docs.bloxlytics.app/help/faq) --- # FAQ > Answers to common questions about setup, Studio, multiple places, privacy, data retention, keys and what Bloxlytics can and can't see. ## Getting started **Do I have to put anything in my game?** No. With only the Universe ID, Bloxlytics shows live concurrent players, visits, favourites and likes from Roblox's public APIs. Connecting [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud) adds DataStores, bans and Roblox's own analytics, still without game scripts. The [SDK](https://docs.bloxlytics.app/projects/install-the-sdk) is only needed for player-level analytics, live servers and Cmdr commands. **Can I add an experience I don't own?** Only if you manage it. The creator and the owner of the creator group can add it directly. Group members with a role and collaborators prove their access with an Open Cloud API key from their own account that reaches the experience. Nobody can add an experience they don't control. See [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience#who-can-add-an-experience). **My game has several places. Do I need a project for each?** No. A project is the whole experience, keyed by its Universe ID, and every place in it reports to the same project, because the SDK identifies the experience from `game.GameId`. Each event records the place it came from, and you can filter or break down by **place** in [Explore](https://docs.bloxlytics.app/analytics/explore) and dashboards. The **Place IDs** field in [Project settings](https://docs.bloxlytics.app/projects/settings) is just a record; you don't have to fill it in. **Can the same experience be in two workspaces?** No. An experience can be a project once across Bloxlytics. Put it in the workspace your team shares, usually an organisation, and [invite](https://docs.bloxlytics.app/workspaces/invitations) everyone there. Projects can't be moved between workspaces later. **How do I work with my team?** Create an organisation with **Create organisation** in the workspace switcher, add the project there, and invite people by Roblox account. Each member gets a role (owner, admin, developer, analyst or viewer), and owners and admins can adjust what each role may do. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). **Why are invitations links rather than emails?** Roblox doesn't give Bloxlytics anyone's email address. An invitation names a Roblox account, and only that account can accept it, even if the link is passed on. You share the link yourself. ## Studio and testing **Does the SDK work in Studio?** Analytics is off in Studio unless you set `TrackInStudio = true` in `Analytics:Start`. When it's on, Studio play tests send events to the same project as your live servers, so turn it off when you've finished testing. The Cmdr bridge does run in Studio by default, so you can test commands. Each Studio session gets its own server key, such as `studio-1a2b3c4d`, printed in the output. Studio sessions are never chosen automatically; pick the session explicitly to send it commands. Set `EnableBridgeInStudio = false` to turn the bridge off in Studio. **Can I test in an unpublished place?** The SDK needs a Universe ID, which an unpublished place doesn't have. Publish the place, or set `ProjectID` to your experience's Universe ID while testing. Outside Studio, leave `ProjectID` out. **Will the SDK slow down or break my game?** It's designed not to. `Start` never throws: a bad configuration prints one warning and the SDK stays off. Tracking calls never yield the calling thread. Events are sent in batches every 10 seconds by default, and if Bloxlytics can't be reached they wait in a queue of up to 5,000 events and are retried with backoff. When a server shuts down, open sessions are closed and the queue is flushed for up to 20 seconds. Purchase tracking never affects your `ProcessReceipt` decision. **What happens if Bloxlytics is unreachable?** Your game keeps running. The SDK keeps events in its queue and retries; once the queue holds 5,000 events, the oldest are dropped first. Retried events are never counted twice. Commands from Bloxlytics simply can't reach the game until the connection returns. ## Data and numbers **How fresh is the data?** Concurrent players are sampled every minute. Visits, favourites and likes are snapshotted hourly. SDK events arrive within seconds of each batch. Roblox analytics are imported every 6 hours while automatic sync is on, and Roblox only reports complete UTC days. See [How data gets in](https://docs.bloxlytics.app/data-sources). **Why don't my numbers match Roblox's?** When both are available, Bloxlytics shows Roblox's count of concurrent players, and Roblox-reported metrics are shown separately, never blended with SDK numbers. Differences between SDK and Roblox figures usually come from servers not running the SDK, Studio sessions, or different definitions: Roblox computes its own metrics its own way. Every number carries an **SDK**, **Computed** or **Roblox** badge, so you can always tell which you're reading. **Can I see data from before I installed the SDK?** Not player-level data: Roblox doesn't expose per-player history, so SDK analytics start at installation. Roblox's own daily analytics are imported back up to 4 years through Open Cloud, and appear in the **Reported by Roblox** sections. **Does Bloxlytics ever estimate missing numbers?** No. If Roblox doesn't return a metric for your experience it's shown as **Not available** with Roblox's reason. Insights are only generated when there's enough data behind them, and show their evidence. **Can I export my data?** Yes, as CSV. Each dashboard widget has a download button, and **Explore** has **Download over time (CSV)**. ## Privacy and retention **What does Bloxlytics get from my Roblox account?** Your Roblox user ID, username, display name and avatar, through the `openid profile` sign-in scopes. Never your password or email address. Bloxlytics ends the Roblox authorisation straight after reading your profile, so it holds no Roblox tokens and can't act on your account. **What does the SDK collect about players?** What your game sends. Automatically, that's the player's user ID, username and display name, session start and end, account age, locale, country or region (as Roblox reports it), Premium status, whether they teleported in, and server details such as the server's ID, place and player count. Beyond that, only what you track: economy, purchases, funnels, progression, experiments, properties and custom events. It doesn't collect chat messages, real names or contact details. Don't send them in custom events or properties. **How long is data kept?** | Data | Kept | | --- | --- | | Raw events, sessions, economy transactions, purchases, funnel steps and concurrent-player samples | 25 months, then deleted automatically | | Imported Roblox analytics, and summaries such as player profiles and daily active players | While the project exists | | SDK debugger problems | 7 days, up to the latest 50 | | Your Bloxlytics sign-in session | Expires after 30 days without use | Deleting a project deletes all of its analytics and configuration. See [Project settings](https://docs.bloxlytics.app/projects/settings#delete-a-project). **Who can see my Open Cloud key?** Nobody, after you've saved it. It's encrypted at rest, used only by Bloxlytics' servers, and never sent back to the browser or to game servers. The app shows its name and last four characters only. See [Security and privacy](https://docs.bloxlytics.app/security). **What if a key leaks?** - **Write key** (`bxw_…`): it can only add events to your project, so the impact is low. Rotate it on the **SDK** page. - **Bridge key** (`bxb_…`): rotate it immediately, then check the command history. - **Open Cloud key**: revoke it in Creator Hub and use **Replace key** with a new one. See [Security and privacy](https://docs.bloxlytics.app/security#reporting-issues). **Can anyone outside my workspace see my data?** Only if you share a dashboard publicly. Public links are opt-in, per shared dashboard, and created by people who can configure analytics. A link can expire and be revoked, and it shows the dashboard's numbers only: never widget configurations, segment definitions or tables that name individual players. Private dashboards are visible only to their creator. See [Dashboards](https://docs.bloxlytics.app/analytics/dashboards). **Is what my team does recorded?** Yes. The [audit log](https://docs.bloxlytics.app/workspaces/audit-log) records who did what, when and from which IP address, including key views and rotations, configuration changes, commands, moderation and DataStore writes. ## Operations **Can editing a DataStore in Bloxlytics overwrite a live server's save?** No. The editor remembers the revision it loaded. When you save, Bloxlytics re-reads the entry; if a server has saved since, nothing is written and you're shown the newer value to review. The save also carries Roblox's version tag, so a write that races between the check and the update is rejected by Roblox. Every attempt is audited. See [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores). **Can Bloxlytics run arbitrary code in my game?** No. The Cmdr bridge only runs commands your game has registered with Cmdr, through Cmdr's dispatcher, after your `AllowedGroups` and `BeforeRun` hooks. Bloxlytics never sends source code. See [Connect Cmdr](https://docs.bloxlytics.app/projects/connect-cmdr). **Do I need the bridge to ban players?** No. Bans and unbans use Roblox's ban API through Open Cloud, with `universe.user-restriction:write`, and Bloxlytics confirms each one with Roblox. Kicks and warnings need the bridge, because they act on a live server. --- # Luau SDK overview > What the Bloxlytics Luau modules do, how they are built, and where to go next. The Bloxlytics Luau SDK is two server-only ModuleScripts you add to your experience. They are **optional**: with only a Universe ID linked, Bloxlytics already shows Roblox's own numbers (see [data sources](https://docs.bloxlytics.app/data-sources)). Install the SDK when you want player-level analytics, your in-game economy, funnels, live servers and remote Cmdr commands. | Module | What it does | Key it uses | | --- | --- | --- | | `Analytics` | Sends sessions, server heartbeats, economy, purchases, funnels, progression, player properties, experiment exposures and your custom events | Write key, `bxw_…` | | `CmdrBridge` | Lets permitted team members run your game's registered [Cmdr](https://eryn.io/Cmdr/) commands, macros, kicks and warnings from Bloxlytics | Bridge key, `bxb_…` | Download both from **Bloxlytics → your project → SDK**, in the **Installation** section. The current version of both modules is `1.0.0` (`Analytics.Version` and `CmdrBridge.Version`). ## What the analytics module does Once you call `Analytics:Start`, the module: - starts a **session** for every player who joins and ends it when they leave, recording username, display name, account age, Premium, locale, country or region and whether they teleported in; - sends a **server heartbeat** about every 30 seconds with the player count, the player list, the maximum players, your server tags and whether the Cmdr bridge is active; - records **game pass prompts** (attempts and completions) and **developer product prompts** (attempts); - fetches **remote configuration** from Bloxlytics on start and every 5 minutes, so you can switch tracking on and off, change batching, define currencies, block events and run experiments without publishing; - closes every open session and **flushes** the queue when the server shuts down. Everything else is one call away: [custom events](https://docs.bloxlytics.app/sdk/custom-events), [economy](https://docs.bloxlytics.app/sdk/economy), [purchases](https://docs.bloxlytics.app/sdk/purchases), funnels and progression, [player properties](https://docs.bloxlytics.app/sdk/reference#player-properties) and [experiments](https://docs.bloxlytics.app/sdk/experiments). The full list of what is sent on its own is on [automatic events](https://docs.bloxlytics.app/sdk/automatic-events). ## Server only Both modules run only on the server. `Analytics:Init` and `Analytics:Start` refuse to run anywhere else, with the warning `The SDK only runs on the server; require it from a server Script`. > **Keep tracking server-authoritative:** Never expose the tracking functions through a `RemoteEvent` or `RemoteFunction`. If a client can call `TrackCurrencyEarned` or record a purchase, an exploiter can fill your dashboards with made-up numbers. Call the SDK from the server code that actually grants currency, items and products. The write key can only submit events and fetch the SDK's remote configuration. It cannot read your analytics and it is not a Roblox Open Cloud key. Even so, keep both keys in server-only scripts or, better, in [experience secrets](https://docs.bloxlytics.app/sdk/configuration#keys-and-secrets). ## Fail-soft design The SDK is written so that a problem with Bloxlytics can never break your game. - **Bad configuration never throws.** `Start` checks the configuration, prints one warning such as `[Bloxlytics] Not started: WriteKey must start with bxw_ (use the write key, not an Open Cloud or bridge key). Your game keeps running without analytics.` and returns `false`. Every tracking call after that does nothing. - **Bad calls never throw.** A tracking call with a wrong argument (an invalid event name, a negative amount, a missing player) is dropped with a warning. Each distinct warning is printed only once per server, so a call inside a loop can't flood your output. - **Tracking calls don't yield.** Calls such as `TrackEvent` only add an event to an in-memory queue; the network work happens on the SDK's own thread. The exceptions are spelled out in the [reference](https://docs.bloxlytics.app/sdk/reference): `Flush` sends immediately, and `WrapProcessReceipt` may look up a product name the first time it sees a product. - **Network failures are retried.** Failed sends are retried with exponential backoff, and the queue is bounded so a long outage can't use up the server's memory. See [delivery](https://docs.bloxlytics.app/sdk/delivery). - **The bridge is separate.** A Cmdr bridge problem only turns remote commands off; analytics keeps running, and the other way round. ## How the module works The analytics module keeps four pieces of state on each server: a queue of events, one session per player, the latest remote configuration and your server tags. 1. **A call adds an event to the queue.** Each event gets a random id, a timestamp in Unix seconds, and, when you pass a player, their user id and current session id. The queue holds at most 5,000 events; when it is full the oldest event is dropped. 2. **A loop runs once a second.** It sends a heartbeat when 30 seconds have passed, starts a remote configuration refresh when 5 minutes have passed, and flushes when the flush interval has passed or the queue holds a full batch. 3. **A flush sends batches.** Each request to `POST /v1/ingest` carries up to the maximum batch size (200 by default, 500 at most), along with this server's id, place id, place version, private server id and whether it is Studio. See [send events](https://docs.bloxlytics.app/api/ingest/send-events). 4. **The API validates each event.** Valid events are stored; invalid ones are rejected one by one and listed in the **Debugger** on the SDK page. One bad event never costs the rest of its batch. 5. **Remote configuration is applied as it arrives.** `GET /v1/config` returns the dashboard's settings and the experiments that are running. See [remote configuration](https://docs.bloxlytics.app/sdk/remote-config). Each server has one id, `Analytics.ServerKey`. In a live server it is `game.JobId`; in Studio, which has no JobId, it is a per-session key such as `studio-1a2b3c4d`. The Cmdr bridge uses the same id, so analytics and commands refer to the same server. ## Where next - [Install the SDK](https://docs.bloxlytics.app/sdk/installation): Add the module, store your keys and send your first events. - [Configuration](https://docs.bloxlytics.app/sdk/configuration): Every field you can pass to `Start`, with defaults. - [Automatic events](https://docs.bloxlytics.app/sdk/automatic-events): What the SDK sends without any code from you. - [Custom events](https://docs.bloxlytics.app/sdk/custom-events): Track anything that matters in your game. - [Economy](https://docs.bloxlytics.app/sdk/economy): Currency sources, sinks, balances and transfers. - [Purchases](https://docs.bloxlytics.app/sdk/purchases): Developer products and game passes, with `ProcessReceipt`. - [Experiments](https://docs.bloxlytics.app/sdk/experiments): Assign players to variants consistently, in game. - [API reference](https://docs.bloxlytics.app/sdk/reference): Every public function on the `Analytics` module. - [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge): Run your registered Cmdr commands from Bloxlytics. --- # Install the SDK > Add the Luau analytics module to your experience, store your keys as secrets and confirm that events arrive. This page takes you from an empty place to events arriving in Bloxlytics. It takes about ten minutes. You need a Bloxlytics project for the experience (see [add an experience](https://docs.bloxlytics.app/projects/add-an-experience)) and a role with the **Edit project settings and SDK keys** permission to see the keys. > **Info:** The **SDK** page of your project generates the snippets below with your project's values filled in. Open it alongside this page: **Bloxlytics → your project → SDK**. ## Install **1. Allow HTTP requests** In Studio, open **Game Settings → Security** and turn on **Allow HTTP Requests**. Without it every request the SDK makes fails, and the SDK keeps retrying with backoff. **2. Add the Analytics module** On the SDK page, in **Installation**, download **Analytics.luau**. In Studio, insert a **ModuleScript** into **ServerScriptService**, name it `Analytics` and paste the file's contents into it. The module must stay on the server. Don't put it in ReplicatedStorage or anywhere a client can require it. If you use Cmdr and want remote commands, also download **CmdrBridge.luau** and add it as a ModuleScript named `CmdrBridge` **inside** `Analytics` (or next to it in ServerScriptService). See [the Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge). **3. Store the keys** The **Keys** section of the SDK page shows your **Project ID** (the experience's Universe ID), the **API URL**, the **Write key** and the **Bridge key**. **Experience secrets (recommended)** In Creator Hub, open your experience and go to **Secrets**. Add a secret named `bloxlytics_write_key` with the write key as its value, restricted to the API domain `api.bloxlytics.app`. If you use the bridge, add `bloxlytics_bridge_key` the same way. Read them in your boot script with `HttpService:GetSecret`. The SDK takes the `Secret` object as it is and adds it to the request header, so the key never appears as a plain string in your place file. **Paste in the script** Paste the keys as strings into a server Script. This is quicker for a first test but the key is then part of your place file, and anyone with edit access to the place can read it. Never put a key in ReplicatedStorage or a LocalScript. **4. Start the SDK** Add a **Script** to ServerScriptService (for example `BloxlyticsBoot`) and call `Start` once: ```luau ServerScriptService/BloxlyticsBoot.server.luau local HttpService = game:GetService("HttpService") local Analytics = require(game.ServerScriptService.Analytics) -- Optional: short facts shown on this server's card in Bloxlytics. Analytics:SetServerTag("mode", "Classic") Analytics:Start({ -- No ProjectID needed: it is the Universe ID, read from game.GameId. WriteKey = HttpService:GetSecret("bloxlytics_write_key"), ApiUrl = "https://api.bloxlytics.app", -- TrackInStudio = true, -- send analytics while testing in Studio }) ``` Call `Start` as early as you can, so players already in the server when it runs still get a session. If you call it after players have joined, the SDK starts sessions for them too. **5. Publish and play** Publish the place and join a live server. Analytics is off in Studio unless you set `TrackInStudio = true` (see [Studio behaviour](#studio-behaviour)). > **Done:** Sessions, joins, leaves, server heartbeats and game pass prompts are now tracked without any further code. Next, add [custom events](https://docs.bloxlytics.app/sdk/custom-events), [economy](https://docs.bloxlytics.app/sdk/economy) and [purchases](https://docs.bloxlytics.app/sdk/purchases). ### If `GetSecret` can fail `HttpService:GetSecret` is a Roblox call, and it raises an error if the secret isn't available to the server (for example, a secret name typed wrongly). That error happens in your script, before the SDK can fail softly. If you'd rather your boot script never stops, wrap it: ```luau ServerScriptService/BloxlyticsBoot.server.luau local HttpService = game:GetService("HttpService") local Analytics = require(game.ServerScriptService.Analytics) local ok, writeKey = pcall(function() return HttpService:GetSecret("bloxlytics_write_key") end) -- If the secret is missing, WriteKey is nil: Start warns once and stays off. Analytics:Start({ WriteKey = if ok then writeKey else nil, ApiUrl = "https://api.bloxlytics.app", }) ``` ## Check that it works **1. Watch the debugger** On the SDK page, the **Debugger** panel refreshes every 10 seconds. Within about 10 seconds of the server starting it should show **Receiving batches**, with **Accepted events** counting up, the **SDK version** (`1.0.0`) and the **Last server**. **2. Look at realtime** Open [Realtime](https://docs.bloxlytics.app/analytics/realtime). Your server appears with its player count after its first heartbeat, and joins appear in the live feed. **3. Read the output if nothing arrives** Check the server output for lines starting with `[Bloxlytics]`. Every configuration problem is reported there once. Set `Debug = true` in the configuration to also print each send and retry, such as `[Bloxlytics] sent 12 events` or `[Bloxlytics] send failed (0); retrying in 2s`. You can also ask the module directly from the server console: ```luau local Analytics = require(game.ServerScriptService.Analytics) print(Analytics:GetStats()) -- { queued, dropped, enabled, backoff } ``` `enabled = false` means the SDK is off: either the configuration was rejected (look for the warning) or this is Studio without `TrackInStudio`. A growing `queued` with a non-zero `backoff` means sends are failing; see [delivery](https://docs.bloxlytics.app/sdk/delivery). ### Common warnings | Warning (after `[Bloxlytics] Not started:`) | What to do | | --- | --- | | `WriteKey must start with bxw_ (use the write key, not an Open Cloud or bridge key)` | You pasted the bridge key or an Open Cloud key. Copy the **Write key** from the SDK page. | | `WriteKey must be a string or a Secret from HttpService:GetSecret` | `WriteKey` is missing or `nil`. Check the secret name. | | `ApiUrl must be your Bloxlytics API URL` | `ApiUrl` is missing or isn't an `http://` or `https://` URL. Use `https://api.bloxlytics.app`. | | `this place isn't published, so it has no Universe ID yet; …` | Publish the place, or set `ProjectID` to test it unpublished. | | `ProjectID … isn't this experience's Universe ID (…)` | Remove `ProjectID`: the SDK reads the right one from `game.GameId`. | If the API rejects batches (for example after you rotate the write key), the module warns `[Bloxlytics] API rejected a batch (401): …` once per status code and the reason is listed under **Recent problems** in the debugger. More fixes are in [troubleshooting](https://docs.bloxlytics.app/help/troubleshooting). ## Studio behaviour Analytics and the Cmdr bridge behave differently in Studio, on purpose. **Analytics is off in Studio by default.** `Start` still checks your configuration and returns `true`, but no events are queued or sent, so test sessions don't count towards your numbers. With `Debug = true` it prints `Studio session — tracking disabled (set TrackInStudio = true to test)`. Set `TrackInStudio = true` to test analytics; batches are then marked as coming from Studio and heartbeats carry `studio = true`, so the server is shown as a Studio session. > **Note:** While analytics is off in Studio the SDK never fetches remote configuration, so `Analytics:GetVariant` always returns `nil` there. Set `TrackInStudio = true` to test [experiments](https://docs.bloxlytics.app/sdk/experiments). **The Cmdr bridge runs in Studio by default**, so you can test commands before publishing. Studio has no `JobId`, so each Studio session gets its own server key, printed when you start: ```text [Bloxlytics] Studio session. Target this server from the website with server "studio-1a2b3c4d". ``` Pick that server in Bloxlytics to send it commands. Studio sessions are never chosen automatically for "any server" commands. Set `EnableBridgeInStudio = false` to keep the bridge off in Studio. **Unpublished places** have no Universe ID (`game.GameId` is `0`), so the SDK can't work out the project on its own and refuses to start. Publish the place, or set `ProjectID` to the experience's Universe ID while you test. ## Updating the SDK To update, download the new **Analytics.luau** (and **CmdrBridge.luau**) from the SDK page and replace the contents of the existing ModuleScripts. Your boot script doesn't change. The **SDK version** shown in the debugger is the version of the most recent batch received. --- # Configure the SDK > Every field you can pass to Analytics:Start and Analytics:Init, with types, defaults and validation rules. You configure the SDK with one table passed to `Analytics:Start` (or `Analytics:Init`). Only `WriteKey` and `ApiUrl` are required. Everything else has a default, and most behaviour can also be changed later from the dashboard through [remote configuration](https://docs.bloxlytics.app/sdk/remote-config). ```luau ServerScriptService/BloxlyticsBoot.server.luau local HttpService = game:GetService("HttpService") local Analytics = require(game.ServerScriptService.Analytics) Analytics:Start({ WriteKey = HttpService:GetSecret("bloxlytics_write_key"), ApiUrl = "https://api.bloxlytics.app", TrackInStudio = false, Debug = false, }) ``` ## Start and Init - `Analytics:Start(config)` starts analytics and, when you pass `Cmdr`, the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge). Use this one. - `Analytics:Init(config)` starts analytics only and ignores the bridge fields. Both return `true` when the configuration is usable and `false` when it isn't, and both may be called only once per server; a second call warns `Init/Start called twice; ignoring the second call` and returns `false`. `Start` returns the analytics result: a bridge problem only turns the bridge off. > **Note:** The SDK keeps the table you pass and changes two fields in place: trailing slashes are removed from `ApiUrl`, and `ProjectID` is replaced by the resolved Universe ID as a string. ## All fields ### Analytics | Field | Type | Default | Meaning | | --- | --- | --- | --- | | `WriteKey` | `string` or `Secret` | required | The project's write key. As a string it must start with `bxw_`. A `Secret` from `HttpService:GetSecret` is used as it is. | | `ApiUrl` | `string` | required | The Bloxlytics API, `https://api.bloxlytics.app`. Must start with `http://` or `https://`; trailing slashes are removed. | | `ProjectID` | `string` or `number` | `game.GameId` | The experience's Universe ID. Leave it out; set it only to test an unpublished place. See [project ID](#project-id). | | `TrackInStudio` | `boolean` | `false` | Queue and send events in Studio sessions. Off by default so testing doesn't count towards your numbers. | | `AutoTrackSessions` | `boolean` | `true` | Start a session when a player joins and end it when they leave. `false` turns off `$session_start` and `$session_end` from this server entirely. | | `AutoTrackGamePasses` | `boolean` | `true` | Record game pass purchase prompts as `$purchase` events. Developer product prompts are recorded either way. | | `FlushInterval` | `number` | `10` | Seconds between sends, clamped to 2–60. Replaced by the dashboard's value when remote configuration loads. | | `MaxBatchSize` | `number` | `200` | Events per request, clamped to 10–500. Replaced by the dashboard's value when remote configuration loads. | | `Debug` | `boolean` | `false` | Print sends, retries and configuration loads to the output, prefixed `[Bloxlytics]`. | ### Cmdr bridge These fields are only read by `Analytics:Start`, which passes them to `CmdrBridge:Init`. Their full behaviour is on the [bridge reference](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference). | Field | Type | Default | Meaning | | --- | --- | --- | --- | | `Cmdr` | Cmdr server module | none | Your server Cmdr module. Passing it turns the bridge on. | | `BridgeKey` | `string` or `Secret` | none | The project's bridge key. Required when `Cmdr` is passed. As a string it must start with `bxb_`. | | `AllowedGroups` | `{ string }` | all groups | The Cmdr groups Bloxlytics may run. Commands in any other group (or in no group) are refused. | | `AllowSystemCommands` | `boolean` | `true` | `false`: Cmdr commands only run as the sender's own player, when they are in this server. | | `AllowKick` | `boolean` | `true` | Allow kicks sent from Bloxlytics. | | `OnWarn` | `(Player, string) -> ()` | none | Shows a warning to a player. Passing it enables warnings from Bloxlytics. | | `OnAnnounce` | `(string) -> ()` | none | Shows a server-wide announcement. Passing it advertises the announce capability. | | `EnableBridgeInStudio` | `boolean` | `true` | Run the bridge in Studio sessions, so you can test commands. | `Debug`, `ProjectID` and `ApiUrl` are shared with the bridge. ## Keys and secrets Each project has two keys, shown on the SDK page under **Keys**: | Key | Prefix | Used by | Can do | | --- | --- | --- | --- | | **Write key** | `bxw_` | `Analytics` | Submit events and fetch the SDK's remote configuration. It can't read analytics. | | **Bridge key** | `bxb_` | `CmdrBridge` | Register a server, receive commands and report results. | Neither is a Roblox Open Cloud key, and neither works in place of the other: the SDK checks the prefix of a string key before it sends anything. Both modules accept a key as a plain string or as a `Secret` returned by `HttpService:GetSecret`. With a `Secret`, the SDK builds the `Authorization` header with `Secret:AddPrefix("Bearer ")`, so the key itself is never turned into a string in your code. To use secrets, add `bloxlytics_write_key` (and `bloxlytics_bridge_key`) under **Secrets** for your experience in Creator Hub, restricted to `api.bloxlytics.app`. ```luau local HttpService = game:GetService("HttpService") local config = { WriteKey = HttpService:GetSecret("bloxlytics_write_key"), BridgeKey = HttpService:GetSecret("bloxlytics_bridge_key"), ApiUrl = "https://api.bloxlytics.app", } ``` ### Rotating a key Use the rotate button next to a key on the SDK page. The old key stops working immediately: running servers have their batches rejected with `401` (or lose the bridge) until you update the secret or the script and the servers restart. With secrets, you only update the secret; no publish is needed, but existing servers keep the old value until they restart. ## Project ID A Bloxlytics project is one experience, and its id is the experience's **Universe ID**. A running server knows that as `game.GameId`, so you normally leave `ProjectID` out. | `ProjectID` | Place | Result | | --- | --- | --- | | left out | published | Uses `game.GameId`. | | left out | unpublished (`game.GameId` is `0`) | Not started: `this place isn't published, so it has no Universe ID yet; publish it, or set ProjectID to the experience's Universe ID`. | | digits (string or number) | unpublished | Uses the value you give. Handy for testing a new place in Studio. | | digits (string or number) | published, matches `game.GameId` | Uses it. | | digits (string or number) | published, different from `game.GameId` | Not started: `ProjectID … isn't this experience's Universe ID (…); leave ProjectID out to use it automatically`. This stops one experience's servers reporting into another project. | | a project id from before projects were keyed by Universe ID (a UUID) | any | Still accepted, for older installs. | | anything else | any | Not started: `ProjectID must be the experience's Universe ID (or leave it out to use game.GameId)`. | The project id is sent with every request in the `X-Bloxlytics-Project` header. See [authentication](https://docs.bloxlytics.app/api/authentication). ## API URL Set `ApiUrl` to `https://api.bloxlytics.app`, which is also the **API URL** shown under **Keys**. The SDK adds the paths itself (`/v1/ingest`, `/v1/config`, `/v1/bridge/…`), so give the bare address with no path; trailing slashes are removed for you. The SDK only checks that the value starts with `http://` or `https://`. Always use the `https://` address: keys travel in the `Authorization` header, and the address is what an experience secret is restricted to. ## Validation order `Start` and `Init` check the configuration in this order and stop at the first problem: 1. It is running on the server. 2. It hasn't already been called on this server. 3. The configuration is a table (`pass a configuration table`). 4. `ProjectID` resolves (see the table above). 5. `WriteKey` is a string starting with `bxw_` or a `Secret`. 6. `ApiUrl` starts with `http://` or `https://`. If everything passes in Studio without `TrackInStudio`, `Init` returns `true` and stops there: nothing is tracked, no remote configuration is fetched and no shutdown handler is bound. Otherwise the SDK starts its loop, binds its `PlayerAdded`, `PlayerRemoving`, marketplace and `BindToClose` handlers, and fetches remote configuration. The bridge has its own checks, which run after analytics in `Start`. See the [bridge reference](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference#configuration-checks). --- # Automatic events > Everything the analytics module records on its own once Start has run, with exact event names, timing and properties. After `Analytics:Start`, the SDK records sessions, server lifecycle and marketplace prompts without any code from you. This page lists exactly what is sent, when, and with which properties. Types and limits for every reserved event are on the [event reference](https://docs.bloxlytics.app/sdk/event-reference). | Event | When | Turned off by | | --- | --- | --- | | `$server_start` | Once, just after start-up | — | | `$server_heartbeat` | About every 30 seconds | — | | `$server_stop` | When the server shuts down | — | | `$session_start` | A player joins (or is already in the server at start-up) | `AutoTrackSessions = false`, or **Sessions** off in the dashboard | | `$session_end` | A player leaves, or the server shuts down | `AutoTrackSessions = false`, or **Sessions** off in the dashboard | | `$purchase` (game pass) | A game pass purchase prompt closes | `AutoTrackGamePasses = false`, or **Purchases** off in the dashboard | | `$purchase` (developer product attempt) | A developer product purchase prompt closes | **Purchases** off in the dashboard | None of these are sent from Studio unless you set `TrackInStudio = true`. ## What every event carries Each event in a batch has these fields (see [event format](https://docs.bloxlytics.app/api/ingest/event-format)): | Field | Value | | --- | --- | | `id` | A random GUID made by `HttpService:GenerateGUID`. The API uses it to drop duplicates when a batch is retried. | | `name` | The event name, such as `$session_start`. | | `ts` | When the call was made, in Unix seconds with millisecond precision (`DateTime.now().UnixTimestampMillis / 1000`). | | `userId` | The player's `UserId`, for events about a player. Absent on server events. | | `sessionId` | The player's current session id, when they have one. | | `props` | The event's properties. Left out when there are none. | Each batch also describes the server once: | Field | Value | | --- | --- | | `jobId` | `Analytics.ServerKey`: `game.JobId`, or a key like `studio-1a2b3c4d` in Studio. | | `placeId` | `game.PlaceId` | | `placeVersion` | `game.PlaceVersion`, so you can compare place versions. | | `privateServerId` | `game.PrivateServerId`, only in private servers. | | `isStudio` | `RunService:IsStudio()` | ## Server lifecycle ### `$server_start` Sent once, from the SDK's start-up thread, right after the first attempt to fetch remote configuration. | Property | Type | Value | | --- | --- | --- | | `maxPlayers` | number | `Players.MaxPlayers` | | `tags` | string | Your [server tags](https://docs.bloxlytics.app/sdk/reference#setservertag) as a JSON object, for example `{"mode":"Classic"}`. | | `studio` | boolean | Whether this is a Studio session. | Tags you set with `SetServerTag` before `Start`, or straight after it, are included. ### `$server_heartbeat` Sent about every 30 seconds for as long as the server runs. Heartbeats drive the live server list, concurrent players and "who is online where" in Bloxlytics. They don't appear in the live event feed. | Property | Type | Value | | --- | --- | --- | | `playerCount` | number | Number of players in the server. | | `maxPlayers` | number | `Players.MaxPlayers` | | `players` | string | The user ids of everyone in the server, comma separated, for example `"1001,1002"`. | | `bridge` | boolean | `true` when the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge) has registered and is enabled for the project. | | `tags` | string | Current server tags as a JSON object. | | `studio` | boolean | Whether this is a Studio session. | ### `$server_stop` Sent from the SDK's `BindToClose` handler, after every open session has been ended. It has no properties. Bloxlytics marks the server as stopped and removes it from the live list. ## Sessions A session is one visit by one player to one server. The SDK starts one in `Players.PlayerAdded` and ends it in `Players.PlayerRemoving`. Players already in the server when `Start` runs also get a session, started just after the first remote configuration fetch. Each session has a random id. Every event you track for that player while the session is open carries it as `sessionId`, which is how Bloxlytics groups a player's events into a visit. ### `$session_start` | Property | Type | Source | | --- | --- | --- | | `username` | string | `player.Name` | | `displayName` | string | `player.DisplayName` | | `accountAge` | number | `player.AccountAge`, in days. | | `premium` | boolean | `player.MembershipType == Enum.MembershipType.Premium` | | `locale` | string | `player.LocaleId`, for example `en-us`. | | `country` | string | `LocalizationService:GetCountryRegionForPlayerAsync(player)`, an ISO 3166-1 alpha-2 code such as `GB`. Left out if Roblox's call fails. | | `teleported` | boolean | `true` when `player:GetJoinData().SourcePlaceId` is set, meaning the player arrived by teleport. | The country lookup yields briefly. If the player leaves before it returns, the start event isn't sent. ### `$session_end` | Property | Type | Value | | --- | --- | --- | | `duration` | number | Whole seconds since the session started. | When the server shuts down, the SDK ends every open session first, so players still in a closing server get a `$session_end` too. ### Turning sessions off - `AutoTrackSessions = false` in the configuration turns session tracking off on that server: no handlers are connected and no sessions exist. - The **Sessions** switch in the dashboard's SDK configuration stops new sessions being started on every server once they load the change (within 5 minutes), and the API starts rejecting session events within about 30 seconds of the change. Without a session, your events for a player have no `sessionId`, and [experiment exposures](https://docs.bloxlytics.app/sdk/experiments#exposure-events) aren't logged. ## Marketplace prompts The SDK listens to Roblox's prompt events so purchase funnels work with no code. Product names and prices come from `MarketplaceService:GetProductInfo`, looked up on a separate thread and cached for the life of the server. Details are on [purchases](https://docs.bloxlytics.app/sdk/purchases). ### Game passes When `MarketplaceService.PromptGamePassPurchaseFinished` fires, the SDK sends a `$purchase` with `status = "attempted"`, and, if `wasPurchased` is true, a second `$purchase` with `status = "completed"` and `receiptId` set to `gp--`. | Property | Type | Value | | --- | --- | --- | | `kind` | string | `"gamepass"` | | `productId` | number | The game pass id. | | `productName` | string | From `GetProductInfo`, when it succeeds. | | `robux` | number | `PriceInRobux` from `GetProductInfo`, when available. | | `status` | string | `"attempted"` or `"completed"` | | `receiptId` | string | `gp--`, on completions only. | ### Developer products When `MarketplaceService.PromptProductPurchaseFinished` fires for a player in the server, the SDK sends a `$purchase` with `kind = "developer_product"` and `status = "attempted"`, whether or not the player bought it. The completion is recorded only from your `ProcessReceipt` handler, which is the authoritative signal; wrap it with [`WrapProcessReceipt`](https://docs.bloxlytics.app/sdk/purchases#processreceipt). ## What isn't automatic These need a call from your code, because only your game knows when they happen: - [custom events](https://docs.bloxlytics.app/sdk/custom-events), funnels and progression; - [currency sources, sinks, balances and transfers](https://docs.bloxlytics.app/sdk/economy); - completed developer product purchases ([`WrapProcessReceipt`](https://docs.bloxlytics.app/sdk/purchases#processreceipt)); - [player properties and roles](https://docs.bloxlytics.app/sdk/reference#player-properties); - [experiment exposures](https://docs.bloxlytics.app/sdk/experiments), which are logged when you call `GetVariant`. --- # Custom events > Track anything that happens in your game with TrackEvent, plus funnel steps and progression, and learn the naming and property rules. Custom events are the moments that matter in your game: a pet hatched, a boss spawned, a quest abandoned. Track them with `Analytics:TrackEvent` and they appear in [Events](https://docs.bloxlytics.app/analytics/events), [Explore](https://docs.bloxlytics.app/analytics/explore) and the [funnel builder](https://docs.bloxlytics.app/analytics/funnels). ```luau Analytics:TrackEvent(player, "PetHatched", { PetName = "Dragon", Rarity = "Legendary", Island = 3, }) ``` ## Signature ```luau Analytics:TrackEvent(player: Player?, name: string, properties: { [string]: any }?) Analytics:TrackEvent(name: string, properties: { [string]: any }?, player: Player?) ``` Both forms do the same thing. If the first argument is a `Player`, it is the player and the name comes next; otherwise the name comes first and the player, if any, comes last. - **With a player**, the event is attributed to them and their current session. Use this for anything a player did. - **Without a player**, it is a server-level event, such as a boss spawning or a round ending. ```luau -- Player events Analytics:TrackEvent(player, "QuestAbandoned", { Quest = "Lost Kitten", Minutes = 4 }) Analytics:TrackEvent("QuestAbandoned", { Quest = "Lost Kitten" }, player) -- Server events Analytics:TrackEvent("BossSpawned", { Boss = "Kraken" }) Analytics:TrackEvent("RoundEnded") ``` `TrackEvent` returns nothing and never yields: it only adds the event to the queue. ## Naming rules An event name must: - start with a letter (`A`–`Z`, `a`–`z`); - contain only letters, digits, spaces and `_` `.` `:` `-`; - be at most 64 characters. Names starting with `$` are reserved for the SDK's own events (see the [event reference](https://docs.bloxlytics.app/sdk/event-reference)), so a custom event can never be mistaken for one. A name that breaks the rules is dropped with the warning `TrackEvent: invalid event name `. > **Tip:** Pick one style and keep to it. Names are case-sensitive, so `PetHatched` and `pet_hatched` are two different events in every chart. PascalCase verbs in the past tense (`ShopOpened`, `PetHatched`, `RebirthCompleted`) read well in the dashboard. Put what varies into properties, not the name. `PetHatched` with `{ Rarity = "Legendary" }` lets you break down by rarity; `LegendaryPetHatched`, `RarePetHatched` and so on can't be compared in one chart. ## Properties Properties are a flat table of up to 32 keys. | Rule | Limit | | --- | --- | | Number of properties | 32 per event. Extra properties are dropped with `only the first 32 properties are kept`. Lua tables have no fixed order, so which ones are kept isn't defined: stay under the limit. | | Key | Starts with a letter or `_`; then letters, digits, spaces and `_` `.` `-`; at most 40 characters. Other keys are dropped with `dropped invalid property name `. | | String value | Cut to 256 characters. | | Number value | Must be finite. `NaN`, `math.huge` and `-math.huge` are dropped silently. | | Boolean value | Sent as it is. | | `EnumItem` or `Instance` | Converted with `tostring`, so `Enum.Material.Grass` becomes `"Enum.Material.Grass"` and an Instance becomes its `Name`. | | Anything else | Tables, `Vector3`, `CFrame`, functions and other types are dropped with `property has unsupported type `. | An empty table is the same as no properties. If `properties` isn't a table at all, the event is still sent, with no properties, and the SDK warns `: properties must be a table`. ```luau Analytics:TrackEvent(player, "ItemCrafted", { Item = "Iron Sword", Tier = 2, FirstTime = true, Material = Enum.Material.Metal, -- sent as "Enum.Material.Metal" Position = character:GetPivot().Position, -- dropped: unsupported type Vector3 }) ``` If you need a vector or a list, flatten it yourself: `{ X = pos.X, Z = pos.Z }`, or a comma-separated string. ## When events are dropped | Situation | What happens | | --- | --- | | Invalid name | Dropped in game, with a warning. | | `player` given but not a `Player` | Dropped in game: `TrackEvent(): player must be a Player`. | | **Custom events** turned off in the dashboard | Dropped in game once servers load the change, and rejected by the API in the meantime. No warning. | | Name listed in **Blocked events** | Same as above. Use this to silence a noisy event without publishing. | | SDK not started, or Studio without `TrackInStudio` | Ignored. | Each warning is printed once per server for each distinct problem. Rejections by the API are listed under **Recent problems** in the SDK page's **Debugger**. See [remote configuration](https://docs.bloxlytics.app/sdk/remote-config) and [delivery](https://docs.bloxlytics.app/sdk/delivery). ## Funnel steps A funnel step is a reserved `$funnel` event, made for multi-step flows such as onboarding or a tutorial. Funnel steps need a player. ```luau Analytics:TrackFunnel(player, "Tutorial", "Started", 0) Analytics:TrackFunnel(player, "Tutorial", "Step2", 1) Analytics:TrackFunnel(player, "Tutorial", "Completed", 2) -- The player may also come third: Analytics:TrackFunnel("Tutorial", "Completed", player, 2) ``` | Argument | Type | Rules | | --- | --- | --- | | `player` | `Player` | Required. Without it: `TrackFunnel(): pass the player so the step can be attributed`. | | `funnel` | `string` | Non-empty; cut to 64 characters. | | `step` | `string` | Non-empty; cut to 64 characters. | | `index` | `number?` | Optional step number, rounded down. Keeps steps in order in the funnel builder. Must not be negative, or the API rejects the event. | In the [funnel builder](https://docs.bloxlytics.app/analytics/funnels) a step is written `$funnel::`, for example `$funnel:Tutorial:Completed`. You can also build funnels straight from custom events, so `TrackFunnel` is a convenience, not a requirement. ## Progression Progression events record a player starting, completing or failing a level, stage or challenge. ```luau Analytics:TrackProgression(player, "start", "World1:Level3") Analytics:TrackProgression(player, "complete", "World1:Level3", 870) Analytics:TrackProgression(player, "fail", "World1:Level3") ``` | Argument | Type | Rules | | --- | --- | --- | | `player` | `Player` | Required. | | `status` | `"start" \| "complete" \| "fail"` | Exactly one of these. | | `path` | `string` | Cut to 128 characters. Use `:` to make a hierarchy, such as `World1:Level3`. | | `score` | `number?` | Optional. Must be finite. | Any other arguments are dropped with `TrackProgression(player, 'start'|'complete'|'fail', path, score?)`. In the funnel builder these events are `$progression:start`, `$progression:complete` and `$progression:fail`. > **Note:** Funnel steps and progression aren't affected by the **Custom events** switch or by **Blocked events**. Those apply only to `TrackEvent`. ## Examples ### A round-based game ```luau ServerScriptService/Rounds.server.luau local Players = game:GetService("Players") local Analytics = require(game.ServerScriptService.Analytics) local function runRound(mapName: string) Analytics:TrackEvent("RoundStarted", { Map = mapName, Players = #Players:GetPlayers() }) local started = os.clock() -- … play the round … Analytics:TrackEvent("RoundEnded", { Map = mapName, Seconds = math.floor(os.clock() - started), }) end ``` ### Shop funnel ```luau -- When the shop UI is opened through a server RemoteEvent: Analytics:TrackEvent(player, "ShopOpened", { Source = "HUD" }) -- When the player selects a product: Analytics:TrackEvent(player, "ProductViewed", { ProductId = productId }) ``` With purchase tracking in place, the **Shop conversion** funnel template (`ShopOpened` → `ProductViewed` → `$purchase:attempted` → `$purchase:completed`) works straight away. > **Warning:** If a client tells the server something happened (for example "I opened the shop"), the server can't verify it. That is fine for UI events like `ShopOpened`, but never track currency, items or purchases from what a client says. See [economy](https://docs.bloxlytics.app/sdk/economy). --- # Track your economy > Record currency sources, sinks, balances and player-to-player transfers from server code, and configure the currencies Bloxlytics accepts. Economy tracking answers where currency comes from, where it goes and how much players hold. It powers [Economy](https://docs.bloxlytics.app/analytics/economy) and the **Currency generated** alert. You make one call wherever your server already changes a player's balance. ```luau Analytics:TrackCurrencyEarned(player, "Coins", 150, "Quests", nil, newBalance) Analytics:TrackCurrencySpent(player, "Coins", 500, "Eggs", "GoldenEgg", newBalance) Analytics:TrackBalance(player, "Gems", gems) Analytics:TrackCurrencyTransfer(player, otherPlayer, "Coins", 100, "Trade") ``` > **Server-authoritative only:** Call these from the server code that actually changes the balance, after it has changed. Never call them from a `RemoteEvent` handler that trusts an amount sent by the client: an exploiter could then report any amount they like, and your economy charts would be meaningless. ## Sources and sinks ```luau Analytics:TrackCurrencyEarned(player: Player, currency: string, amount: number, source: string?, item: string?, balance: number?) Analytics:TrackCurrencySpent(player: Player, currency: string, amount: number, sink: string?, item: string?, balance: number?) ``` Both send a `$economy` event. `TrackCurrencyEarned` records a **source** (`flow = "source"`), `TrackCurrencySpent` a **sink** (`flow = "sink"`). | Argument | Type | Rules | | --- | --- | --- | | `player` | `Player` | Required. | | `currency` | `string` | Non-empty, at most 32 characters. Matched against your configured currencies without regard to case. | | `amount` | `number` | Greater than 0 and finite. Always positive: the direction comes from which function you call. | | `source` / `sink` | `string?` | The category, such as `"Quests"`, `"Daily rewards"`, `"Eggs"` or `"Upgrades"`. At most 64 characters. | | `item` | `string?` | What was bought or earned, such as `"GoldenEgg"`. At most 64 characters. | | `balance` | `number?` | The player's balance **after** the change. Finite. Optional, but it powers the average and median balance charts. | > **Warning:** The SDK checks the player, currency and amount, but it doesn't shorten `source`, `sink`, `item` or `reason`. If one of them is longer than 64 characters, the API rejects the whole event and the reason appears in the debugger. Keep categories short and fixed. Use a small, fixed set of categories. Bloxlytics breaks sources and sinks down by category, so `"Quests"` everywhere is far more useful than one category per quest. Put the detail in `item`. ## Balances ```luau Analytics:TrackBalance(player: Player, currency: string, balance: number) ``` Sends a `$balance` snapshot: the player's current balance, without a change. Useful when a player joins (after their data loads) or at regular intervals, so balance charts include players who don't earn or spend in a session. `balance` must be a finite number; zero and negative values are allowed. Balance snapshots don't appear in the live event feed. ## Transfers ```luau Analytics:TrackCurrencyTransfer(from: Player, to: Player | number, currency: string, amount: number, reason: string?) ``` Sends a `$economy_transfer` for currency moving from one player to another, such as a trade or a gift. `to` may be a `Player` or a user id (for example, when the receiver is offline). The event belongs to the sender. `amount` must be greater than 0 and finite, and `reason` at most 64 characters. A transfer isn't a source or a sink: the currency in circulation doesn't change. If your game takes a fee on trades, also record the fee as a sink. ## When calls are dropped The economy functions return nothing and never warn about the player or the amount: a call with a missing player, a zero, negative, `NaN` or infinite amount is silently ignored. Other cases: | Situation | What happens | | --- | --- | | `currency` isn't a non-empty string | Dropped, with `Economy: currency must be a non-empty string`. | | Currency not in the dashboard's list (when the list isn't empty) | **Sent anyway**, with the warning `Currency "" isn't configured in Bloxlytics → SDK settings; events will be rejected`. The API then rejects it, and the debugger shows `Unknown currency "" — add it in SDK settings`. | | **Economy** turned off in the dashboard | Dropped in game once servers load the change, and rejected by the API in the meantime. | | SDK not started, or Studio without `TrackInStudio` | Ignored. | ## Configure currencies In **Bloxlytics → your project → SDK → Configuration**, under **Currencies**, add each currency your game uses, with a **Key** and a **Label**: - The **Key** is what you pass as `currency` in code, such as `Coins`. Keys may contain letters, numbers, spaces and `_`, start with a letter, are at most 32 characters and must be unique (ignoring case). - The **Label** is the name shown in charts, such as `Gold coins`. At most 32 characters. - You can define up to 20 currencies. While the list is empty, every currency name is accepted. **As soon as you define one currency, economy events for any currency not in the list are rejected.** This keeps typos such as `"coins "` or `"Coin"` out of your charts. The check ignores case, so `coins` matches the key `Coins`. Servers receive the currency list through [remote configuration](https://docs.bloxlytics.app/sdk/remote-config), within 5 minutes. They use it only to warn you early; the API makes the final decision as events arrive. ## Example A shop purchase and a quest reward in a typical data module: ```luau ServerScriptService/Economy.server.luau local Analytics = require(game.ServerScriptService.Analytics) local balances: { [Player]: number } = {} local function grantCoins(player: Player, amount: number, source: string) balances[player] = (balances[player] or 0) + amount Analytics:TrackCurrencyEarned(player, "Coins", amount, source, nil, balances[player]) end local function trySpendCoins(player: Player, price: number, sink: string, item: string): boolean local balance = balances[player] or 0 if balance < price then return false end balances[player] = balance - price Analytics:TrackCurrencySpent(player, "Coins", price, sink, item, balances[player]) return true end -- A quest reward grantCoins(player, 150, "Quests") -- Buying an egg if trySpendCoins(player, 500, "Eggs", "GoldenEgg") then -- hatch the egg … end ``` When a player's data loads, a balance snapshot fills in the picture for players who won't earn or spend this session: ```luau Analytics:TrackBalance(player, "Coins", balances[player] or 0) ``` ## Robux purchases that grant currency A developer product that grants currency is both a purchase and a currency source. Track the purchase with [`WrapProcessReceipt`](https://docs.bloxlytics.app/sdk/purchases#processreceipt) and the currency with `TrackCurrencyEarned`, using a category such as `"Purchases"`: ```luau Analytics:TrackCurrencyEarned(player, "Gems", 500, "Purchases", "500 Gems", newGems) ``` --- # Track purchases > Record developer product and game pass purchases, wrap ProcessReceipt safely and give products friendly names. Purchase tracking powers [Monetisation](https://docs.bloxlytics.app/analytics/monetisation), revenue on the overview, ARPU, paying players and purchase funnels. Most of it is automatic. The one thing you add is a wrapper around your `ProcessReceipt` handler, so completed developer product purchases are recorded from Roblox's authoritative receipt. | What | How it is tracked | Event | | --- | --- | --- | | Game pass prompt closed | Automatically | `$purchase`, `status = "attempted"` | | Game pass bought through a prompt | Automatically | `$purchase`, `status = "completed"` | | Developer product prompt closed | Automatically | `$purchase`, `status = "attempted"` | | Developer product granted | `Analytics:WrapProcessReceipt` | `$purchase`, `status = "completed"` | All purchase events need the player to be in the server, and all of them stop when **Purchases** is turned off in the dashboard's SDK configuration. ## ProcessReceipt ```luau Analytics:WrapProcessReceipt(handler: (receipt) -> Enum.ProductPurchaseDecision): (receipt) -> Enum.ProductPurchaseDecision ``` `WrapProcessReceipt` takes your existing handler and returns a new function to assign to `MarketplaceService.ProcessReceipt`. Your handler stays completely in charge of granting: 1. The wrapper calls your handler with the receipt, exactly as Roblox would. 2. If your handler returns `Enum.ProductPurchaseDecision.PurchaseGranted`, the wrapper records a completed purchase. Any other decision records nothing. 3. The wrapper returns your handler's decision unchanged. Recording happens inside `pcall`, so a tracking problem can never change the decision or stop the receipt being processed. Errors raised by **your** handler are not caught: they behave exactly as they would without the wrapper. ```luau ServerScriptService/Receipts.server.luau local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local Analytics = require(game.ServerScriptService.Analytics) local GEMS_BY_PRODUCT: { [number]: number } = { [1001] = 500, [1002] = 2500, } local function processReceipt(receipt): Enum.ProductPurchaseDecision local player = Players:GetPlayerByUserId(receipt.PlayerId) if not player then -- Roblox will try again the next time the player joins. return Enum.ProductPurchaseDecision.NotProcessedYet end local gems = GEMS_BY_PRODUCT[receipt.ProductId] if not gems then return Enum.ProductPurchaseDecision.NotProcessedYet end -- Grant the product (and save it) before returning PurchaseGranted. local newBalance = grantGems(player, gems) Analytics:TrackCurrencyEarned(player, "Gems", gems, "Purchases", tostring(receipt.ProductId), newBalance) return Enum.ProductPurchaseDecision.PurchaseGranted end MarketplaceService.ProcessReceipt = Analytics:WrapProcessReceipt(processReceipt) ``` `grantGems` stands for your own code that adds the currency and saves it. The completed event records: | Property | Value | | --- | --- | | `kind` | `"developer_product"` | | `productId` | `receipt.ProductId` | | `productName` | The product's name (see [product names](#product-names)). | | `robux` | `receipt.CurrencySpent`, the Robux the player actually paid. | | `status` | `"completed"` | | `receiptId` | `receipt.PurchaseId`, Roblox's id for this purchase. | ### Things to know - **Only granted purchases count.** If you return `NotProcessedYet`, nothing is recorded; when Roblox retries the receipt and you grant it, the purchase is recorded then. - **The player must be in the server.** If `Players:GetPlayerByUserId(receipt.PlayerId)` finds no player, the purchase isn't recorded, even if you grant it. - **Make your handler idempotent.** Roblox can deliver the same receipt more than once. If your handler returns `PurchaseGranted` for the same `PurchaseId` twice, two completions are recorded. Roblox recommends recording processed `PurchaseId`s anyway so you never grant twice. - **It may yield once per product.** The first time a product is seen, the wrapper looks up its name with `MarketplaceService:GetProductInfo` before returning your decision. Later receipts for that product use the cache. Call [`SetProductNames`](#product-names) at start-up to avoid the lookup entirely. - **`WrapProcessReceipt` checks its argument.** Passing something other than a function raises `WrapProcessReceipt expects your ProcessReceipt function`. This is the one SDK call that can error, because it runs once at start-up and a silent failure would leave you with no receipt handler. - Roblox allows only one `ProcessReceipt` callback per server, so assign the wrapped function in one place. ## Game passes With `AutoTrackGamePasses` left at its default (`true`), the SDK listens to `MarketplaceService.PromptGamePassPurchaseFinished`. Every time a game pass prompt closes it records an attempt, and if the player bought the pass, a completion with `receiptId` set to `gp--`. `robux` is the pass's `PriceInRobux` from `GetProductInfo`, so it is the current price when the lookup happens. You don't need any code for this, as long as you prompt with `MarketplaceService:PromptGamePassPurchase`. Game passes bought outside your game (for example on the experience's store page) don't fire the prompt event, so they aren't recorded. To grant the pass's benefits, keep your own `PromptGamePassPurchaseFinished` handler or `UserOwnsGamePassAsync` checks; the SDK only observes. ## Developer product attempts When `MarketplaceService.PromptProductPurchaseFinished` fires, the SDK records an attempt for that player, whether or not they bought it. The completion comes only from `WrapProcessReceipt`, because the prompt result isn't proof the product was granted. Together they give you the `$purchase:attempted` → `$purchase:completed` steps used by the **First purchase** and **Shop conversion** funnel templates. ## Product names Names and prices come from `MarketplaceService:GetProductInfo`, with `Enum.InfoType.Product` for developer products and `Enum.InfoType.GamePass` for game passes. Each product is looked up once per server and cached, including failed lookups. Prompt lookups run on their own thread, so they never slow your game down. If you'd rather choose the names (or avoid the lookups), give them to the SDK: ```luau Analytics:SetProductNames({ [1001] = "500 Gems", [1002] = "2,500 Gems", [1003] = "Starter Pack", }) ``` - `SetProductNames` applies to **developer products only**. Game pass names always come from `GetProductInfo`. - Call it at start-up, before any purchase. A product already looked up and cached on this server keeps its cached name. - A product named this way is never looked up, so its prompt **attempts** carry no `robux`. Completions still carry `receipt.CurrencySpent`. - You can call it more than once; later names add to or replace earlier ones. Products seen in completed purchases are added to your project's product list in Bloxlytics, using these names. ## What isn't tracked - **Failed purchases.** The API accepts `status = "failed"`, but the SDK never sends it: Roblox doesn't tell the server why a prompt closed without a purchase, so a closed prompt is recorded as an attempt. - **Premium payouts.** The API accepts `kind = "premium"`, but the SDK doesn't send it; Roblox doesn't report Premium engagement payouts to game servers. Roblox's own revenue figures are available through [Open Cloud](https://docs.bloxlytics.app/projects/open-cloud); see [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis#what-is-not-supported-and-why). - **Purchases you track from the client.** There is no client API, on purpose. --- # Run experiments in game > Assign players to experiment variants with GetVariant, how consistent assignment works, and how exposures are logged. You create experiments in Bloxlytics ([Experiments](https://docs.bloxlytics.app/analytics/experiments)): a key, an allocation, two to six variants with weights, and an optional flat config per variant. The SDK receives running experiments through [remote configuration](https://docs.bloxlytics.app/sdk/remote-config) and assigns players in game with one call. ```luau local variant, config = Analytics:GetVariant(player, "starting-coins") if variant then coins = config.StartingCoins -- e.g. 100 or 500 end ``` ## GetVariant ```luau Analytics:GetVariant(player: Player, experimentKey: string): (string?, { [string]: any }?) ``` | Returns | When | | --- | --- | | `variantKey, config` | The experiment is running and the player is inside its allocation. `config` is the variant's config table from the dashboard (possibly empty). | | `nil, nil` | The experiment isn't running, doesn't exist, the player is outside the allocation, `player` isn't a `Player`, or remote configuration hasn't loaded yet. | `GetVariant` doesn't yield and doesn't make a request: it works entirely from the experiments the server last received. You can call it as often as you like; the answer for a player only changes if the experiment's settings change. > **Always handle nil:** Treat `nil` as "show the normal game". Players outside the allocation get `nil` on purpose, and so does everyone in Studio without `TrackInStudio`, and anyone checked before the server's first configuration fetch has finished. ## Consistent assignment Assignment is deterministic: the same player always gets the same variant of the same experiment, on every server, without storing anything. The SDK and Bloxlytics use the same algorithm, so the dashboard knows which variant each player saw. Both steps use the 32-bit **FNV-1a** hash of a string. 1. **Allocation.** `bucket = fnv1a(":") % 10000`. The player is in the experiment if `bucket < allocation * 100`, where `allocation` is the percentage set in the dashboard (1–100). So an allocation of 25 includes buckets 0–2499. 2. **Variant.** `pick = fnv1a(":variant:") % totalWeight`, where `totalWeight` is the sum of the variants' weights. Walking the variants in order and adding up weights, the player gets the first variant whose running total is greater than `pick`. For example, with variants `A` (weight 50) and `B` (weight 50), `pick` values 0–49 get `A` and 50–99 get `B`. Because the allocation hash and the variant hash use different strings, raising the allocation adds new players to the experiment without moving anyone already in it between variants. Changing weights, or adding or removing variants, does reassign players, so set them before you start. FNV-1a works on the bytes of the string: offset basis `0x811c9dc5`, and for each byte, XOR then multiply by the prime `0x01000193`, modulo 2³². Experiment keys are limited to letters, digits, `-` and `_`, so the bytes are the same in Luau and on the server. The SDK implements the multiplication with `bit32` in 16-bit halves so the result is exact. ## Exposure events The first time `GetVariant` assigns a player to a variant during a session, the SDK sends a `$experiment_exposure` event: | Property | Type | Value | | --- | --- | --- | | `experiment` | string | The experiment key. | | `variant` | string | The variant key the player got. | Later calls in the same session send nothing more, so call `GetVariant` wherever it is convenient. A new session (the player rejoining) logs a new exposure. Exposures are how the experiment's results are counted: a player is in the analysis from the moment they were exposed. That means you should call `GetVariant` **at the point where the variant makes a difference**, not when the player joins. If only players who open the shop see the change, check the variant when they open the shop; otherwise players who never reached the shop dilute the result. Nothing is logged when `GetVariant` returns `nil`, or when the player has no session (sessions turned off with `AutoTrackSessions = false` or the **Sessions** switch). ## Timing - Servers fetch remote configuration on start-up and every 5 minutes. A newly started experiment reaches running servers within 5 minutes; a stopped one stops being assigned within 5 minutes. - Only experiments with the status **running**, and inside their start and end dates, are sent to servers. - The first fetch happens just after `Start`, on the SDK's own thread. Until it returns, `GetVariant` returns `nil` for everyone. If your variant decides something at join time, give the first fetch a moment, or re-check later in the session. ## Example: gating a feature Testing whether a daily reward streak improves retention, with variants `control` (no streak) and `streak`: ```luau ServerScriptService/DailyReward.server.luau local Analytics = require(game.ServerScriptService.Analytics) local function onDailyRewardClaimed(player: Player, day: number) local variant = Analytics:GetVariant(player, "daily-streak") if variant == "streak" then grantStreakReward(player, day) -- the new feature else grantDailyReward(player) -- control, outside the experiment, or not loaded yet end end ``` The exposure is logged when the player claims their first reward of the session, which is exactly when the two versions start to differ. ## Example: tuning a value Variant config is a flat table you define per variant in the dashboard, with string, number or boolean values. Use it to test numbers without publishing: ```luau ServerScriptService/StartingCoins.server.luau local Players = game:GetService("Players") local Analytics = require(game.ServerScriptService.Analytics) local DEFAULT_STARTING_COINS = 100 local function startingCoinsFor(player: Player): number local _, config = Analytics:GetVariant(player, "starting-coins") if config and typeof(config.StartingCoins) == "number" then return config.StartingCoins end return DEFAULT_STARTING_COINS end Players.PlayerAdded:Connect(function(player) -- Only new players are part of this experiment. if isFirstVisit(player) then setCoins(player, startingCoinsFor(player)) end end) ``` `isFirstVisit` and `setCoins` stand for your own data code. Check the type of each config value: if a variant was saved without a key, that key is `nil`. ## Testing in Studio Set `TrackInStudio = true` to test experiments in Studio; without it the SDK never fetches remote configuration there, so `GetVariant` always returns `nil`. Exposures logged while you test in Studio count towards the experiment like any other, so keep tests short. --- # 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](https://docs.bloxlytics.app/analytics/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](https://docs.bloxlytics.app/sdk/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](https://docs.bloxlytics.app/sdk/economy#configure-currencies). ### 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`](https://docs.bloxlytics.app/sdk/reference#setplayerproperty) or [`SetPlayerRole`](https://docs.bloxlytics.app/sdk/reference#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](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference#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](https://docs.bloxlytics.app/sdk/cmdr-bridge/security#permission-layers). ## 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: ```json { "flushIntervalSeconds": 10, "maxBatchSize": 200, "trackSessions": true, "trackEconomy": true, "trackPurchases": true, "trackCustomEvents": true, "blockedEvents": ["DebugPing"], "currencies": ["Coins", "Gems"], "bridgeEnabled": true, "experiments": [ { "key": "starting-coins", "allocation": 50, "variants": [ { "key": "A", "weight": 50, "config": { "StartingCoins": 100 } }, { "key": "B", "weight": 50, "config": { "StartingCoins": 500 } } ] } ] } ``` Only experiments that are running and inside their start and end dates are included. The full response is documented on [get config](https://docs.bloxlytics.app/api/ingest/get-config). ## Fetch timing 1. **Start-up.** Just after `Start`, on its own thread, before `$server_start` is 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 any `FlushInterval` and `MaxBatchSize` from your script. 2. **Every 5 minutes** after that, on a separate thread so a slow response never delays sending. 3. **On failure**, the server keeps the configuration it already has and tries again at the next 5-minute refresh. With `Debug = true` it prints `config 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. --- # Delivery and the debugger > How the SDK queues, batches, retries and flushes events, what happens on shutdown, and how to read rejected events in the SDK debugger. Tracking calls never send anything themselves. They add an event to an in-memory queue, and the SDK's own thread sends the queue in batches. This page explains that pipeline end to end, so you know what to expect when the network is slow, the API is unreachable or a server shuts down. ## The queue - Every event is added to the end of one queue per server. - The queue holds at most **5,000** events. When it is full, the **oldest** event is dropped to make room, the SDK warns once (`Event queue full; dropping oldest events until the API is reachable`) and the drop is counted in `Analytics:GetStats().dropped`. - The queue lives in memory only. If a server crashes, or Roblox closes it without running `BindToClose`, events still in the queue are lost. At normal rates the queue is nearly empty: it is sent every few seconds. It only fills when the API can't be reached for a long time. ## Batching A loop on the SDK's own thread wakes once a second. It flushes when either: - the **flush interval** has passed since the last flush (default **10** seconds, 2–60), or - the queue holds at least a **full batch** (default **200** events, 10–500). A flush sends batches of up to the maximum batch size, one after another, until the queue is empty or a send fails. Each batch is one `POST /v1/ingest` request (see [send events](https://docs.bloxlytics.app/api/ingest/send-events)). The dashboard's **Flush interval (seconds)** and **Maximum batch size** override the values in your script once the server has loaded its [remote configuration](https://docs.bloxlytics.app/sdk/remote-config). With the defaults, a busy server sends about one request every 10 seconds, plus one configuration fetch every 5 minutes. ## Retries and backoff What happens to a batch depends on the response: | Response | What the SDK does | | --- | --- | | `2xx` | The batch is removed from the queue and the backoff resets. | | No response (network error, HTTP requests not allowed, timeout) | Kept and retried with backoff. | | `429 Too Many Requests` | Kept and retried with backoff. | | `5xx` | Kept and retried with backoff. | | Any other status (`400`, `401`, `413` …) | **Dropped.** Retrying can't help with a bad key or an invalid payload. The SDK warns once per status code: `API rejected a batch (): `. | The backoff starts at 2 seconds and doubles on each consecutive failure (2, 4, 8, 16, 32) up to **60 seconds**, where it stays until a send succeeds. While backing off, no batches are sent; events keep queuing up to the 5,000 limit. A retried batch contains the same events with the same ids. The API remembers event ids for two days and ignores duplicates, so a batch that reached the API but whose response was lost is never counted twice. ## Shutdown flush The SDK binds a `game:BindToClose` handler. When the server closes, it: 1. ends every open session, queuing a `$session_end` for each player still in the server; 2. queues `$server_stop`; 3. ignores any backoff and flushes, retrying once a second, for **up to 20 seconds** or until the queue is empty. Roblox gives all `BindToClose` handlers 30 seconds in total, so the SDK leaves room for your own save code. If you also save player data in `BindToClose`, the two run side by side. ## What the API accepts The API checks each batch in two stages. 1. **The batch.** The key and project id must be valid (otherwise `401`), the body at most 1 MB, and the envelope well formed with 1–500 events (otherwise `400`, and the whole batch is rejected). Each project may make up to 3,000 ingest requests a minute; beyond that the API answers `429` and the SDK backs off. 2. **Each event.** Events are checked one by one, so one bad event doesn't cost the rest of its batch. The response is `202` with the counts, for example `{ "accepted": 198, "rejected": 2 }`. The SDK doesn't read the counts: rejected events are listed in the debugger instead. Events are then checked against your project's settings: tracking switches, currencies, blocked events and the rules for each [reserved event](https://docs.bloxlytics.app/sdk/event-reference). Timestamps more than 30 days old are rejected; timestamps more than 5 minutes in the future are replaced by the time the batch arrived. ## The SDK debugger The **Debugger** panel on the SDK page shows whether events are arriving and why any were rejected. It refreshes every 10 seconds. | Field | Meaning | | --- | --- | | Status | **Receiving batches** when a batch arrived in the last 2 minutes; otherwise **Last batch** with how long ago, or **Waiting for the first batch**. | | **Accepted events** | Events stored. | | **Rejected events** | Events rejected, with the share of all events. | | **Batches received** | Batches the API accepted for processing. | | **Batches rejected** | Batches rejected as a whole. | | **Last batch** | When the latest batch arrived. | | **SDK version** | The `Analytics.Version` of the server that sent it. | | **Last server** | The server key (`JobId`) of that server. | | **First event** | When this project received its first event. | **Recent problems** lists the latest 50 rejection reasons, newest first, kept for 7 days. Select **Clear** to empty it (this needs the **Edit project settings and SDK keys** permission). The reasons you are most likely to see: | Reason | Cause and fix | | --- | --- | | `Unknown currency "Gold" — add it in SDK settings` | Your currency list doesn't include this name. Add it, or fix the name in code. | | `economy tracking disabled` | The **Economy** switch is off. Also `session tracking disabled`, `purchase tracking disabled`, `custom events disabled`. | | `blocked` | The custom event's name is in **Blocked events**. | | `$economy: category Too big: …` | A property is longer than the API allows (here `category`, at most 64 characters). The event name and property are shown first. | | `$funnel requires userId` | A player event was sent without a player. | | `Invalid event name "…"` | Only possible from a modified SDK: the official one checks names before queuing. | | `: timestamp older than 30 days` | The server's clock is wrong, or events were held for a very long time. | | `Rejected batch: …` / `Rejected 2 of 200 events: …` | The batch or some events didn't match the wire format. The path shows where, for example `events.12.props`. | > **Tip:** If **Rejected events** climbs but **Recent problems** is empty, someone may have cleared it. New rejections reappear within a batch or two. ## Checking from the server `Analytics:GetStats()` returns the server's own view: ```luau local stats = Analytics:GetStats() print(stats.queued, stats.dropped, stats.enabled, stats.backoff) ``` | Field | Meaning | | --- | --- | | `queued` | Events waiting to be sent. | | `dropped` | Events dropped because the queue was full. | | `enabled` | Whether the SDK is sending. `false` when the configuration was rejected or in Studio without `TrackInStudio`. | | `backoff` | The current retry delay in seconds; `0` when the last send succeeded. | `Analytics:Flush()` sends the queue immediately, for example before you teleport everyone out of a server. Unlike the tracking calls it **yields** while requests are in flight, so call it from a thread that can wait. It does nothing while another flush is running or during backoff. ```luau local Players = game:GetService("Players") local TeleportService = game:GetService("TeleportService") local Analytics = require(game.ServerScriptService.Analytics) local LOBBY_PLACE_ID = 0 -- your lobby's place id Analytics:TrackEvent("RoundEnded", { Map = "Forest" }) Analytics:Flush() TeleportService:TeleportAsync(LOBBY_PLACE_ID, Players:GetPlayers()) ``` --- # Analytics API reference > Every public function and field of the Analytics module, with parameters, return values, behaviour and an example for each. This is the complete public API of the `Analytics` module, version `1.0.0`. Require it from server code only: ```luau local Analytics = require(game.ServerScriptService.Analytics) ``` Unless a function says otherwise: - it returns nothing and **never yields**: it validates its arguments and adds an event to the queue; - an invalid argument drops the call, usually with a warning printed once per server per distinct problem (prefixed `[Bloxlytics]`); - before `Start`, after a failed `Start`, or in Studio without `TrackInStudio`, it does nothing. Every function is called with a colon (`Analytics:TrackEvent(…)`). | Function | Section | | --- | --- | | `Start`, `Init`, `Flush`, `GetStats` | [Lifecycle](#lifecycle) | | `SetServerTag` | [Server tags](#server-tags) | | `TrackEvent`, `TrackFunnel`, `TrackProgression` | [Events](#events) | | `TrackCurrencyEarned`, `TrackCurrencySpent`, `TrackBalance`, `TrackCurrencyTransfer` | [Economy](#economy) | | `WrapProcessReceipt`, `SetProductNames` | [Purchases](#purchases) | | `SetPlayerProperty`, `SetPlayerProperties`, `SetPlayerRole` | [Player properties](#player-properties) | | `GetVariant` | [Experiments](#experiments) | | `Version`, `ServerKey` | [Fields](#fields) | ## Lifecycle ### Start ```luau Analytics:Start(config: Config): boolean ``` Starts analytics and, when `config.Cmdr` is set, the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge). Call it once, from a server Script, as early as possible. - `config` (table, body, required): The configuration. `WriteKey` and `ApiUrl` are required; every field is listed on [configuration](https://docs.bloxlytics.app/sdk/configuration#all-fields). - `returns` (boolean): `true` when analytics started (including in Studio, where it then stays idle without `TrackInStudio`). `false` when the configuration was rejected, `Start` or `Init` was already called, or it isn't running on the server. Bridge problems never change the result. Behaviour: 1. Runs [`Init`](#init) with the same table. 2. If `config.Cmdr` is set, finds a ModuleScript named `CmdrBridge` inside the `Analytics` module or next to it, and calls `CmdrBridge:Init` with `Cmdr`, `BridgeKey`, `ApiUrl`, `ProjectID`, `AllowedGroups`, `AllowKick`, `OnWarn`, `OnAnnounce`, `AllowSystemCommands`, `Debug`, `EnableInStudio = (EnableBridgeInStudio ~= false)` and `Analytics` itself. This happens whether or not analytics started, so the bridge can run even when analytics is off. 3. In Studio, prints this session's server key: `[Bloxlytics] Studio session. Target this server from the website with server "studio-…".` Bridge warnings, each of which leaves analytics unaffected: - `Cmdr was passed but the CmdrBridge module wasn't found next to or inside Analytics; remote commands are off` - `Cmdr was passed without BridgeKey; remote commands are off` - `Cmdr bridge didn't start: `, plus the bridge's own `[Bloxlytics bridge] Not started: …` warnings. ```luau local HttpService = game:GetService("HttpService") local Analytics = require(game.ServerScriptService.Analytics) local started = Analytics:Start({ WriteKey = HttpService:GetSecret("bloxlytics_write_key"), ApiUrl = "https://api.bloxlytics.app", }) if not started then -- The warning in the output says why. The game carries on either way. end ``` ### Init ```luau Analytics:Init(config: Config): boolean ``` Starts analytics only. Bridge fields in `config` are ignored. Prefer [`Start`](#start); use `Init` if you start `CmdrBridge` yourself. - `config` (table, body, required): The same table as `Start`. - `returns` (boolean): `true` when the configuration is usable, `false` otherwise. Behaviour: - Refuses to run on a client (`The SDK only runs on the server; require it from a server Script`) and refuses a second call (`Init/Start called twice; ignoring the second call`). - Checks the configuration (see [validation order](https://docs.bloxlytics.app/sdk/configuration#validation-order)). On a problem: `Not started: . Your game keeps running without analytics.` - Removes trailing slashes from `config.ApiUrl` and replaces `config.ProjectID` with the resolved Universe ID, in the table you passed. - In Studio without `TrackInStudio`, returns `true` here without starting anything. - Otherwise: applies `FlushInterval` (clamped 2–60) and `MaxBatchSize` (clamped 10–500); on a new thread fetches remote configuration, queues `$server_start` and starts sessions for players already in the server; connects `PlayerAdded` and `PlayerRemoving` (unless `AutoTrackSessions = false`), `PromptGamePassPurchaseFinished` (unless `AutoTrackGamePasses = false`) and `PromptProductPurchaseFinished`; starts the once-a-second loop for heartbeats, configuration refreshes and flushes; and binds the shutdown flush with `game:BindToClose`. ```luau local Analytics = require(game.ServerScriptService.Analytics) Analytics:Init({ WriteKey = "bxw_…", ApiUrl = "https://api.bloxlytics.app", }) ``` ### Flush ```luau Analytics:Flush() ``` Sends queued events now instead of waiting for the next flush interval. **Yields** while requests are in flight. It sends batches until the queue is empty or a send fails. It returns immediately if a flush is already running, the SDK isn't enabled, or the SDK is backing off after a failure. You rarely need it: the SDK flushes every few seconds and on shutdown. It is useful just before you teleport every player out of a server. See [delivery](https://docs.bloxlytics.app/sdk/delivery). ```luau Analytics:TrackEvent("RoundEnded", { Map = "Forest" }) task.spawn(function() Analytics:Flush() end) ``` ### GetStats ```luau Analytics:GetStats(): { queued: number, dropped: number, enabled: boolean, backoff: number } ``` Returns a snapshot of the SDK's state on this server. Works at any time, including before `Start`. - `queued` (number): Events waiting to be sent. - `dropped` (number): Events dropped since start-up because the queue reached 5,000. - `enabled` (boolean): Whether the SDK is queuing and sending events. - `backoff` (number): The current retry delay in seconds (2 to 60), or `0` when the last send succeeded. ```luau local stats = Analytics:GetStats() if stats.dropped > 0 then warn(`Bloxlytics dropped {stats.dropped} events; {stats.queued} still queued`) end ``` ## Server tags ### SetServerTag ```luau Analytics:SetServerTag(name: string, value: any?) ``` Sets a short fact about this server, such as the map, mode or region. Tags appear on the server's card in Bloxlytics and can be searched in server pickers. **Works before `Start`**, so you can tag a server before its first event. - `name` (string, body, required): Starts with a letter; then letters, digits, spaces and `_` `.` `-`; at most 32 characters. Otherwise dropped with `SetServerTag: invalid tag name (letters, digits, space . _ -, max 32)`. - `value` (any, body): Converted with `tostring` and cut to 64 characters. `nil` removes the tag. A server can have at most 16 tags. Adding a 17th is dropped with `SetServerTag: at most 16 tags per server`; changing an existing tag is always allowed. Tags are sent with `$server_start`, every heartbeat (so changes appear within about 30 seconds) and every Cmdr bridge poll. ```luau Analytics:SetServerTag("map", "Forest") Analytics:SetServerTag("round", 3) -- sent as "3" Analytics:SetServerTag("round", nil) -- removed ``` ## Events ### TrackEvent ```luau Analytics:TrackEvent(player: Player?, name: string, properties: { [string]: any }?) Analytics:TrackEvent(name: string, properties: { [string]: any }?, player: Player?) ``` Tracks a custom event. If the first argument is a `Player`, the arguments are `(player, name, properties)`; otherwise `(name, properties, player)`. - `player` (Player, body): The player the event is about. Leave it out for server-level events. Anything other than a `Player` drops the call: `TrackEvent(): player must be a Player`. - `name` (string, body, required): Starts with a letter; then letters, digits, spaces and `_` `.` `:` `-`; at most 64 characters. Otherwise: `TrackEvent: invalid event name `. - `properties` (table, body): Up to 32 properties. Keys start with a letter or `_`, then letters, digits, spaces and `_` `.` `-`, at most 40 characters. Values: strings (cut to 256 characters), finite numbers, booleans; `EnumItem` and `Instance` values are converted with `tostring`. Other values are dropped with a warning. Full rules on [custom events](https://docs.bloxlytics.app/sdk/custom-events#properties). Dropped without a warning when **Custom events** is off or the name is in **Blocked events** in the dashboard. ```luau Analytics:TrackEvent(player, "PetHatched", { PetName = "Dragon", Rarity = "Legendary", Island = 3 }) Analytics:TrackEvent("BossSpawned", { Boss = "Kraken" }) ``` ### TrackFunnel ```luau Analytics:TrackFunnel(player: Player, funnel: string, step: string, index: number?) Analytics:TrackFunnel(funnel: string, step: string, player: Player, index: number?) ``` Records a funnel step as a `$funnel` event. - `player` (Player, body, required): Funnels are per player. Without one: `TrackFunnel(): pass the player so the step can be attributed`. - `funnel` (string, body, required): Non-empty; cut to 64 characters. - `step` (string, body, required): Non-empty; cut to 64 characters. An empty funnel or step: `TrackFunnel: funnel and step must be non-empty strings`. - `index` (number, body): Optional step number, rounded down, that orders steps in the funnel builder. Must not be negative. ```luau Analytics:TrackFunnel(player, "Tutorial", "Started", 0) Analytics:TrackFunnel("Tutorial", "Completed", player, 3) ``` ### TrackProgression ```luau Analytics:TrackProgression(player: Player, status: "start" | "complete" | "fail", path: string, score: number?) ``` Records a `$progression` event. - `player` (Player, body, required): The player. - `status` (string, body, required): `"start"`, `"complete"` or `"fail"`. - `path` (string, body, required): What was attempted, such as `"World1:Level3"`. Cut to 128 characters. - `score` (number, body): Optional, finite. Invalid arguments: `TrackProgression(player, 'start'|'complete'|'fail', path, score?)`. ```luau Analytics:TrackProgression(player, "complete", "World1:Level3", 870) ``` ## Economy All four functions send economy events, are dropped when **Economy** is off in the dashboard, and require `currency` to be a non-empty string (`Economy: currency must be a non-empty string`). If the dashboard defines currencies and this one isn't among them (ignoring case), the event is still sent but the SDK warns once: `Currency "" isn't configured in Bloxlytics → SDK settings; events will be rejected`. A missing player or an invalid amount is dropped **without** a warning. See [economy](https://docs.bloxlytics.app/sdk/economy). ### TrackCurrencyEarned ```luau Analytics:TrackCurrencyEarned(player: Player, currency: string, amount: number, source: string?, item: string?, balance: number?) ``` Records a currency source: a `$economy` event with `flow = "source"`. - `player` (Player, body, required): The player who received the currency. - `currency` (string, body, required): Currency key, at most 32 characters. - `amount` (number, body, required): Greater than 0 and finite. - `source` (string, body): Category, such as `"Quests"`. At most 64 characters (not shortened by the SDK; longer values are rejected by the API). - `item` (string, body): What earned it. At most 64 characters. - `balance` (number, body): The balance after the change. Finite. ```luau Analytics:TrackCurrencyEarned(player, "Coins", 150, "Quests", nil, newBalance) ``` ### TrackCurrencySpent ```luau Analytics:TrackCurrencySpent(player: Player, currency: string, amount: number, sink: string?, item: string?, balance: number?) ``` Records a currency sink: a `$economy` event with `flow = "sink"`. Parameters are the same as `TrackCurrencyEarned`, with `sink` in place of `source`. `amount` is positive. ```luau Analytics:TrackCurrencySpent(player, "Coins", 500, "Eggs", "GoldenEgg", newBalance) ``` ### TrackBalance ```luau Analytics:TrackBalance(player: Player, currency: string, balance: number) ``` Records a `$balance` snapshot without a change. - `player` (Player, body, required): The player. - `currency` (string, body, required): Currency key. - `balance` (number, body, required): The current balance. Finite; zero and negative values are allowed. ```luau Analytics:TrackBalance(player, "Gems", gems) ``` ### TrackCurrencyTransfer ```luau Analytics:TrackCurrencyTransfer(from: Player, to: Player | number, currency: string, amount: number, reason: string?) ``` Records currency moving between players, as a `$economy_transfer` event belonging to `from`. - `from` (Player, body, required): The sender. - `to` (Player | number, body, required): The receiver, as a `Player` or a positive user id. - `currency` (string, body, required): Currency key. - `amount` (number, body, required): Greater than 0 and finite. - `reason` (string, body): Such as `"Trade"` or `"Gift"`. At most 64 characters. ```luau Analytics:TrackCurrencyTransfer(player, otherPlayer, "Coins", 100, "Trade") ``` ## Purchases Purchase tracking is dropped when **Purchases** is off in the dashboard. Game pass prompts and developer product prompt attempts are tracked automatically; see [purchases](https://docs.bloxlytics.app/sdk/purchases). ### WrapProcessReceipt ```luau Analytics:WrapProcessReceipt(handler: (receipt) -> Enum.ProductPurchaseDecision): (receipt) -> Enum.ProductPurchaseDecision ``` Wraps your `ProcessReceipt` handler so granted developer product purchases are recorded. - `handler` (function, body, required): Your existing handler. Anything else raises `WrapProcessReceipt expects your ProcessReceipt function`. This is the only SDK function that can raise an error. - `returns` (function): A function to assign to `MarketplaceService.ProcessReceipt`. It calls your handler, and when the decision is `PurchaseGranted` and the player is in the server, queues a completed `$purchase` with `productId = receipt.ProductId`, `robux = receipt.CurrencySpent` and `receiptId = receipt.PurchaseId`. It returns your handler's decision unchanged. Recording runs inside `pcall`; errors from your handler are not caught. The first receipt for each product **may yield** while the product's name is looked up with `GetProductInfo`, unless you named it with `SetProductNames`. ```luau local MarketplaceService = game:GetService("MarketplaceService") MarketplaceService.ProcessReceipt = Analytics:WrapProcessReceipt(function(receipt) -- grant the product here return Enum.ProductPurchaseDecision.PurchaseGranted end) ``` ### SetProductNames ```luau Analytics:SetProductNames(names: { [number]: string }) ``` Gives developer products names to use instead of looking them up with `MarketplaceService:GetProductInfo`. Works before `Start`. - `names` ({ [number]: string }, body, required): Developer product id to name. Adds to or replaces names from earlier calls. Applies to developer products only, not game passes. A product already looked up on this server keeps its cached name, so call it at start-up. Prompt attempts for a named product carry no `robux` price. ```luau Analytics:SetProductNames({ [1001] = "500 Gems", [1002] = "2,500 Gems" }) ``` ## Player properties Player properties describe a player: level, rebirths, island, VIP, player type, role. Each one is sent as its own `$property` event and shown on the player's profile in [Players](https://docs.bloxlytics.app/analytics/players); they can be used in [segments](https://docs.bloxlytics.app/analytics/segments) and drive [player banners](https://docs.bloxlytics.app/sdk/remote-config#player-banners). They aren't affected by any tracking switch. ### SetPlayerProperty ```luau Analytics:SetPlayerProperty(player: Player, key: string, value: string | number | boolean) ``` - `player` (Player, body, required): The player. - `key` (string, body, required): Starts with a letter or `_`; then letters, digits, spaces and `_` `.` `-`; at most 40 characters. An invalid key (or a missing player) is dropped with `SetPlayerProperty: invalid key `. - `value` (string | number | boolean, body, required): Strings are cut to 256 characters; numbers must be finite. Any other type: `SetPlayerProperty(): value must be a string, number or boolean`. ```luau Analytics:SetPlayerProperty(player, "Level", 12) ``` ### SetPlayerProperties ```luau Analytics:SetPlayerProperties(player: Player, properties: { [string]: string | number | boolean }) ``` Calls `SetPlayerProperty` for each entry, so each property is validated and sent as its own event. There is no 32-property limit here. - `player` (Player, body, required): The player. - `properties` (table, body, required): Key to value, with the same rules as `SetPlayerProperty`. ```luau Analytics:SetPlayerProperties(player, { Level = 12, Rebirths = 2, Island = "Volcano", VIP = true, PlayerType = "Grinder", }) ``` ### SetPlayerRole ```luau Analytics:SetPlayerRole(player: Player, role: string) ``` Reports a verified in-game role. Same as `SetPlayerProperty(player, "Role", role)`. Combine it with a banner rule such as **Role** equals `Moderator` to show staff in Bloxlytics. - `player` (Player, body, required): The player. - `role` (string, body, required): The role, such as `"Moderator"`. Cut to 256 characters. ```luau if isModerator(player) then Analytics:SetPlayerRole(player, "Moderator") end ``` ## Experiments ### GetVariant ```luau Analytics:GetVariant(player: Player, experimentKey: string): (string?, { [string]: any }?) ``` Returns the player's variant of a running experiment, using the same deterministic assignment as Bloxlytics. Logs a `$experiment_exposure` the first time in each session. Doesn't yield. See [experiments](https://docs.bloxlytics.app/sdk/experiments). - `player` (Player, body, required): The player. Anything else returns `nil, nil`. - `experimentKey` (string, body, required): The experiment's key from the dashboard. - `variant` (string?): The variant key, or `nil` when the experiment isn't running on this server, the player is outside the allocation, or remote configuration hasn't loaded. - `config` (table?): The variant's config from the dashboard, or `nil` with `variant`. ```luau local variant, config = Analytics:GetVariant(player, "starting-coins") if variant and config then coins = config.StartingCoins end ``` ## Fields - `Analytics.Version` (string): The module's version, `"1.0.0"`. Sent with every batch and shown as **SDK version** in the debugger. - `Analytics.ServerKey` (string): This server's id in Bloxlytics: `game.JobId` in a live server, or `studio-` followed by 8 random hex characters in Studio. Set when the module is first required; the Cmdr bridge uses the same value. ```luau print("This server in Bloxlytics:", Analytics.ServerKey) ``` ## Internal members The module also has members whose names start with `_`: `_getServerTags`, `_setBridgeActive`, `_trackPrompt` and `_fnv1a`. They exist so the Cmdr bridge and the SDK's own handlers can talk to each other. Don't call them: they skip validation and may change in any version. ## Types ```luau type Config = { ProjectID: (string | number)?, WriteKey: any, -- string or Secret ApiUrl: string, Cmdr: any?, BridgeKey: any?, -- string or Secret AllowSystemCommands: boolean?, AllowedGroups: { string }?, AllowKick: boolean?, OnWarn: ((Player, string) -> ())?, OnAnnounce: ((string) -> ())?, EnableBridgeInStudio: boolean?, FlushInterval: number?, MaxBatchSize: number?, TrackInStudio: boolean?, AutoTrackSessions: boolean?, AutoTrackGamePasses: boolean?, Debug: boolean?, } ``` --- # 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`](https://docs.bloxlytics.app/sdk/custom-events). This page lists every reserved event and the rules every event must meet. The wire format itself is on [event format](https://docs.bloxlytics.app/api/ingest/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 ` 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 `. 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`](https://docs.bloxlytics.app/sdk/reference#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--` 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::`. ### $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 ""`. 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](https://docs.bloxlytics.app/sdk/delivery#what-the-api-accepts). --- # Cmdr bridge > Let permitted team members run your game's registered Cmdr commands, macros, kicks and warnings from Bloxlytics, and install the CmdrBridge module. The Cmdr bridge connects your live game servers to Bloxlytics so that team members with permission can run your game's [Cmdr](https://eryn.io/Cmdr/) commands from the dashboard: one at a time on [Commands](https://docs.bloxlytics.app/operations/commands), as saved sequences with [Macros](https://docs.bloxlytics.app/operations/macros), and as kicks and warnings from [Moderation](https://docs.bloxlytics.app/operations/moderation) and [Player lookup](https://docs.bloxlytics.app/operations/player-lookup). It is a separate, optional ModuleScript, `CmdrBridge`, with its own key (the **Bridge key**, `bxb_…`). You can use analytics without the bridge, and the bridge without sending analytics. ## What it can run The bridge runs exactly four kinds of command, and nothing else: | Kind | What runs | Enabled by | | --- | --- | --- | | `cmdr` | A command line for one of **your registered Cmdr commands**, parsed, validated and run by Cmdr's own dispatcher with your BeforeRun hooks. | `Cmdr` | | `kick` | `Player:Kick(message)` on a player in this server. | On unless `AllowKick = false` | | `warn` | Your `OnWarn(player, message)` function. | `OnWarn` | | `announce` | Your `OnAnnounce(message)` function. | `OnAnnounce` | > **No code from the website:** The bridge never evaluates source code. It can only run commands that your game has registered with Cmdr, only through Cmdr, and only after Cmdr has checked their arguments and your BeforeRun hooks have allowed them. If a command isn't registered in your game, nobody can run it from Bloxlytics. See [security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security). ## How it connects Roblox game servers can't accept incoming connections, so the bridge connects **out** to Bloxlytics over HTTPS: 1. A few seconds after start-up, the server **registers**: it sends its Cmdr command catalogue and what it supports. 2. It **long-polls**: each request waits up to 20 seconds for commands addressed to this server (or to any server), and reports the players in it. 3. It **runs** each command it receives and **reports the result** once. 4. When the server shuts down it says **goodbye**, and Bloxlytics removes it from the live list. Commands expire 60 seconds after they are sent, so a command never runs long after you asked for it. The full lifecycle is on the [bridge reference](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference#lifecycle), and the wire protocol on [hello](https://docs.bloxlytics.app/api/bridge/hello), [poll](https://docs.bloxlytics.app/api/bridge/poll), [result](https://docs.bloxlytics.app/api/bridge/result) and [bye](https://docs.bloxlytics.app/api/bridge/bye). ## Install You need Cmdr already set up on the server, with your commands registered, and the [analytics module installed](https://docs.bloxlytics.app/sdk/installation). **1. Add the module** On **Bloxlytics → your project → SDK**, download **CmdrBridge.luau**. In Studio, insert a ModuleScript named `CmdrBridge` **inside** the `Analytics` ModuleScript (or next to it in ServerScriptService) and paste the file's contents. **2. Store the bridge key** Add an experience secret named `bloxlytics_bridge_key` with the **Bridge key** from the SDK page's **Keys**, restricted to `api.bloxlytics.app`, as for the [write key](https://docs.bloxlytics.app/sdk/configuration#keys-and-secrets). A string key must start with `bxb_`; the write key won't work here. **3. Pass Cmdr to Start** Add `Cmdr` and `BridgeKey` to your existing `Start` call. `Analytics:Start` finds the `CmdrBridge` module and starts it for you. ```luau ServerScriptService/BloxlyticsBoot.server.luau local HttpService = game:GetService("HttpService") local Cmdr = require(game.ServerScriptService.Cmdr) -- your server Cmdr module local Analytics = require(game.ServerScriptService.Analytics) Cmdr:RegisterDefaultCommands() Cmdr:RegisterCommandsIn(game.ServerScriptService.CmdrCommands) Analytics:Start({ WriteKey = HttpService:GetSecret("bloxlytics_write_key"), ApiUrl = "https://api.bloxlytics.app", Cmdr = Cmdr, BridgeKey = HttpService:GetSecret("bloxlytics_bridge_key"), AllowedGroups = { "Admin", "DefaultAdmin" }, -- Cmdr groups Bloxlytics may run -- AllowSystemCommands = false, -- only run as the sender's own player in the server OnWarn = function(player, message) -- show the warning with your own UI end, }) ``` **4. Allow platform commands in your BeforeRun hook** Commands sent by a team member who is **in the server** run as their player, so your existing BeforeRun hooks judge them exactly as if they had typed the command. Anything else runs in the **system context**, with no executor. Allow it in your hook, or refuse it everywhere with `AllowSystemCommands = false`: ```luau ServerScriptService/CmdrHooks.server.luau local Cmdr = require(game.ServerScriptService.Cmdr) local CmdrBridge = require(game.ServerScriptService.Analytics.CmdrBridge) Cmdr.Registry:RegisterHook("BeforeRun", function(context) if CmdrBridge.IsPlatformContext(context) then return nil -- Bloxlytics already checked the sender's role and permissions end -- … your existing in-game permission checks … return nil end) ``` Cmdr itself refuses commands in live games when no BeforeRun hook is registered, and the bridge runs Cmdr's hooks, so without a hook nothing runs from Bloxlytics either. See [who a command runs as](https://docs.bloxlytics.app/sdk/cmdr-bridge/security#who-a-command-runs-as). **5. Publish and check** Publish and join a live server. Open [Commands](https://docs.bloxlytics.app/operations/commands) in Bloxlytics: your registered commands appear and the server appears in the server picker. Commands outside `AllowedGroups` are listed but refused before they are sent. Run a harmless command, such as one that replies with text, to check the round trip. > **Done:** Team members with the **Execute Cmdr commands** permission can now run your commands from Bloxlytics. Every command, its sender, its server and its result are recorded in the command history and the [audit log](https://docs.bloxlytics.app/workspaces/audit-log). ### Register commands first The bridge waits 3 seconds after start-up before sending its catalogue, so commands registered in the same frame as `Start`, or just after, are included. Commands registered later show up when the bridge re-registers, every 5 minutes. Bloxlytics lists commands any server has reported in the last 24 hours. ### Starting the bridge on its own If you start analytics with `Init`, or don't use the analytics module, start the bridge yourself with [`CmdrBridge:Init`](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference#init). Pass `Analytics` so both modules use the same server id and heartbeats report the bridge. ```luau local HttpService = game:GetService("HttpService") local Cmdr = require(game.ServerScriptService.Cmdr) local Analytics = require(game.ServerScriptService.Analytics) local CmdrBridge = require(game.ServerScriptService.Analytics.CmdrBridge) CmdrBridge:Init({ Cmdr = Cmdr, Analytics = Analytics, BridgeKey = HttpService:GetSecret("bloxlytics_bridge_key"), ApiUrl = "https://api.bloxlytics.app", AllowedGroups = { "Admin" }, }) ``` ## Studio The bridge **runs in Studio by default**, so you can try commands before publishing; analytics doesn't, unless you set `TrackInStudio`. Studio has no `JobId`, so each Studio session gets its own server key, printed in the output: ```text [Bloxlytics] Studio session. Target this server from the website with server "studio-1a2b3c4d". [Bloxlytics bridge] Listening for commands as Studio server "studio-1a2b3c4d". Pick it in Bloxlytics to target this session. ``` Pick that server in Bloxlytics to send it commands. Studio sessions are marked as Studio and are **never chosen automatically**: a command for "any server" goes to a live server, and if only Studio sessions are online, Bloxlytics asks you to choose one explicitly. To keep the bridge off in Studio, set `EnableBridgeInStudio = false` in `Start` (or `EnableInStudio = false` in `CmdrBridge:Init`). Unpublished places need `ProjectID`, as for analytics. ## Turning it off - **For the whole project:** turn off **Cmdr bridge** in the SDK page's **Configuration**. Bloxlytics refuses new commands at once. Servers that start while it is off don't poll at all. See [remote configuration](https://docs.bloxlytics.app/sdk/remote-config#cmdr-bridge). - **For one game:** remove `Cmdr` from `Start`, or remove the `CmdrBridge` module. - **Immediately, everywhere:** rotate the **Bridge key** on the SDK page. Every running server loses the bridge until it is restarted with the new key. ## Troubleshooting **The output says the CmdrBridge module wasn't found** `Analytics:Start` looks for a ModuleScript named exactly `CmdrBridge` inside `Analytics` or in the same parent as `Analytics`. Move or rename it. **Registration failed** The bridge warns `[Bloxlytics bridge] registration failed (): ` and tries again after 5 seconds, doubling the wait up to 2 minutes. `401` means the bridge key or project id is wrong. `0` means the request never left the server: check **Allow HTTP Requests**. If the message is `tags: Invalid input: expected record, received array`, this server has no server tags: in SDK `1.0.0`, Roblox encodes an empty tag table as an array, which the API refuses. Set at least one tag with [`Analytics:SetServerTag`](https://docs.bloxlytics.app/sdk/reference#setservertag) before `Start`, and make sure the bridge was started with the analytics module (through `Start`, or with `Analytics` passed to `CmdrBridge:Init`), since that is where its tags come from. **Commands are listed but every run is rejected** Read the error on the execution. `Rejected by BeforeRun hook: …` comes from your hook; allow platform contexts with `IsPlatformContext`. `The group isn't allowed from Bloxlytics (AllowedGroups).` means the command's Cmdr group isn't in `AllowedGroups`. `This game only runs Bloxlytics commands as a team member who is in the server` means `AllowSystemCommands = false` and you aren't in that server. **No server shows up in the picker** The server must have registered and be polling. With `Debug = true` the bridge prints `[Bloxlytics bridge] registered commands` on success, and `(bridge disabled in project settings)` if the project's **Cmdr bridge** switch was off when it started; that server won't poll until it restarts. ## Where next - [Security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security): Who a command runs as, permission layers and replay protection. - [Bridge reference](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference): Every configuration field, function and lifecycle step. --- # Cmdr bridge security > Who a command runs as, how your hooks and allow-lists apply, how requests and commands are protected against replay, and what Bloxlytics can never do in your game. The Cmdr bridge lets people outside your game cause things to happen inside it, so it is built so that **your game stays in charge**. Every command passes Bloxlytics' own permission checks, then your game's configuration, then Cmdr's validation and your own BeforeRun hooks. This page explains each layer. For Bloxlytics as a whole, see [security and privacy](https://docs.bloxlytics.app/security). ## Who a command runs as Everyone signs in to Bloxlytics with their Roblox account, so Bloxlytics knows each team member's verified Roblox user id. That decides how a Cmdr command runs. ### As the sender's player If the sender's Roblox account is **in the server** the command goes to, the bridge runs it with that `Player` as Cmdr's executor. Your BeforeRun hooks see `context.Executor` as their `Player`, and your in-game permissions apply exactly as if they had typed the command into Cmdr themselves. A team member who can't run `ban` in game can't run it from Bloxlytics either, and you don't need to change any hooks. Replies are returned to Bloxlytics and also shown in that player's own Cmdr window. When you don't pick a server or a target player, Bloxlytics sends the command to the server you are playing in, so that it runs as you. ### In the system context Otherwise the command runs with **no executor** (`context.Executor` is `nil`), as a command from the platform. Your hook can recognise it with [`CmdrBridge.IsPlatformContext`](https://docs.bloxlytics.app/sdk/cmdr-bridge/reference#isplatformcontext) and read who sent it from `context.Data.Bloxlytics`: | Field | Value | | --- | --- | | `Id` | The sender's Bloxlytics user id. | | `Name` | The sender's name in Bloxlytics. | | `Role` | Their role in the workspace: `owner`, `admin`, `developer`, `analyst` or `viewer`. | | `ExecutionId` | The id of this execution in the command history. | `context.Data.Bloxlytics` is set in the player context too, so a hook can tell that a command came through Bloxlytics either way; `IsPlatformContext` is only `true` for the system context. In the system context, `context:SendEvent` does nothing, because there is no player to send to. Commands that assume `context.Executor` is a player should handle `nil`, or be refused in the system context by your hook. ### Refusing the system context Set `AllowSystemCommands = false` to allow **only** the player context. Bloxlytics then won't send a command to that server unless the sender is in it, and the bridge refuses any that arrive anyway with `This game only runs Bloxlytics commands as a team member who is in the server (AllowSystemCommands = false).` Servers with this setting are also skipped when Bloxlytics picks "any server". Every result records which context was used, `player` or `system`, in the command history. ## Hooks For a Cmdr command, the bridge does this, in order, and stops at the first failure: 1. Looks up the first word of the command line with `Cmdr.Registry:GetCommand`. Unknown: `"" is not a registered command.` 2. Checks the command's group against `AllowedGroups`. 3. Finds the executor (the sender's `Player`, if in the server) and applies `AllowSystemCommands`. 4. Parses the line with `Cmdr.Dispatcher:Evaluate`, passing the executor and `context.Data`. 5. Validates the arguments with Cmdr (`context:Validate`): types, required arguments, player names. 6. Runs your **BeforeRun** hooks with `Cmdr.Dispatcher:RunHooks("BeforeRun", context)`. Any hook returning a value rejects the command: `Rejected by BeforeRun hook: `. 7. Runs the command and returns its replies and return value. Cmdr refuses every command in a live game when no BeforeRun hook is registered, and because the bridge runs Cmdr's hooks, that applies to Bloxlytics too. The bridge runs BeforeRun hooks only; it doesn't call AfterRun hooks. A hook that allows platform commands only for certain Bloxlytics roles: ```luau ServerScriptService/CmdrHooks.server.luau local Cmdr = require(game.ServerScriptService.Cmdr) local CmdrBridge = require(game.ServerScriptService.Analytics.CmdrBridge) local PLATFORM_ROLES = { owner = true, admin = true } Cmdr.Registry:RegisterHook("BeforeRun", function(context) if CmdrBridge.IsPlatformContext(context) then local sender = context.Data.Bloxlytics if not PLATFORM_ROLES[sender.Role] then return `{sender.Name} ({sender.Role}) can't run commands without being in the server.` end return nil end -- Your normal in-game check. Platform commands sent by a team member -- who is in the server also reach this point, as their own player. if context.Group == "Admin" and not isAdmin(context.Executor) then return "You don't have permission to run this command." end return nil end) ``` `isAdmin` stands for your own permission check. ## Permission layers A Cmdr command from Bloxlytics must pass every one of these: | Layer | Where | What it checks | | --- | --- | --- | | Role permission | Bloxlytics | **Execute Cmdr commands** for commands, **Run macros** for macros. By default owners, admins and developers have them; see [roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). | | **Cmdr groups per role** | Bloxlytics | If set for the sender's role in the SDK configuration, the command's Cmdr group must be in the list. | | Registered command | Bloxlytics | The command must have been reported by one of your servers in the last 24 hours, with the right number of arguments. | | **Cmdr bridge** switch | Bloxlytics | Must be on in the SDK configuration. | | `AllowedGroups` | Your game | The command's Cmdr group must be in the list, if you set one. | | `AllowSystemCommands` | Your game | With `false`, the sender must be in the server. | | Cmdr validation | Your game | Argument types and values, checked by Cmdr. | | BeforeRun hooks | Your game | Your own rules, with the sender as executor or the system context. | Kicks and warnings are not Cmdr commands and don't pass through Cmdr or your hooks. They need the **Kick, warn, ban and unban players** permission in Bloxlytics, the target player must be in a server running the bridge, and your game must allow them: kicks unless `AllowKick = false`, warnings only if you pass `OnWarn`. `AllowedGroups` and `AllowSystemCommands` don't apply to them. Announcements run only through your `OnAnnounce` function. ## Group allow-lists `AllowedGroups` is the in-game list of Cmdr groups Bloxlytics may run: ```luau AllowedGroups = { "Admin", "DefaultAdmin" }, ``` - Matching is exact and case-sensitive against each command's `Group`. - When set, commands with **no group** are refused too. - When left out (`nil`), every group is allowed, and your hooks are the only in-game check. The bridge reports each command with an `allowed` flag, so Bloxlytics refuses commands outside the list before they are sent, and the bridge checks again when they arrive: `The group isn't allowed from Bloxlytics (AllowedGroups).` Use the dashboard's **Cmdr groups per role** for finer control per Bloxlytics role, and `AllowedGroups` as the hard limit your game enforces whatever the dashboard says. ## Replay protection ### Requests Every request the bridge makes carries: | Header | Value | | --- | --- | | `Authorization` | `Bearer` and the bridge key. | | `X-Bloxlytics-Project` | The Universe ID. | | `X-Bloxlytics-Timestamp` | The server's `os.time()`. | | `X-Bloxlytics-Nonce` | A new GUID for every request. | The API rejects, with `401`, a request whose timestamp is more than **120 seconds** from its own clock (`stale_request`), whose nonce is missing or malformed (`bad_nonce`), or whose nonce has been used before (`replayed`). A captured request can't be sent again. See [authentication](https://docs.bloxlytics.app/api/authentication). ### Commands - Each command has a unique id and expires **60 seconds** after it was sent. Bloxlytics never hands out an expired command; it is marked as timed out instead. - The bridge refuses a command whose expiry has passed by its own clock (`Command expired before it reached the server.`) and any id it has already run in the last 10 minutes (`Duplicate command ignored.`). - A result is accepted only from the server the command was dispatched to, and only once. A second result for the same command is ignored. - If no result arrives within 75 seconds, Bloxlytics marks the command as timed out. ## What Bloxlytics can never do The bridge is built so that, even acting through it, Bloxlytics can't: - **Run code.** There is no way to send Luau to the bridge. It never calls `loadstring` or evaluates source. - **Run a command you didn't register.** Only commands in your Cmdr registry exist. - **Skip your checks.** Every Cmdr command goes through Cmdr's argument validation and your BeforeRun hooks, and through `AllowedGroups` and `AllowSystemCommands`. - **Act as a player who isn't there.** The player context needs that player to be in the server; otherwise the command has no executor. - **Connect to your servers.** All traffic is outgoing HTTPS from your servers. Without the bridge installed, Bloxlytics can't reach a server at all. - **Kick or warn without your permission.** Kicks stop with `AllowKick = false`; warnings and announcements only exist if you provide `OnWarn` and `OnAnnounce`. The write key can't receive commands at all; it can only submit events and read the SDK's configuration. > **Note:** The player context relies on Bloxlytics naming the right player: the bridge runs a command as whichever player in the server the command names, and Bloxlytics only ever names the sender's own verified Roblox account. If you'd rather your game didn't extend that trust, check `context.Data.Bloxlytics` in your hook for every command that has it, not only in the system context, for example by requiring an `owner` or `admin` role for dangerous commands. ### If a key leaks Rotate it on the SDK page. Someone holding your bridge key could pretend to be one of your servers: register a fake command list, receive commands that would have gone to that server and report false results. They still couldn't run anything in your real servers. Rotating the key stops the old one at once; your servers need restarting with the new one. To report a security problem, see [reporting issues](https://docs.bloxlytics.app/security#reporting-issues). --- # CmdrBridge reference > Every configuration field and public function of the CmdrBridge module, its lifecycle from registration to shutdown, and every result it can report. This is the complete public API of the `CmdrBridge` module, version `1.0.0`. Most games never call it directly: `Analytics:Start` starts the bridge when you pass `Cmdr` (see [the overview](https://docs.bloxlytics.app/sdk/cmdr-bridge)). The wire protocol is documented in the API reference under [hello](https://docs.bloxlytics.app/api/bridge/hello), [poll](https://docs.bloxlytics.app/api/bridge/poll), [result](https://docs.bloxlytics.app/api/bridge/result) and [bye](https://docs.bloxlytics.app/api/bridge/bye). ```luau local CmdrBridge = require(game.ServerScriptService.Analytics.CmdrBridge) ``` ## Configuration `CmdrBridge:Init` takes one table. When you use `Analytics:Start`, it builds this table from your `Start` configuration, as shown in the last column. | Field | Type | Default | Meaning | From `Start` | | --- | --- | --- | --- | --- | | `Cmdr` | Cmdr server module | required | Your server Cmdr module. Must have `Registry` and `Dispatcher`. | `Cmdr` | | `BridgeKey` | `string` or `Secret` | required | The project's bridge key. As a string it must start with `bxb_`. | `BridgeKey` | | `ApiUrl` | `string` | required | `https://api.bloxlytics.app`. Must start with `http://` or `https://`; trailing slashes are removed. | `ApiUrl` | | `ProjectID` | `string` or `number` | `game.GameId` | The Universe ID. Same rules as [analytics](https://docs.bloxlytics.app/sdk/configuration#project-id). | `ProjectID` | | `Analytics` | the `Analytics` module | none | Shares the analytics server id and server tags, and reports the bridge in heartbeats. | the module itself | | `AllowedGroups` | `{ string }` | all groups | Cmdr groups Bloxlytics may run. Exact, case-sensitive; commands with no group are refused when set. | `AllowedGroups` | | `AllowSystemCommands` | `boolean` | `true` | `false`: Cmdr commands only run as the sender's own player, when they are in this server. | `AllowSystemCommands` | | `AllowKick` | `boolean` | `true` | `false` refuses kicks and stops advertising the `kick` capability. | `AllowKick` | | `OnWarn` | `(Player, string) -> ()` | none | Called with the player and the message to show a warning. Enables the `warn` capability. | `OnWarn` | | `OnAnnounce` | `(string) -> ()` | none | Called with the message to show an announcement. Enables the `announce` capability. | `OnAnnounce` | | `EnableInStudio` | `boolean` | `true` | `false` keeps the bridge off in Studio. | `EnableBridgeInStudio ~= false` | | `Debug` | `boolean` | `false` | Print registration, polling and each command's outcome, prefixed `[Bloxlytics bridge]`. | `Debug` | `OnWarn` and `OnAnnounce` run inside `pcall`, on the bridge's thread. If they error, the command fails with the error as its message. They may yield, but the bridge waits for them before running the next command. ### Configuration checks `Init` checks, in order, and stops at the first problem with `[Bloxlytics bridge] Not started: . Remote commands are off.`: | Check | Problem | | --- | --- | | Running on the server | `it must run on the server` | | A table was passed | `pass a configuration table` | | `Cmdr` is a table with `Registry` and `Dispatcher` | `pass the server Cmdr module as Cmdr` | | `ProjectID` resolves | The same messages as analytics, for example `this place isn't published, so it has no Universe ID yet; …` | | `BridgeKey` is a string starting with `bxb_` | `BridgeKey must start with bxb_ (use the bridge key, not the write key)` | | `BridgeKey` is otherwise a `Secret` | `BridgeKey must be a string or a Secret from HttpService:GetSecret` | | `ApiUrl` starts with `http://` or `https://` | `ApiUrl is required` | A second call warns `Init called twice; ignoring the second call`. Like `Analytics:Init`, it changes `ApiUrl` and `ProjectID` in the table you passed. ## Functions ### Init ```luau CmdrBridge:Init(config: Config): boolean ``` Starts the bridge. Never throws and never yields: registration and polling run on a new thread. - `config` (table, body, required): The fields above. - `returns` (boolean): `true` when the configuration is usable (including in Studio with `EnableInStudio = false`, where the bridge then stays off). `false` when a check failed or `Init` was already called. A `true` result doesn't mean registration succeeded: that happens a few seconds later. ```luau local HttpService = game:GetService("HttpService") local Cmdr = require(game.ServerScriptService.Cmdr) local Analytics = require(game.ServerScriptService.Analytics) local CmdrBridge = require(game.ServerScriptService.Analytics.CmdrBridge) CmdrBridge:Init({ Cmdr = Cmdr, Analytics = Analytics, BridgeKey = HttpService:GetSecret("bloxlytics_bridge_key"), ApiUrl = "https://api.bloxlytics.app", AllowedGroups = { "Admin", "DefaultAdmin" }, AllowKick = true, OnWarn = function(player: Player, message: string) -- show the warning with your own UI end, OnAnnounce = function(message: string) -- show the announcement to everyone end, AllowSystemCommands = true, EnableInStudio = true, Debug = false, }) ``` ### IsPlatformContext ```luau CmdrBridge.IsPlatformContext(context: any): boolean ``` Returns `true` when a Cmdr context was created by the bridge **in the system context**: `context.Executor` is `nil` and `context.Data.Bloxlytics` is a table. Use it in BeforeRun hooks. Note the dot: it is a plain function, not a method. It doesn't need the bridge to be started. - `context` (CommandContext, body, required): The context your hook receives. - `returns` (boolean): `true` for system-context commands from Bloxlytics. `false` for everything else, including Bloxlytics commands running as the sender's player. ```luau Cmdr.Registry:RegisterHook("BeforeRun", function(context) if CmdrBridge.IsPlatformContext(context) then -- context.Data.Bloxlytics = { Id, Name, Role, ExecutionId } return nil end -- your in-game checks return nil end) ``` ### Version - `CmdrBridge.Version` (string): The module's version, `"1.0.0"`. Sent when the server registers. ## Lifecycle ### Start-up 1. `Init` checks the configuration. In Studio with `EnableInStudio = false` it stops here. 2. It binds a `game:BindToClose` handler for the [shutdown](#shutdown). 3. On a new thread, it waits **3 seconds**, so your game can finish registering Cmdr commands, then [registers](#registration). 4. If registration fails, it tries again after 5 seconds, then 10, 20, 40, 80 and every 120 seconds, until it succeeds. 5. If Bloxlytics answers that the project's **Cmdr bridge** switch is off, the bridge stops for the life of this server. It doesn't poll and won't start later. 6. Otherwise it starts [polling](#polling). In Studio it prints `Listening for commands as Studio server "studio-…". Pick it in Bloxlytics to target this session.` ### Server id The bridge identifies its server with `Analytics.ServerKey` when you pass `Analytics` (which `Start` always does), so commands, heartbeats and live presence refer to the same server. Without it, it uses `game.JobId`, or in Studio its own `studio-` key. ### Registration `POST /v1/bridge/hello` sends: - the protocol version (`1`), the bridge version, the server id and `game.PlaceId`; - the **capabilities**: always `cmdr`, `presence` and `executor`; `kick` unless `AllowKick = false`; `warn` with `OnWarn`; `announce` with `OnAnnounce`; - the **command catalogue** from `Cmdr.Registry:GetCommands()`: each command's name, aliases, description (cut to 512 characters), group, arguments and whether `AllowedGroups` allows it. Each argument has a name, a type (the type name, or the type's `DisplayName`, or `custom`), a description (cut to 256 characters), whether it is optional and its default when that is a string, number or boolean. Arguments defined by a function are sent as `dynamic`; - `allowSystemCommands`, whether this is Studio, and the current server tags. The response says whether the bridge is enabled for the project. The bridge passes that to the analytics module, so heartbeats report `bridge = true` only while it is enabled. The bridge **re-registers every 5 minutes** while polling, so commands registered later, and changes to the switch, are picked up. A re-registration that finds the switch off makes heartbeats report `bridge = false`, but the server keeps polling. > **Note:** The API accepts at most 500 commands per server, 20 aliases and 32 arguments per command. A catalogue over those limits fails to register. ### Polling `POST /v1/bridge/poll` reports the server id, `game.PlaceId`, the user ids of everyone in the server, the server tags and whether this is Studio. Bloxlytics uses the player list to send commands about a player to that player's server, and to run commands as their sender. The API holds each poll open for up to **20 seconds**, returning as soon as there are commands for this server or for any server (this server's own first, up to 10 at a time). An empty answer starts the next poll at once. If a poll fails, the bridge waits 2 seconds, then 4, 8, 16, 32 and at most 60, resetting after a success. ### Running commands Commands from one poll run **one after another**, in order. Before running each, the bridge checks: 1. it has a string id that hasn't run on this server in the last **10 minutes**; 2. its expiry hasn't passed by the server's clock (commands expire 60 seconds after they are sent). Then, by kind: | Kind | What happens | Output on success | | --- | --- | --- | | `cmdr` | The steps on [security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security#hooks): lookup, `AllowedGroups`, executor, `AllowSystemCommands`, `Evaluate`, `Validate`, BeforeRun hooks, run. | Every `context:Reply` line, then the command's return value, joined by new lines; `Command executed.` if both are empty. | | `kick` | Refused if `AllowKick = false`. Otherwise kicks the player with the message, or `You were removed from the server.` | `Kicked ` | | `warn` | Refused without `OnWarn`. Otherwise calls `OnWarn(player, message)`. | `Warned ` | | `announce` | Refused without `OnAnnounce`. Otherwise calls `OnAnnounce(message)`. | `Announced` | The Bloxlytics dashboard currently sends `cmdr`, `kick` and `warn` commands; `announce` is part of the protocol but nothing in the dashboard sends it yet. ### Results All results from one poll are sent together in one `POST /v1/bridge/result`. Each result has the command id, `ok`, the output or error (each cut to 4,000 characters), the time taken in milliseconds and, for Cmdr commands, the context: `player` or `system`. The result request isn't retried: if it is lost, the command shows as timed out in Bloxlytics after 75 seconds. | Error | Cause | | --- | --- | | `Duplicate command ignored.` | This command id already ran on this server. | | `Command expired before it reached the server.` | Its 60 seconds were up by the server's clock. | | `Empty command.` | The command line was blank. | | `"" is not a registered command.` | No such command or alias in the server's Cmdr registry. | | `The group isn't allowed from Bloxlytics (AllowedGroups).` | The command's group isn't in `AllowedGroups`. | | `This game only runs Bloxlytics commands as a team member who is in the server (AllowSystemCommands = false).` | No executor, and system commands are refused. | | Cmdr's own parse or validation message | `Evaluate` or `Validate` failed, for example an unknown player name. | | `Rejected by BeforeRun hook: ` | A BeforeRun hook returned a value. | | The error raised by the command | The command errored while running. | | `Kick is disabled in this game's bridge configuration.` | `AllowKick = false`. | | `Player is not in this server.` | The kick or warning's target left. | | `Warnings aren't configured in this game (OnWarn).` | No `OnWarn`. | | `Announcements aren't configured in this game (OnAnnounce).` | No `OnAnnounce`. | | The error raised by `OnWarn` or `OnAnnounce` | Your function errored. | | `Unsupported command kind ` | A kind this bridge version doesn't know. | ### Shutdown The bridge's `BindToClose` handler stops the poll loop and sends `POST /v1/bridge/bye`. Bloxlytics marks the server as stopped and removes it from the live list straight away, instead of waiting for it to go quiet. A poll already in flight finishes on its own; no new poll starts after it. ### Requests Every request is a `POST` with a JSON body and these headers: | Header | Value | | --- | --- | | `Authorization` | `Bearer `, built with `Secret:AddPrefix` when the key is a `Secret`. | | `X-Bloxlytics-Project` | The resolved Universe ID. | | `X-Bloxlytics-Timestamp` | `os.time()` | | `X-Bloxlytics-Nonce` | A new GUID per request. | See [replay protection](https://docs.bloxlytics.app/sdk/cmdr-bridge/security#replay-protection). ## Types ```luau type Config = { Cmdr: any, Analytics: any?, ProjectID: (string | number)?, BridgeKey: any, -- string or Secret ApiUrl: string, AllowedGroups: { string }?, AllowKick: boolean?, OnWarn: ((Player, string) -> ())?, OnAnnounce: ((string) -> ())?, AllowSystemCommands: boolean?, EnableInStudio: boolean?, Debug: boolean?, } ``` --- # API reference > The public HTTP API that Roblox game servers and shared-dashboard viewers call, with its base URLs, versioning, content types and rate limits. Bloxlytics has a small public HTTP API. Your game servers use it to send analytics events, fetch remote configuration and run the optional Cmdr bridge. Anyone can use a few read-only endpoints: SDK downloads, shared dashboard links and a health check. The Luau SDK calls every game-server endpoint for you, so most developers never use this API directly. Read this reference if you're writing your own client, debugging what the SDK sends, or want to know exactly what the API accepts. ## Base URLs | Base URL | Serves | Who calls it | | --- | --- | --- | | `https://api.bloxlytics.app` | `/v1/*`, `/api/sdk/*`, `/api/health` | Roblox game servers, and anyone downloading the SDK | | `https://dash.bloxlytics.app` | `/api/public/dashboards/*` (and the dashboard's own internal API) | Browsers opening a shared dashboard link | On `api.bloxlytics.app`, any path other than those listed returns `404`. Dashboard endpoints are never reachable on that host. > **Warning:** Roblox game servers can only make HTTPS requests, and only when **Allow HTTP Requests** is turned on in **Game Settings → Security**. Every URL in this reference uses HTTPS. ## Endpoints ### Game servers These need the project header and a project key. See [Authentication](https://docs.bloxlytics.app/api/authentication). | Method and path | Key | What it does | | --- | --- | --- | | [`POST /v1/ingest`](https://docs.bloxlytics.app/api/ingest/send-events) | Write key (`bxw_`) | Send a batch of up to 500 events | | [`GET /v1/config`](https://docs.bloxlytics.app/api/ingest/get-config) | Write key (`bxw_`) | Fetch remote configuration and running experiments | | [`POST /v1/bridge/hello`](https://docs.bloxlytics.app/api/bridge/hello) | Bridge key (`bxb_`) | Register a server and its Cmdr commands | | [`POST /v1/bridge/poll`](https://docs.bloxlytics.app/api/bridge/poll) | Bridge key (`bxb_`) | Report players and long-poll for commands | | [`POST /v1/bridge/result`](https://docs.bloxlytics.app/api/bridge/result) | Bridge key (`bxb_`) | Report command results | | [`POST /v1/bridge/bye`](https://docs.bloxlytics.app/api/bridge/bye) | Bridge key (`bxb_`) | Tell Bloxlytics the server is shutting down | The [event format](https://docs.bloxlytics.app/api/ingest/event-format) page describes each event inside an ingest batch, including the reserved `$` events and the properties each one requires. ### Public These need no key. | Method and path | Host | What it does | | --- | --- | --- | | [`GET /api/sdk/:file`](https://docs.bloxlytics.app/api/public/sdk-modules) | `api.bloxlytics.app` | Download `Analytics.luau` or `CmdrBridge.luau` | | [`GET /api/public/dashboards/:token`](https://docs.bloxlytics.app/api/public/shared-dashboard) | `dash.bloxlytics.app` | Read a shared dashboard's layout | | [`GET /api/public/dashboards/:token/widgets/:widgetId`](https://docs.bloxlytics.app/api/public/shared-dashboard-widget) | `dash.bloxlytics.app` | Read one widget's data on a shared dashboard | | [`GET /api/health`](https://docs.bloxlytics.app/api/public/health) | Both | Check that the API is up | ### What isn't public The web dashboard at `dash.bloxlytics.app` talks to its own endpoints under `/api/*` (workspaces, projects, analytics queries, DataStores, moderation, commands and so on). Those endpoints are internal: - They authenticate with the signed-in user's session cookie, which you only get by signing in with Roblox in the browser. - They only accept browser requests from the dashboard's own origin. - They can change without notice, so they aren't documented and aren't supported for scripts. There is no API key for reading analytics, and the write key can never read anything. To share numbers outside your team, use a [shared dashboard link](https://docs.bloxlytics.app/analytics/dashboards). ## Versioning Game-server endpoints are versioned in two places: - **The path.** Every game-server endpoint starts with `/v1`. - **The `protocol` field.** Every `POST /v1/*` body carries `"protocol": 1`, the only version there is. The API rejects any other value with `400`, so a mismatched client fails loudly instead of being misread. The public `/api/*` endpoints aren't versioned. Write clients that ignore response fields they don't recognise. ## Requests and responses - **Request bodies** are JSON. Send `Content-Type: application/json`. Other content types are refused with `415`, except `text/plain`, which is read as a string and then fails validation with `400`. - **Response bodies** are JSON (`application/json; charset=utf-8`), except `GET /api/sdk/:file`, which returns Luau source as `text/plain`. - **Body size.** `POST /v1/ingest` accepts bodies up to 1 MB (1,048,576 bytes). Every other endpoint accepts up to 2 MB (2,097,152 bytes). Larger bodies get `413`. - **Timestamps** in request bodies and command expiries are Unix time in seconds. Response timestamps such as `updatedAt` are ISO 8601 strings in UTC. - **Unknown fields** in request objects are ignored and dropped. The exception is a custom event's `props`, a free-form map where every valid key is kept. Reserved `$` events keep only the properties they define. Errors always use one shape, `{ "error": { "code": "…", "message": "…" } }`. See [Errors](https://docs.bloxlytics.app/api/errors) for every code. ### Response headers Every response carries these security headers: | Header | Value | | --- | --- | | `X-Content-Type-Options` | `nosniff` | | `Referrer-Policy` | `strict-origin-when-cross-origin` | | `X-Frame-Options` | `DENY` | | `Strict-Transport-Security` | `max-age=31536000; includeSubDomains` | ### Browsers and CORS Cross-origin browser requests are only allowed from `https://dash.bloxlytics.app`. A web page on any other origin can't read API responses, including public ones. Game servers and command-line tools aren't affected, because CORS only applies to browsers. ## Rate limits Game-server endpoints are limited **per project** (per Universe ID), so busy experiences with many servers share one budget. The windows are fixed one-minute windows that start on the minute. | Endpoint | Limit per project | | --- | --- | | `POST /v1/ingest` | 3,000 requests a minute | | `GET /v1/config` | 2,000 requests a minute | | `POST /v1/bridge/hello` | 600 requests a minute | | `POST /v1/bridge/poll` | 20,000 requests a minute | | `POST /v1/bridge/result` | 6,000 requests a minute | | `POST /v1/bridge/bye` | No limit | The per-project limit is checked after the key, so a request with a bad key gets `401`, not `429`. Over the limit, the API answers `429` with code `rate_limited`. Public endpoints are limited **per client IP address**: | Endpoint | Limit per IP address | | --- | --- | | `GET /api/public/dashboards/:token` | 60 requests a minute | | `GET /api/public/dashboards/:token/widgets/:widgetId` | 300 requests a minute | | `GET /api/sdk/:file` | 600 requests a minute | | `GET /api/health` | No limit | Per-address limits add `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds) to responses. When you go over, the `429` response also carries `Retry-After` in seconds. > **Info:** At the default settings (a flush every 10 seconds), one server sends about 6 ingest batches a minute, so 3,000 a minute is roughly 500 servers flushing at once. The SDK retries `429` with backoff, and events stay queued in the server meanwhile. See [Errors](https://docs.bloxlytics.app/api/errors#what-the-sdk-does). ## Where next - [Authentication](https://docs.bloxlytics.app/api/authentication): The project header, write and bridge keys, replay protection and share tokens. - [Send events](https://docs.bloxlytics.app/api/ingest/send-events): The ingest endpoint, field by field. - [Errors](https://docs.bloxlytics.app/api/errors): Every status and error code, and which ones the SDK retries. - [Cmdr bridge](https://docs.bloxlytics.app/api/bridge/hello): How a server registers, long-polls for commands and reports results. --- # Authentication > How game servers identify their project and prove it with a write or bridge key, how bridge requests are protected against replay, and how shared dashboard tokens work. Every game-server request names a project and carries a key for it. The bridge endpoints also carry a timestamp and a single-use nonce. Public endpoints need no credentials, except shared dashboards, where the token in the URL is the credential. | Endpoints | Project header | Key | Replay headers | | --- | --- | --- | --- | | `POST /v1/ingest`, `GET /v1/config` | Required | Write key, `bxw_…` | No | | `POST /v1/bridge/*` | Required | Bridge key, `bxb_…` | Required | | `GET /api/public/dashboards/:token…` | No | Share token, in the path | No | | `GET /api/sdk/:file`, `GET /api/health` | No | None | No | ## The project header ```http X-Bloxlytics-Project: ``` A Bloxlytics project is one Roblox experience, and its project ID is the experience's **Universe ID**. A running game server already knows it as `game.GameId`, which is why the Luau SDK fills this header in for you. The API accepts: - **A Universe ID**: a positive whole number of 1 to 16 digits with no leading zero, such as ``. Surrounding spaces are ignored. - **A legacy project ID**: projects created before project IDs were Universe IDs had a UUID (`xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`, hexadecimal, any case). Older SDK installs still send it, and the API maps it to the right project. New installs should send the Universe ID. A Place ID is not a Universe ID, and the API doesn't accept one. The project's Universe ID is shown as **Project ID** under **Keys** on the project's **SDK** page. ## Project keys Each project has two keys. You find both on the project's **SDK** page, under **Keys**, if your role has the **Edit project settings and SDK keys** permission. | Key | Prefix | Used for | Can it read data? | | --- | --- | --- | --- | | **Write key** | `bxw_` | `POST /v1/ingest`, `GET /v1/config` | No. It can only send events and fetch the SDK's own remote config. | | **Bridge key** | `bxb_` | `POST /v1/bridge/*` | No. It can register a server, receive commands addressed to that project's servers and report their results. | Send the key as a bearer token: ```http Authorization: Bearer bxw_… ``` The scheme must be written exactly `Bearer` followed by one space. Keys are the prefix plus 32 URL-safe characters (`A–Z`, `a–z`, `0–9`, `-`, `_`). The two keys aren't interchangeable. A write key sent to a bridge endpoint, or a bridge key sent to `/v1/ingest`, fails with `401 unauthorized` and the message `Invalid project key.` Neither key is a Roblox Open Cloud key, and neither can touch your DataStores, bans or anything else on Roblox. Open Cloud keys are connected separately in the dashboard and never leave Bloxlytics. ### Keep keys out of client code Keys are meant for server scripts only. Store them as experience secrets (Creator Hub → your experience → **Secrets**, for example `bloxlytics_write_key` and `bloxlytics_bridge_key`, restricted to `api.bloxlytics.app`) and read them with `HttpService:GetSecret`; the SDK accepts a `Secret` directly. Never put a key in a `LocalScript`, a `ReplicatedStorage` module or anything else that's sent to players. See [Configuration](https://docs.bloxlytics.app/sdk/configuration). The write key is lower-risk than it looks: someone who has it can send fake events into your project, but can't read anything. The bridge key matters more, because a server holding it receives commands. Commands still only run through the game's own Cmdr permission hooks; see [Cmdr bridge security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security). ### How keys are checked and stored - Bloxlytics keeps a SHA-256 hash of each key to check requests against, and compares hashes in constant time. - The key itself is also stored, encrypted, so the **Keys** section can show it to you again. Each time someone opens it, the view is recorded in the [audit log](https://docs.bloxlytics.app/workspaces/audit-log). - A missing header, a project ID the API can't read, or a missing key returns `401` with the message `Missing project id or key.` A wrong key, a deleted project or the wrong kind of key returns `401` with `Invalid project key.` The API doesn't say which part was wrong. ### Rotating a key On the project's **SDK** page, under **Keys**, choose **Rotate write key** or **Rotate bridge key** (the refresh button beside each key), then confirm with **Rotate key**. > **Warning:** The old key stops working at once. Servers still using it get `401` on every request. For the write key, the SDK drops each rejected batch, so events from those servers are lost until the servers have the new key. For the bridge key, remote commands stop working on those servers. If you store the key as an experience secret, update the secret, then restart or migrate servers so they read it again. If the key is in a script, publish the place with the new key. Rotations are recorded in the [audit log](https://docs.bloxlytics.app/workspaces/audit-log). Rotate a key whenever you think it has leaked. ## Replay protection for the bridge Every `POST /v1/bridge/*` request carries two extra headers: ```http X-Bloxlytics-Timestamp: 1767225600 X-Bloxlytics-Nonce: 8C6F1C2E-6B7B-4E0A-9D3F-2A1B5C4D7E9F ``` | Header | Rule | | --- | --- | | `X-Bloxlytics-Timestamp` | The current Unix time in seconds. It must be within **120 seconds** of Bloxlytics' clock, either way. | | `X-Bloxlytics-Nonce` | A fresh random value for every request: 16 to 64 characters from `A–Z`, `a–z`, `0–9`, `-`, `{` and `}`. A GUID from `HttpService:GenerateGUID()` fits. | Bloxlytics remembers each nonce, per project, for 250 seconds: longer than the whole timestamp window. A request that reuses a nonce in that time is refused, and a request older than the window is refused by its timestamp. Together, a captured request can't be sent again. The checks run in this order, after the key has been accepted: | Failure | Status | Code | Message | | --- | --- | --- | --- | | Timestamp missing, not a number, or more than 120 s off | `401` | `stale_request` | `Request timestamp is outside the allowed window.` | | Nonce missing or not 16–64 allowed characters | `401` | `bad_nonce` | `Missing nonce.` | | Nonce already used | `401` | `replayed` | `Nonce already used.` | The nonce is used up as soon as it passes, even if the request then fails validation or a rate limit. Generate a new one for every attempt, including retries. > **Note:** Bridge requests are not signed: there is no HMAC over the body. The bearer key proves who is calling, HTTPS keeps the request private and unaltered in transit, and the timestamp and nonce stop replays. The Luau bridge sends `os.time()` as the timestamp and `HttpService:GenerateGUID(false)` as the nonce. The ingest and config endpoints don't use these headers. Retrying an ingest batch is safe without them because events are deduplicated by their `id`; see [Send events](https://docs.bloxlytics.app/api/ingest/send-events#deduplication). ## Share tokens A shared dashboard link looks like `https://dash.bloxlytics.app/share/`. The token is the only credential: anyone with the link can view the dashboard, and no one needs to sign in. - Tokens are 32 URL-safe random characters, generated when someone chooses **Create link** in a dashboard's sharing dialog. The token is shown once; Bloxlytics keeps only its SHA-256 hash. - A link expires after the period chosen when it was made (1, 7, 30, 90 or 365 days, or never), and can be revoked at any time. A dashboard can have up to 10 active links. - A link only works while the dashboard is shared with the project. Making the dashboard private again stops every link to it. - Shared links are read-only and never show individual players. The API side is described in [Shared dashboard](https://docs.bloxlytics.app/api/public/shared-dashboard). For creating and managing links, see [Dashboards](https://docs.bloxlytics.app/analytics/dashboards). ## Related - [Errors](https://docs.bloxlytics.app/api/errors) lists every `401` code and what the SDK does with it. - [Security and privacy](https://docs.bloxlytics.app/security) covers how Bloxlytics protects keys and data, and how to [report a security issue](https://docs.bloxlytics.app/security#reporting-issues). --- # Errors > The error response shape, every status and error code the public API returns, and whether the Luau SDK retries or drops each one. When a request fails, the API answers with a non-2xx status and a JSON body in one shape: ```json { "error": { "code": "invalid_batch", "message": "Rejected batch: protocol Invalid input: expected 1", "details": {} } } ``` | Field | Type | Meaning | | --- | --- | --- | | `error.code` | string | A stable, machine-readable code. Branch on this and on the status. | | `error.message` | string | A human-readable explanation. Log it, show it to a developer, but don't parse it: wording can change. | | `error.details` | object | Optional. Present on some `400` responses, for example a `fields` map from field name to problem. | The only response that doesn't follow this shape is a request to a path that doesn't exist (see [`404`](#404-not-found)). ## Status codes at a glance | Status | Meaning | Retry? | | --- | --- | --- | | `200`, `202`, `204` | Success | — | | `400` | The request is malformed or fails validation | No. Fix the request. | | `401` | Missing or wrong project ID or key, or a failed bridge replay check | No, except `stale_request` after fixing the clock | | `404` | Unknown path, file, share link or widget | No | | `413` | Body too large | No. Send smaller batches. | | `415` | Unsupported `Content-Type` | No. Send `application/json`. | | `429` | Rate limited | Yes, with backoff | | `500` | Unexpected error on Bloxlytics' side | Yes, with backoff | | Other `5xx` | Bloxlytics is temporarily unreachable | Yes, with backoff | ## Every error code ### 400 Bad Request | Code | Returned by | Message and cause | | --- | --- | --- | | `invalid_batch` | `POST /v1/ingest` | `Rejected batch: ` — the envelope (`protocol`, `sdk`, `server` or the `events` array itself) is invalid, or **every** event in the batch is invalid. When events are the problem, the path names the first bad one, for example `Rejected batch: events.0.id (PetHatched) Too small: expected string to have >=8 characters`. If only some events are invalid, the batch is accepted instead; see [partial rejection](https://docs.bloxlytics.app/api/ingest/send-events#partial-rejection). | | `invalid_payload` | `POST /v1/bridge/*` | `: ` — the body doesn't match the endpoint's schema, for example `protocol: Invalid input: expected 1` or `players.0: Too small: expected number to be >0`. | | `bad_request` | `GET /api/public/dashboards/:token/widgets/:widgetId` | `Some fields need attention.` — a query parameter is invalid. `details.fields` maps each parameter to its problem, for example `{ "fields": { "range": "Invalid option: …" } }`. | | `bad_request` | Any | `Invalid request.` — a value failed a validation step that has no more specific code. | | `FST_ERR_CTP_INVALID_JSON_BODY` | Any `POST` | `Body is not valid JSON but content-type is set to 'application/json'` | | `FST_ERR_CTP_EMPTY_JSON_BODY` | Any `POST` | `Body cannot be empty when content-type is set to 'application/json'` | The validation messages after the path (`Too small: …`, `Invalid input: …`) are descriptive text, not codes. Rely on `error.code`. ### 401 Unauthorized | Code | Returned by | Message and cause | | --- | --- | --- | | `unauthorized` | `/v1/*` | `Missing project id or key.` — no `X-Bloxlytics-Project` header, a value that isn't a Universe ID or known legacy project ID, or no `Authorization: Bearer …` header. | | `unauthorized` | `/v1/*` | `Invalid project key.` — the key isn't this project's current key of the right kind: wrong or rotated key, write key on a bridge endpoint (or the reverse), or the project no longer exists. | | `stale_request` | `/v1/bridge/*` | `Request timestamp is outside the allowed window.` — `X-Bloxlytics-Timestamp` is missing or more than 120 seconds from Bloxlytics' clock. | | `bad_nonce` | `/v1/bridge/*` | `Missing nonce.` — `X-Bloxlytics-Nonce` is missing or isn't 16–64 characters of `A–Z a–z 0–9 - { }`. | | `replayed` | `/v1/bridge/*` | `Nonce already used.` — this nonce was already used for this project in the last 250 seconds. | See [Authentication](https://docs.bloxlytics.app/api/authentication) for how each header is checked. ### 404 Not Found | Code | Returned by | Message | | --- | --- | --- | | `not_found` | `GET /api/sdk/:file` | `Unknown SDK file.` | | `not_found` | `GET /api/public/dashboards/:token…` | `This link doesn't exist or has been revoked.` — the token is malformed, unknown or revoked, or the dashboard is no longer shared with the project. | | `not_found` | `GET /api/public/dashboards/:token…` | `This link has expired. Ask the person who shared it for a new one.` | | `not_found` | `GET /api/public/dashboards/:token/widgets/:widgetId` | `Widget not found.` — the widget isn't on that dashboard (it may have been removed). | A path the API doesn't serve at all, such as a misspelt path or a `GET` to a `POST` endpoint, returns a different body: ```json { "message": "Route GET:/v1/bridge/poll not found", "error": "Not Found", "statusCode": 404 } ``` On `api.bloxlytics.app`, paths outside `/v1/`, `/api/sdk/` and `/api/health` are answered with `404` before they reach the API, so the body isn't JSON. ### 413 Payload Too Large | Code | Message | | --- | --- | | `FST_ERR_CTP_BODY_TOO_LARGE` | `Request body is too large` | The limit is 1 MB for `POST /v1/ingest` and 2 MB for every other endpoint. The body is measured before anything else is checked, so an oversized request gets `413` even with a bad key. ### 415 Unsupported Media Type | Code | Message | | --- | --- | | `FST_ERR_CTP_INVALID_MEDIA_TYPE` | `Unsupported Media Type` | Send `Content-Type: application/json`. A `text/plain` body isn't refused here, but it's read as a string and then fails validation with `400`. ### 429 Too Many Requests | Code | Returned by | Message | | --- | --- | --- | | `rate_limited` | `/v1/*` (per-project limits) | `Too many requests.` | | `bad_request` | Per-IP limits on `/api/sdk/:file` and `/api/public/dashboards/*` | `Bad request.` | > **Note:** Responses from the per-IP limits currently carry the code `bad_request` instead of `rate_limited`. Treat any `429` status as a rate limit whatever the code says. These responses include a `Retry-After` header (seconds); the per-project `429` doesn't, and its window resets at the start of the next minute. Limits are listed in the [introduction](https://docs.bloxlytics.app/api#rate-limits). ### 500 Internal Server Error | Code | Message | | --- | --- | | `internal` | `Something went wrong on our side. Try again.` | Nothing about your request is wrong. Retry with backoff. For ingest, retrying is safe because events are deduplicated by `id`. ## What the SDK does The Luau SDK handles every error for you and never stops your game because of one. ### Analytics (ingest) | Result of `POST /v1/ingest` | What the SDK does | | --- | --- | | Any `2xx` | Removes the batch from its queue. | | No response (network error or timeout), `429`, or any `5xx` | Keeps the batch and waits before trying again: 2 seconds, then 4, 8, 16, 32, and 60 seconds at most. A success resets the wait. The retry sends the same event ids, so nothing is counted twice. | | Any other `4xx` (`400`, `401`, `404`, `413`, `415`) | Drops the batch, because sending it again can't succeed, and prints one warning per status code: `[Bloxlytics] API rejected a batch (401): …` | While the API is unreachable the server keeps queuing, up to 5,000 events. After that it drops the oldest events first and warns once. On shutdown the SDK keeps flushing for up to 20 seconds. See [Delivery](https://docs.bloxlytics.app/sdk/delivery). | Result of `GET /v1/config` | What the SDK does | | --- | --- | | `200` | Applies the new settings. | | Anything else | Keeps the settings it already has (its defaults, if it has never loaded any) and tries again at the next refresh, 300 seconds later. | ### Cmdr bridge | Request | On failure | | --- | --- | | `POST /v1/bridge/hello` | Warns `[Bloxlytics bridge] registration failed (): `, then retries after 5 seconds, doubling up to 120 seconds, until it succeeds. Commands don't run until it does. | | `POST /v1/bridge/poll` | Waits 2 seconds, doubling up to 60 seconds, then polls again. A `204` counts as an empty poll, not a failure. | | `POST /v1/bridge/result` | Not retried. If no result arrives, the command is marked as timed out (`The game server didn't respond in time.`), at the latest two minutes after it was delivered. A result that arrives after that is ignored. | | `POST /v1/bridge/bye` | Not retried; the server is shutting down. Without it, Bloxlytics stops counting the server as online 90 seconds after it was last heard from. | Every bridge retry gets a fresh timestamp and nonce, so retries never fail as `replayed`. ### Finding the cause If the API rejects requests, the project's **SDK** page shows it under **Debugger**: counts of accepted and rejected events and batches, and **Recent problems**, the last 50 rejection messages (cleared 7 days after the most recent one). The messages are the same text as the `invalid_batch` messages above, plus the reasons events were rejected after the batch was accepted. Requests that fail authentication (`401`) or arrive too large (`413`) aren't recorded there; look for the SDK's warning in the server output instead. See [Troubleshooting](https://docs.bloxlytics.app/help/troubleshooting). --- # Send events > Send a batch of up to 500 analytics events from a game server, with the envelope, every field, deduplication and partial rejection explained. Sends a batch of events from one game server. This is the endpoint the Luau SDK flushes its queue to, every 10 seconds by default or sooner when the queue reaches the batch size. The API checks the batch, answers `202 Accepted` straight away and processes the events afterwards. Accepted events usually appear on the **Realtime** page within a few seconds. Authenticate with the project's **write key**; see [Authentication](https://docs.bloxlytics.app/api/authentication). ## Headers - `Content-Type` (string, header, required): `application/json`. - `Authorization` (string, header, required): `Bearer ` followed by the project's write key, `bxw_…`. A bridge key is refused. - `X-Bloxlytics-Project` (string, header, required): The experience's Universe ID, as a decimal string (`game.GameId` in a running server). Legacy UUID project IDs are also accepted. ## Body The body is one JSON object, at most 1 MB (1,048,576 bytes). Fields not listed here are ignored. - `protocol` (number, body, required): The wire protocol version. Must be `1`. - `sdk` (object, body, required): Which client sent the batch. The version is shown as **SDK version** in the project's SDK debugger. **sdk** - `name` (string, body, required): Client name, up to 40 characters. The Luau SDK sends `bloxlytics-luau`. - `version` (string, body, required): Client version, up to 20 characters, for example `1.0.0`. - `server` (object, body, required): The game server the events come from. Every event in the batch is attributed to this server and place. **server** - `jobId` (string, body, required): The server's id, up to 64 characters. The Luau SDK sends `game.JobId`, or `studio-` followed by 8 random hexadecimal characters in Studio, where `game.JobId` is empty. Use the same value for the bridge so commands and presence refer to the same server. - `placeId` (integer, body, required): The place the server runs (`game.PlaceId`). A whole number, `0` or more. - `placeVersion` (integer, body): The published place version (`game.PlaceVersion`). A whole number, `0` or more. Stored on the server's record. - `privateServerId` (string, body): `game.PrivateServerId` for private servers, up to 64 characters. Omit it for public servers. Accepted and validated, but not currently stored. - `isStudio` (boolean, body): `true` when the batch comes from a Studio session. When a `$server_start` or `$server_heartbeat` arrives with it, the server is marked as a Studio session, which is never chosen automatically for commands. - `events` (Event[], body, required): Between 1 and 500 events. Each is checked on its own; see [Partial rejection](#partial-rejection). The full rules, including every reserved event, are on [Event format](https://docs.bloxlytics.app/api/ingest/event-format). **Event** - `id` (string, body, required): A unique id for this event, 8 to 64 characters. The Luau SDK uses `HttpService:GenerateGUID(false)`. Resending an event with the same `id` is safe: see [Deduplication](#deduplication). - `name` (string, body, required): The event name, 1 to 64 characters. Either a reserved name starting with `$` (such as `$session_start`) or a custom name: a letter, then letters, digits, spaces and `_ . : -`. - `ts` (number, body, required): When the event happened, as Unix time in seconds. Fractions are allowed (the SDK sends milliseconds, for example `1767225600.125`). Must be greater than `0`. - `userId` (integer, body): The Roblox user id of the player the event is about. A positive whole number. Required for every reserved event except the `$server_*` events, and optional for custom events. - `sessionId` (string, body): The player's session id, up to 64 characters. The SDK creates one per player per server visit and puts it on every event for that player until they leave. - `props` (object, body): Flat properties: at most 32 keys. Keys start with a letter or `_`, then letters, digits, spaces and `_ . -`, up to 40 characters in all. Values are strings (up to 4,096 characters), finite numbers, booleans or `null`. No nested objects or arrays. An empty array `[]` is read as no properties, because Roblox encodes an empty table that way. ## Response `202 Accepted` when at least one event passed validation. - `accepted` (integer, required): How many events passed validation and will be processed. - `rejected` (integer, required): How many events in the batch failed validation and were discarded. `0` when every event was valid. `accepted` counts events before the checks that run during processing (below), so a few of them may still be discarded. Duplicates are also counted here and dropped later. ## Validation The request is checked in this order. The first failure ends it. 1. **Size and JSON.** Over 1 MB: `413`. Not valid JSON: `400`. See [Errors](https://docs.bloxlytics.app/api/errors). 2. **Credentials.** Project header and write key: `401 unauthorized`. 3. **Rate limit.** Over 3,000 batches a minute for the project: `429 rate_limited`. 4. **Envelope.** `protocol`, `sdk`, `server`, and `events` being an array of 1 to 500 items. Any problem: `400 invalid_batch`. 5. **Each event.** Checked against the [event format](https://docs.bloxlytics.app/api/ingest/event-format): `id`, `name`, `ts`, `userId`, `sessionId` and `props`. ### Partial rejection A bad event doesn't cost you the rest of the batch: - If **some** events are invalid, the valid ones are accepted and the response is `202` with `rejected` greater than `0`. - If **every** event is invalid, the response is `400 invalid_batch`, and the message names the first bad event, for example `Rejected batch: events.0.ts (PetHatched) Too small: expected number to be >0`. Either way, the first problem is recorded under **Recent problems** in the project's SDK debugger, for example `Rejected 2 of 40 events: events.7.ts (Upgrade) Too small: expected number to be >0`. ### Checks during processing After the batch is accepted, each event goes through checks that depend on your project's settings. Events that fail are discarded and the reason is added to **Recent problems** (up to five distinct reasons per batch), without changing the response you already got. | Check | Result | | --- | --- | | `ts` more than 5 minutes in the future | The event is kept, with its time set to when the batch arrived. | | `ts` more than 30 days in the past | Discarded: `timestamp older than 30 days`. | | Reserved event with properties that don't match its definition | Discarded, with the property and problem. | | Reserved player event without `userId` | Discarded: ` requires userId`. | | Name starting with `$` that isn't a reserved event | Discarded: `Unknown reserved event `. | | Custom name that doesn't match the naming rule | Discarded: `Invalid event name ""`. | | Session, economy or purchase tracking turned off | Those events are discarded. | | Custom events turned off, or the name is in **Blocked events** | Discarded. | | Economy event in a currency that isn't configured, when currencies are configured | Discarded: `Unknown currency "" — add it in SDK settings`. | | Custom-event string value over 256 characters | Kept, with the string cut to 256 characters. | The settings are on the project's **SDK** page under **Configuration**; see [Project settings](https://docs.bloxlytics.app/projects/settings) and [Remote configuration](https://docs.bloxlytics.app/sdk/remote-config). ## Deduplication Bloxlytics keeps every event `id` it processes, per project, for 48 hours. An event that arrives again with the same `id` in that time is dropped silently. This makes retries safe: if a request times out and you can't tell whether it arrived, send the same batch again with the same ids. Give every new event a new id. Reusing an id for a different event within 48 hours loses the second one. ## Batching guidance - Send events from one server per request: the `server` object applies to every event in the batch. - The SDK sends at most `maxBatchSize` events per request (200 by default, from 10 to 500 in project settings). Batches with many long string properties can pass 1 MB before they reach the count limit, and a `413` loses the whole batch, so if you write your own client, split batches by encoded size as well as by count. - Retry `429`, `5xx` and network failures with backoff. Don't retry other `4xx` responses. See [Errors](https://docs.bloxlytics.app/api/errors#what-the-sdk-does). **Request example** ```bash cURL curl -X POST https://api.bloxlytics.app/v1/ingest \ -H "Content-Type: application/json" \ -H "Authorization: Bearer bxw_…" \ -H "X-Bloxlytics-Project: " \ -d '{ "protocol": 1, "sdk": { "name": "my-client", "version": "1.0.0" }, "server": { "jobId": "", "placeId": 1234567890, "placeVersion": 42, "isStudio": false }, "events": [ { "id": "6F1C2E8C-7B6B-4E0A-9D3F-2A1B5C4D7E9F", "name": "$session_start", "ts": 1767225600.125, "userId": 1, "sessionId": "0B7E4D2A-1C3F-4A5B-8D9E-6F7A8B9C0D1E", "props": { "username": "", "premium": false, "locale": "en-gb", "country": "GB" } }, { "id": "A2B3C4D5-E6F7-4890-A1B2-C3D4E5F60718", "name": "PetHatched", "ts": 1767225612.5, "userId": 1, "sessionId": "0B7E4D2A-1C3F-4A5B-8D9E-6F7A8B9C0D1E", "props": { "PetName": "Dragon", "Rarity": "Legendary", "EggCost": 500 } } ] }' ``` ```json Body { "protocol": 1, "sdk": { "name": "bloxlytics-luau", "version": "1.0.0" }, "server": { "jobId": "", "placeId": 1234567890, "placeVersion": 42, "isStudio": false }, "events": [ { "id": "A2B3C4D5-E6F7-4890-A1B2-C3D4E5F60718", "name": "PetHatched", "ts": 1767225612.5, "userId": 1, "sessionId": "0B7E4D2A-1C3F-4A5B-8D9E-6F7A8B9C0D1E", "props": { "PetName": "Dragon" } } ] } ``` **Response example** ```json 202 { "accepted": 2, "rejected": 0 } ``` ```json 202 partial { "accepted": 38, "rejected": 2 } ``` ```json 400 { "error": { "code": "invalid_batch", "message": "Rejected batch: events.0.id (PetHatched) Too small: expected string to have >=8 characters" } } ``` ```json 401 { "error": { "code": "unauthorized", "message": "Invalid project key." } } ``` ```json 413 { "error": { "code": "FST_ERR_CTP_BODY_TOO_LARGE", "message": "Request body is too large" } } ``` ```json 429 { "error": { "code": "rate_limited", "message": "Too many requests." } } ``` --- # Event format > The wire format of one analytics event, the naming and property rules, and every reserved $ event with the properties it requires. Every item in the `events` array of [`POST /v1/ingest`](https://docs.bloxlytics.app/api/ingest/send-events) is one event in this format. Events are checked twice: once when the batch arrives (the [field rules](#fields), where a failure counts towards `rejected` in the response), and again while the batch is processed (the [reserved event](#reserved-events) and [custom event](#custom-events) rules, where a failure is listed under **Recent problems** in the project's SDK debugger). If you use the Luau SDK you never build events by hand. [Event reference](https://docs.bloxlytics.app/sdk/event-reference) shows which SDK call sends each one. ## Fields ```json { "id": "A2B3C4D5-E6F7-4890-A1B2-C3D4E5F60718", "name": "PetHatched", "ts": 1767225612.5, "userId": 1, "sessionId": "0B7E4D2A-1C3F-4A5B-8D9E-6F7A8B9C0D1E", "props": { "PetName": "Dragon", "EggCost": 500, "Shiny": false } } ``` | Field | Type | Required | Rules | | --- | --- | --- | --- | | `id` | string | Yes | 8 to 64 characters. Unique per event; used to [deduplicate retries](https://docs.bloxlytics.app/api/ingest/send-events#deduplication) for 48 hours. | | `name` | string | Yes | 1 to 64 characters on the wire. Must then be a [reserved name](#reserved-events) or a valid [custom name](#custom-events). | | `ts` | number | Yes | Unix time in seconds, greater than `0`. Fractions allowed. | | `userId` | integer | Depends | The player's Roblox user id: a positive whole number no larger than 9,007,199,254,740,991. Required for reserved player events. | | `sessionId` | string | No | Up to 64 characters. Ties a player's events to one visit to one server. | | `props` | object | No | Flat properties; see [Properties](#properties). | ### Time - `ts` more than 5 minutes ahead of Bloxlytics' clock is replaced with the time the batch arrived. The event is kept. - `ts` more than 30 days in the past is rejected with `timestamp older than 30 days`. - Times are stored to the millisecond, in UTC. ### Sessions A session is one player's visit to one server. The SDK creates a `sessionId` when a player joins, sends `$session_start`, puts the same `sessionId` on that player's events, and sends `$session_end` with the same id when they leave. Session length is computed from these pairs. When `$session_end` arrives without a known start, the start is worked out from its `duration`. Events without a `sessionId` are still stored; they just aren't tied to a visit. ## Properties `props` is a flat JSON object. | Rule | Limit | | --- | --- | | Number of keys | At most 32 | | Key | Starts with a letter or `_`, then letters, digits, spaces, `_`, `.` or `-`. 1 to 40 characters. | | Value | A string, a finite number, `true`/`false`, or `null` | | String length on the wire | Up to 4,096 characters | | String length stored, custom events | Up to 256 characters. Longer strings are cut, not rejected. | | Nesting | Not allowed. Objects and arrays as values are rejected. | An empty array (`[]`) as `props` is treated as no properties, because `HttpService:JSONEncode` encodes an empty Luau table as `[]`. A key that breaks the rules fails the whole event at the wire stage (message `Invalid key in record`), as does a 33rd key (`At most 32 properties per event`). The Luau SDK drops bad keys and keeps the first 32 before sending, with a warning in the output, so its events don't fail this way. ## Custom events Any name that doesn't start with `$` is a custom event. The name must match: ```text ^[A-Za-z][A-Za-z0-9_ .:\-]{0,63}$ ``` That is: start with a letter, then up to 63 more letters, digits, spaces, `_`, `.`, `:` or `-`. Names are case-sensitive: `PetHatched` and `pethatched` are different events. A custom event is discarded while processing if: - the name doesn't match (`Invalid event name ""`), - custom events are turned off in the project's SDK configuration (`custom events disabled`), or - the name is listed under **Blocked events** (`blocked`). `userId` is optional on custom events. Without it, the event counts towards totals but not towards any player. ## Reserved events Names starting with `$` are reserved. Only the names below are accepted; any other `$` name is discarded with `Unknown reserved event `. Each reserved event's `props` are checked against its definition. Properties the definition doesn't list are dropped (except on `$server_stop`, which keeps whatever it's sent). All reserved events except the three `$server_*` events also need `userId`; without it the event is discarded with ` requires userId`. | Event | Shown as | Category | Needs `userId` | | --- | --- | --- | --- | | `$session_start` | Joined game | session | Yes | | `$session_end` | Left game | session | Yes | | `$server_start` | Server started | server | No | | `$server_heartbeat` | Server heartbeat | server | No | | `$server_stop` | Server stopped | server | No | | `$economy` | Currency changed | economy | Yes | | `$economy_transfer` | Currency transferred | economy | Yes | | `$balance` | Balance snapshot | economy | Yes | | `$purchase` | Purchase | purchase | Yes | | `$funnel` | Funnel step | funnel | Yes | | `$progression` | Progression | progression | Yes | | `$property` | Property set | property | Yes | | `$experiment_exposure` | Experiment exposure | experiment | Yes | Turning off **session**, **economy** or **purchase** tracking in the project's SDK configuration discards every event in that category. ### $session_start A player joined the server. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `username` | string | Yes | Up to 40 characters. Used as the player's name across Bloxlytics. | | `displayName` | string | No | Up to 40 characters | | `accountAge` | integer | No | Account age in days, `0` or more | | `premium` | boolean | No | Whether the player has Roblox Premium | | `locale` | string | No | Up to 16 characters, for example `en-us` | | `country` | string | No | Up to 8 characters. ISO 3166-1 alpha-2 country or region, as Roblox reports it. | | `teleported` | boolean | No | Whether the player arrived by teleport from another place | ### $session_end A player left the server. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `duration` | number | Yes | Seconds in the session, `0` or more | ### $server_start A server started. Sent once per server, without `userId`. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `maxPlayers` | integer | No | `0` or more | | `tags` | string | No | Up to 2,048 characters. A JSON object of [server tags](#server-tags), encoded as a string. | | `studio` | boolean | No | `true` for a Studio session | ### $server_heartbeat A live server reporting in. The SDK sends one every 30 seconds. A server counts as online for 90 seconds after the last heartbeat (or bridge poll). | Property | Type | Required | Rules | | --- | --- | --- | --- | | `playerCount` | integer | Yes | Players in the server, `0` or more | | `maxPlayers` | integer | No | `0` or more | | `players` | string | No | Up to 4,096 characters. The user ids in the server, separated by commas, for example `"1,2,3"`. Properties are flat, so this is a string, not an array. | | `bridge` | boolean | No | `true` when the Cmdr bridge is running on this server | | `tags` | string | No | Up to 2,048 characters. JSON object of [server tags](#server-tags), as a string. | | `studio` | boolean | No | `true` for a Studio session | Heartbeats aren't shown in the live event feed. ### $server_stop The server is shutting down. Takes no required properties and keeps any it's sent. The server is removed from the live server list. ### $economy A player gained (source) or spent (sink) an amount of an in-game currency. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `currency` | string | Yes | 1 to 32 characters. If the project lists currencies, it must be one of them (case-insensitive). | | `amount` | number | Yes | Finite number | | `flow` | string | Yes | `source` or `sink` | | `category` | string | No | Up to 64 characters. Where it came from or went, for example `Quest` or `Shop`. | | `item` | string | No | Up to 64 characters. What was bought or earned. | | `balance` | number | No | The player's balance afterwards, finite | If the project lists currencies under **Currencies** and this one isn't among them, the event is discarded with `Unknown currency "" — add it in SDK settings`. With no currencies listed, any currency is accepted. The same rule applies to `$economy_transfer` and `$balance`. ### $economy_transfer A player gave currency to another player. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `currency` | string | Yes | 1 to 32 characters | | `amount` | number | Yes | Greater than `0` | | `toUserId` | integer | Yes | The receiving player's user id, a positive whole number | | `reason` | string | No | Up to 64 characters | The event's own `userId` is the sender. ### $balance A snapshot of a player's balance. Not shown in the live event feed. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `currency` | string | Yes | 1 to 32 characters | | `balance` | number | Yes | Finite number | ### $purchase A Robux purchase attempt or completion. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `kind` | string | Yes | `developer_product`, `gamepass` or `premium` | | `productId` | integer | Yes | `0` or more. The developer product or game pass id. | | `productName` | string | No | Up to 64 characters | | `robux` | integer | No | Price paid in Robux, `0` or more | | `status` | string | Yes | `attempted`, `completed` or `failed` | | `receiptId` | string | No | Up to 64 characters. The `PurchaseId` from `ProcessReceipt`. | A `completed` purchase of a developer product or game pass also adds that product to the project's product list, if it isn't there already, using `productName` (or `Product ` / `Game pass `) and `robux` as the price. ### $funnel A player reached a step in a funnel. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `funnel` | string | Yes | 1 to 64 characters, for example `Tutorial` | | `step` | string | Yes | 1 to 64 characters, for example `Opened shop` | | `stepIndex` | integer | No | `0` or more. Keeps steps in order in the funnel builder. | ### $progression A player started, completed or failed a piece of progression. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `status` | string | Yes | `start`, `complete` or `fail` | | `path` | string | Yes | 1 to 128 characters, for example `World1/Level3` | | `score` | number | No | Finite number | ### $property Sets a property on the player, such as `Level`, `VIP` or `Role`. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `key` | string | Yes | The property name. Same rule as a `props` key: a letter or `_`, then letters, digits, spaces, `_ . -`, up to 40 characters. | | `value` | string, number, boolean or null | Yes | Strings up to 256 characters | ### $experiment_exposure A player was shown a variant of an experiment. The SDK sends it once per experiment per session, the first time `GetVariant` returns a variant. | Property | Type | Required | Rules | | --- | --- | --- | --- | | `experiment` | string | Yes | Up to 64 characters. The experiment key. | | `variant` | string | Yes | Up to 64 characters. The variant key. | ## Server tags The `tags` property on `$server_start` and `$server_heartbeat` is a JSON object encoded as a string, for example `"{\"map\":\"Forest\",\"mode\":\"Ranked\"}"`. | Rule | Limit | | --- | --- | | Number of tags | At most 16 | | Tag name | Starts with a letter, then letters, digits, spaces, `_`, `.` or `-`. 1 to 32 characters. | | Tag value | A string, up to 64 characters | If the string isn't valid JSON or breaks any of these rules, the event is still accepted and the server is treated as having no tags. The Cmdr bridge sends the same tags as a plain object; see [Poll for commands](https://docs.bloxlytics.app/api/bridge/poll). --- # Get remote config > Fetch the project's SDK settings and running experiments, which a game server applies without being republished. Returns the settings a game server should run with: how often to flush, which kinds of events to send, the configured currencies, whether the Cmdr bridge is on, and every running experiment with its variants. These come from the project's **SDK** page, under **Configuration**, and from the experiments you start. Changing them there takes effect in live servers the next time they fetch this endpoint, with no republish. See [Remote configuration](https://docs.bloxlytics.app/sdk/remote-config). The Luau SDK fetches it once when it starts and then every 300 seconds. Authenticate with the project's **write key**; see [Authentication](https://docs.bloxlytics.app/api/authentication). ## Headers - `Authorization` (string, header, required): `Bearer ` followed by the project's write key, `bxw_…`. - `X-Bloxlytics-Project` (string, header, required): The experience's Universe ID (`game.GameId`). Legacy UUID project IDs are also accepted. This endpoint takes no query parameters and no body. It's limited to 2,000 requests a minute per project. ## Response `200 OK` with the current settings. Fields not saved in the project yet have their defaults. - `flushIntervalSeconds` (integer, required, default 10): How often, in seconds, the server should send queued events. From 2 to 60. - `maxBatchSize` (integer, required, default 200): The most events to send in one [ingest](https://docs.bloxlytics.app/api/ingest/send-events) request. From 10 to 500. The SDK also flushes early when this many events are queued. - `trackSessions` (boolean, required, default true): Whether to send `$session_start` and `$session_end`. When `false`, the API also discards them. - `trackEconomy` (boolean, required, default true): Whether to send `$economy`, `$economy_transfer` and `$balance`. When `false`, the API also discards them. - `trackPurchases` (boolean, required, default true): Whether to send `$purchase`. When `false`, the API also discards it. - `trackCustomEvents` (boolean, required, default true): Whether to send custom events. When `false`, the API also discards them. - `blockedEvents` (string[], required, default []): Custom event names not to send, matched exactly. Up to 100 names. The API discards them too. - `currencies` (string[], required, default []): The keys of the configured currencies, up to 20. When the list isn't empty, economy events in any other currency are discarded (the match ignores case). When it's empty, any currency is accepted. - `bridgeEnabled` (boolean, required, default true): Whether the Cmdr bridge is turned on for the project. The bridge itself reads this from [`POST /v1/bridge/hello`](https://docs.bloxlytics.app/api/bridge/hello), which returns the same setting as `enabled`. - `experiments` (Experiment[], required): Experiments that are running now: status **running**, started (or with no start time), and not yet ended (or with no end time). Drafts, stopped experiments and experiments outside their schedule aren't listed. Empty when none are running. **Experiment** - `key` (string, required): The experiment key, as used in `Analytics:GetVariant(player, key)` and in `$experiment_exposure`. - `allocation` (integer, required): The percentage of players in the experiment, from 1 to 100. The rest get no variant. - `variants` (Variant[], required): The variants, in order. **Variant** - `key` (string, required): The variant key, 1 to 32 letters, digits, `_` or `-`. - `weight` (integer, required): The variant's relative weight, from 1 to 100. - `config` (object, required): Flat values the game reads for this variant, such as `{ "StartingCoins": 500 }`. Keys up to 40 characters; values are strings (up to 256 characters), numbers or booleans. ## Assigning variants Assignment happens in the game server, from `experiments`, without another request. It is deterministic, so a player gets the same variant on every server, and Bloxlytics computes the same answer when it analyses results. Both sides use 32-bit FNV-1a over the bytes of a string (experiment keys and user ids are plain ASCII): 1. `bucket = fnv1a(":") % 10000`. If `bucket >= allocation * 100`, the player isn't in the experiment. 2. Otherwise, `pick = fnv1a(":variant:") % `. 3. Walk the variants in order, adding up their weights. The first variant where `pick` is less than the running total is the player's. FNV-1a here starts from `0x811c9dc5` and multiplies by the prime `0x01000193`, modulo 2³². `` is the decimal user id with no separators. If you write your own client, send `$experiment_exposure` the first time a player is given a variant, once per session, so the experiment's results include them. See [Experiments](https://docs.bloxlytics.app/sdk/experiments). ## How the SDK applies it The Luau SDK copies every field of the response over its own settings. Values from this endpoint therefore replace the `FlushInterval` and `MaxBatchSize` you pass to `Analytics:Start`, from the first successful fetch onwards. If the request fails, the SDK keeps the settings it already has (its built-in defaults, before the first success) and tries again at the next refresh. Tracking switches and blocked events are applied in the server before events are queued, and again by the API while it processes batches. Shortly after you change a setting, events it turns off are discarded even from servers still running the old settings. **Request example** ```bash cURL curl https://api.bloxlytics.app/v1/config \ -H "Authorization: Bearer bxw_…" \ -H "X-Bloxlytics-Project: " ``` ```luau Luau local HttpService = game:GetService("HttpService") local response = HttpService:RequestAsync({ Url = "https://api.bloxlytics.app/v1/config", Method = "GET", Headers = { ["Authorization"] = HttpService:GetSecret("bloxlytics_write_key"):AddPrefix("Bearer "), ["X-Bloxlytics-Project"] = string.format("%d", game.GameId), }, }) local config = HttpService:JSONDecode(response.Body) ``` **Response example** ```json 200 { "flushIntervalSeconds": 10, "maxBatchSize": 200, "trackSessions": true, "trackEconomy": true, "trackPurchases": true, "trackCustomEvents": true, "blockedEvents": ["DebugPing"], "currencies": ["Coins", "Gems"], "bridgeEnabled": true, "experiments": [ { "key": "starter-pack", "allocation": 50, "variants": [ { "key": "control", "weight": 50, "config": { "StartingCoins": 100 } }, { "key": "generous", "weight": 50, "config": { "StartingCoins": 500 } } ] } ] } ``` ```json 401 { "error": { "code": "unauthorized", "message": "Missing project id or key." } } ``` ```json 429 { "error": { "code": "rate_limited", "message": "Too many requests." } } ``` --- # Register a server > Register a game server with the Cmdr bridge, report what it can do and publish its Cmdr command catalogue. The first call a game server makes to the Cmdr bridge. It tells Bloxlytics that the server is online, which bridge features it supports, and which Cmdr commands are registered in it. The response says whether the bridge is turned on for the project and how long polls are held. After a successful hello, the server starts [polling for commands](https://docs.bloxlytics.app/api/bridge/poll). The Luau bridge waits 3 seconds after starting (so your game can register its Cmdr commands first), then sends hello, and sends it again every 300 seconds while it runs so the command catalogue stays current. If hello fails, it retries after 5 seconds, doubling the wait up to 120 seconds. All bridge endpoints use the project's **bridge key** and [replay protection](https://docs.bloxlytics.app/api/authentication#replay-protection-for-the-bridge). The protocol is described end to end in [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge). ## Headers - `Content-Type` (string, header, required): `application/json`. - `Authorization` (string, header, required): `Bearer ` followed by the project's bridge key, `bxb_…`. A write key is refused. - `X-Bloxlytics-Project` (string, header, required): The experience's Universe ID (`game.GameId`). Legacy UUID project IDs are also accepted. - `X-Bloxlytics-Timestamp` (string, header, required): The current Unix time in seconds. Must be within 120 seconds of Bloxlytics' clock. - `X-Bloxlytics-Nonce` (string, header, required): A new random value for this request: 16 to 64 characters from `A–Z a–z 0–9 - { }`. Never reuse one. ## Body At most 2 MB. - `protocol` (number, body, required): The bridge protocol version. Must be `1`. - `version` (string, body, required): The bridge client's version, up to 20 characters, for example `1.0.0`. - `jobId` (string, body, required): The server's id, up to 64 characters: `game.JobId`, or the `studio-…` key the analytics SDK uses in Studio. Use the same value as `server.jobId` in [ingest](https://docs.bloxlytics.app/api/ingest/send-events) so analytics, presence and commands refer to the same server. - `placeId` (integer, body, required): `game.PlaceId`. A whole number, `0` or more. - `cmdrVersion` (string, body): The Cmdr version, up to 20 characters. Accepted but not currently used. - `capabilities` (string[], body, required): What this server's bridge can do. Up to 10 values from the list below; any other value is refused. A server counts as running the bridge (and can be sent commands) when the list includes `cmdr` or `kick`. | Value | Meaning | | --- | --- | | `cmdr` | Runs registered Cmdr commands | | `kick` | Can kick a player | | `warn` | Can show a player a warning (the game supplied an `OnWarn` handler) | | `announce` | Can show a server-wide announcement (the game supplied an `OnAnnounce` handler) | | `presence` | Reports the players in the server on each poll | | `executor` | Can run a command as the issuing team member's own player when they're in the server | The Luau bridge always sends `cmdr`, `presence` and `executor`, adds `kick` unless `AllowKick = false`, and adds `warn` and `announce` when their handlers are set. - `commands` (Command[], body, required): The Cmdr commands registered in this server, up to 500. Send `[]` if there are none. Each command is saved for the project by `name`. A command that's already known has its aliases, description, group, arguments and `allowed` replaced with what you send. Commands you leave out aren't deleted. **Command** - `name` (string, body, required): The command name, 1 to 64 characters. - `aliases` (string[], body, default []): Other names for the command, up to 20, each up to 64 characters. - `description` (string, body): Up to 512 characters. - `group` (string, body): The command's Cmdr group, up to 64 characters, for example `DefaultAdmin`. Used for per-role group restrictions. - `args` (Argument[], body, default []): The command's arguments in order, up to 32. Bloxlytics uses them to check the structure of a command line before queuing it; Cmdr checks the types in the game. **Argument** - `name` (string, body, required): Up to 64 characters. - `type` (string, body, required): The Cmdr type name, up to 64 characters, for example `player`, `number`, `integers` or `string`. - `description` (string, body): Up to 256 characters. - `optional` (boolean, body): `true` when the argument can be left out. - `default` (string | number | boolean, body): The default value, if the argument has one. - `dynamic` (boolean, body): `true` when Cmdr defines the argument with a function, so its shape is only known at run time. Dynamic arguments are never treated as required. - `allowed` (boolean, body, default true): Whether this server lets Bloxlytics run the command. The Luau bridge sends `false` for commands whose group isn't in `AllowedGroups`. Bloxlytics refuses to queue a command marked `false`. - `types` (string[], body, default []): Custom Cmdr type names, up to 200, each up to 64 characters. Accepted but not currently used. - `allowSystemCommands` (boolean, body, default true): `false` when the server only runs Cmdr commands as a verified team member's player who is in this server, never in the system context. Bloxlytics then won't send a Cmdr command to this server unless the issuer is in it. See [Cmdr bridge security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security). - `studio` (boolean, body, default false): `true` for a Studio session. Studio servers are only sent commands when someone picks them explicitly. - `tags` (object, body, default {}): Server tags, such as `{ "map": "Forest" }`: up to 16, names starting with a letter then letters, digits, spaces, `_ . -` (up to 32 characters), values up to 64 characters. Invalid tags fail the request with `400`. ## Response `200 OK`. The server is now shown as online (as a bridge server, if `capabilities` includes `cmdr` or `kick`), and its player list is empty until its next [poll](https://docs.bloxlytics.app/api/bridge/poll). - `ok` (boolean, required): Always `true`. - `enabled` (boolean, required): Whether the bridge is turned on in the project's SDK configuration. When `false`, don't poll: Bloxlytics won't queue commands for the project. The Luau bridge stops after a hello that returns `false`. - `pollHoldSeconds` (integer, required): How long a [poll](https://docs.bloxlytics.app/api/bridge/poll) is held open when there are no commands. Currently `20`. Set your HTTP timeout above this. - `groups` (object, required): The Cmdr groups each Bloxlytics role may run, from the project's SDK configuration: optional keys `owner`, `admin` and `developer`, each a list of group names. `{}` when no restriction is set. Bloxlytics enforces this itself when someone queues a command; it's returned for information. **Request example** ```bash cURL curl -X POST https://api.bloxlytics.app/v1/bridge/hello \ -H "Content-Type: application/json" \ -H "Authorization: Bearer bxb_…" \ -H "X-Bloxlytics-Project: " \ -H "X-Bloxlytics-Timestamp: $(date +%s)" \ -H "X-Bloxlytics-Nonce: $(uuidgen)" \ -d '{ "protocol": 1, "version": "1.0.0", "jobId": "", "placeId": 1234567890, "capabilities": ["cmdr", "presence", "executor", "kick"], "commands": [ { "name": "give", "aliases": ["g"], "description": "Give a player coins.", "group": "Admin", "args": [ { "name": "player", "type": "player" }, { "name": "amount", "type": "integer", "optional": true, "default": 100 } ], "allowed": true } ], "types": [], "allowSystemCommands": true, "studio": false, "tags": { "map": "Forest" } }' ``` **Response example** ```json 200 { "ok": true, "enabled": true, "pollHoldSeconds": 20, "groups": { "developer": ["Moderation"] } } ``` ```json 400 { "error": { "code": "invalid_payload", "message": "capabilities.0: Invalid option: expected one of \"cmdr\"|\"kick\"|\"warn\"|\"announce\"|\"presence\"|\"executor\"" } } ``` ```json 401 { "error": { "code": "stale_request", "message": "Request timestamp is outside the allowed window." } } ``` ```json 401 replayed { "error": { "code": "replayed", "message": "Nonce already used." } } ``` --- # Poll for commands > Report a server's players and long-poll for queued Cmdr, kick, warn and announce commands, held open for up to 20 seconds. A long poll. The game server reports who is in it and waits for commands. If commands are waiting, they're returned at once; otherwise the request is held open for up to 20 seconds and returns as soon as a command arrives, or empty when the time is up. Then the server polls again. Game servers never accept incoming connections, so this is how Bloxlytics reaches them: every command a team member runs from the dashboard is picked up by a poll. Polling also keeps the server listed as online, with an up-to-date player list. Call [hello](https://docs.bloxlytics.app/api/bridge/hello) first, and stop polling if it returned `enabled: false`. Authentication and replay headers are the same as for every bridge endpoint; see [Authentication](https://docs.bloxlytics.app/api/authentication#replay-protection-for-the-bridge). ## Headers - `Content-Type` (string, header, required): `application/json`. - `Authorization` (string, header, required): `Bearer ` followed by the project's bridge key, `bxb_…`. - `X-Bloxlytics-Project` (string, header, required): The experience's Universe ID (`game.GameId`). - `X-Bloxlytics-Timestamp` (string, header, required): The current Unix time in seconds, within 120 seconds of Bloxlytics' clock. - `X-Bloxlytics-Nonce` (string, header, required): A new random value for this request, 16 to 64 characters from `A–Z a–z 0–9 - { }`. ## Body - `protocol` (number, body, required): Must be `1`. - `jobId` (string, body, required): The server's id, up to 64 characters. The same value you sent to hello. - `placeId` (integer, body, required): `game.PlaceId`. A whole number, `0` or more. - `players` (integer[], body, default []): The Roblox user ids of everyone in the server right now, up to 700, each a positive whole number. Replaces the list from the last poll. Bloxlytics uses it to show who is where and to route commands to the server a player is in. - `tags` (object, body): The server's current tags, such as `{ "map": "Forest" }`: up to 16, names starting with a letter then letters, digits, spaces, `_ . -` (up to 32 characters), values up to 64 characters. Omit to keep the tags already known. - `studio` (boolean, body): `true` for a Studio session. ## Response `200 OK` with the commands for this server. At most 10 commands come back per poll: first those addressed to this server, and only when there are none of those, commands that any server may run. Bloxlytics normally addresses every command to one server when it's queued. - `commands` (Command[], required): The commands to run, in the order they were queued. `[]` when the hold time ran out with nothing to do. **Command** - `id` (string, required): The execution id. Report the outcome under this id with [result](https://docs.bloxlytics.app/api/bridge/result), once. - `kind` (string, required): `cmdr`, `kick`, `warn` or `announce`. - `text` (string): For `cmdr`: the full Cmdr command line, for example `give "" 500`. Run it through Cmdr's own dispatcher so its type checks and `BeforeRun` hooks apply. - `userId` (integer): For `kick` and `warn`: the Roblox user id of the target player. - `message` (string): For `kick`, `warn` and `announce`: the text to show. May be absent. - `expiresAt` (integer, required): Unix time in seconds after which the command must not run: 60 seconds after it was queued. Refuse commands past this time. - `issuedBy` (object, required): The team member who sent the command. The Luau bridge passes these to Cmdr as `context.Data.Bloxlytics` (`Id`, `Name`, `Role`). **issuedBy** - `id` (string, required): Their Bloxlytics user id. - `name` (string, required): Their name in Bloxlytics. - `role` (string, required): Their role in the workspace, for example `owner`, `admin` or `developer`. - `executorUserId` (integer): Only on `cmdr` commands, and only when the issuer has linked and verified their Roblox account **and** that player is in this server. Run the command as that player, so the game's own permission hooks judge them exactly as if they had typed it. `204 No Content` is returned instead if the caller closed the connection while the poll was held. A client doesn't normally see it; treat it like an empty poll. ## Timing - **Hold time.** Up to 20 seconds (`pollHoldSeconds` from hello). While a poll is held, Bloxlytics checks for new commands about every 0.4 seconds, so a command reaches a polling server well under a second after it's queued. - **Client timeout.** Give the request more than 20 seconds, ideally 25 or more, so a normal empty return isn't cut off. - **Next poll.** Poll again straight away after each response, after reporting any results. On a failure, back off: the Luau bridge waits 2 seconds, doubling up to 60. - **Online status.** Each poll counts as the server being seen. A server that hasn't polled or sent an analytics heartbeat for 90 seconds is no longer shown as online, and commands aren't sent to it. - **Rate limit.** 20,000 polls a minute per project. A server polling continuously uses about three a minute when idle. ## Delivery guarantees - A command is delivered to **one** poll. Once returned, it's marked as dispatched to this `jobId`, and only this server's result is accepted for it. - A command that's past `expiresAt` when a poll picks it up is not delivered: it's marked as timed out (`Expired before a server picked it up.`). - If the poll response is lost on the way (for example the connection drops), the command isn't sent again. It's marked as timed out if no result arrives. ## What the server must do The bridge never runs anything except registered commands, through the game's own code. For every command in the response: 1. **Skip duplicates.** Keep the ids you've run (the Luau bridge keeps them for 10 minutes) and report an id you've already seen as failed, without running it again. 2. **Check `expiresAt`** against `os.time()`. If it has passed, don't run it; report it as failed. 3. **Run it.** `cmdr`: through Cmdr's dispatcher, as the `executorUserId` player if given, otherwise in the system context (or refuse, if the server doesn't allow system commands). `kick`, `warn`, `announce`: only if the server enabled that capability. 4. **Report** every outcome in one [result](https://docs.bloxlytics.app/api/bridge/result) request. See [Cmdr bridge security](https://docs.bloxlytics.app/sdk/cmdr-bridge/security) for the full model. **Request example** ```bash cURL curl -X POST https://api.bloxlytics.app/v1/bridge/poll \ --max-time 30 \ -H "Content-Type: application/json" \ -H "Authorization: Bearer bxb_…" \ -H "X-Bloxlytics-Project: " \ -H "X-Bloxlytics-Timestamp: $(date +%s)" \ -H "X-Bloxlytics-Nonce: $(uuidgen)" \ -d '{ "protocol": 1, "jobId": "", "placeId": 1234567890, "players": [1, 2, 3], "tags": { "map": "Forest" }, "studio": false }' ``` **Response example** ```json 200 { "commands": [ { "id": "", "kind": "cmdr", "text": "give \"\" 500", "expiresAt": 1767225660, "issuedBy": { "id": "", "name": "", "role": "admin" }, "executorUserId": 1 }, { "id": "", "kind": "kick", "userId": 2, "message": "You were removed from the server.", "expiresAt": 1767225662, "issuedBy": { "id": "", "name": "", "role": "owner" } } ] } ``` ```json 200 empty { "commands": [] } ``` ```json 400 { "error": { "code": "invalid_payload", "message": "players.0: Too small: expected number to be >0" } } ``` ```json 401 { "error": { "code": "bad_nonce", "message": "Missing nonce." } } ``` --- # Report results > Report the outcome of commands a game server received from a poll, once per command and only from the server that received it. After running the commands from a [poll](https://docs.bloxlytics.app/api/bridge/poll), the server reports what happened to each one. The person who ran the command sees the output or error in the dashboard straight away, and macros that were waiting on it carry on. Each command accepts exactly one result, and only from the server it was delivered to. Anything else in the request is ignored, without an error. ## Headers - `Content-Type` (string, header, required): `application/json`. - `Authorization` (string, header, required): `Bearer ` followed by the project's bridge key, `bxb_…`. - `X-Bloxlytics-Project` (string, header, required): The experience's Universe ID (`game.GameId`). - `X-Bloxlytics-Timestamp` (string, header, required): The current Unix time in seconds, within 120 seconds of Bloxlytics' clock. - `X-Bloxlytics-Nonce` (string, header, required): A new random value for this request, 16 to 64 characters from `A–Z a–z 0–9 - { }`. ## Body - `protocol` (number, body, required): Must be `1`. - `jobId` (string, body, required): The id of the server that ran the commands, up to 64 characters. Must be the `jobId` of the poll that delivered them. - `results` (Result[], body, required): Up to 50 results. One poll returns at most 10 commands, so one request per poll is enough. **Result** - `id` (string, body, required): The command's `id` from the poll, up to 64 characters. - `ok` (boolean, body, required): `true` if the command ran successfully, `false` if it was refused or failed. - `output` (string, body): What the command produced, up to 4,000 characters, for example Cmdr's replies and the command's return value. Send it when `ok` is `true`. - `error` (string, body): Why it failed or was refused, up to 4,000 characters, for example `Rejected by BeforeRun hook: …` or `Command expired before it reached the server.`. Send it when `ok` is `false`; if you leave it out, the error is recorded as `Command failed.`. - `durationMs` (number, body): How long the command took to run, in milliseconds, `0` or more. Rounded to a whole number. - `context` (string, body): How a Cmdr command ran: `player` when it ran as the issuer's own player in the server (`executorUserId`), `system` when it ran without a player. Shown with the execution in the command history. Output and error strings longer than 4,000 characters fail the whole request with `400`. Cut them first, as the Luau bridge does. ## Response `200 OK`. - `accepted` (integer, required): How many results were recorded. A result is recorded only when all of these hold: - the command belongs to this project, - it was delivered by a poll from this same `jobId`, within the last 10 minutes, - it's still waiting for a result: no result has been recorded yet, and it hasn't been marked as timed out. Results that don't qualify are skipped silently, so `accepted` can be lower than the number you sent. Nothing is gained by sending them again. ## What happens to a recorded result - The command's status becomes **success** (`ok: true`) or **error** (`ok: false`), with its output or error, duration and run context, and the time it completed. - If the command was a moderation action taken through the bridge, such as a kick, the action is marked as **confirmed** by the game server, or as **failed** with your error. - Everyone watching the project in the dashboard is notified, so the result appears without a refresh. If no result arrives, the command is marked as timed out (`The game server didn't respond in time.`), at the latest two minutes after it was delivered. A late result is then ignored. The Luau bridge doesn't retry this request. **Request example** ```bash cURL curl -X POST https://api.bloxlytics.app/v1/bridge/result \ -H "Content-Type: application/json" \ -H "Authorization: Bearer bxb_…" \ -H "X-Bloxlytics-Project: " \ -H "X-Bloxlytics-Timestamp: $(date +%s)" \ -H "X-Bloxlytics-Nonce: $(uuidgen)" \ -d '{ "protocol": 1, "jobId": "", "results": [ { "id": "", "ok": true, "output": "Gave 500 coins to ", "durationMs": 3, "context": "player" }, { "id": "", "ok": false, "error": "Player is not in this server.", "durationMs": 0 } ] }' ``` **Response example** ```json 200 { "accepted": 2 } ``` ```json 200 ignored { "accepted": 0 } ``` ```json 400 { "error": { "code": "invalid_payload", "message": "results: Too big: expected array to have <=50 items" } } ``` ```json 401 { "error": { "code": "unauthorized", "message": "Invalid project key." } } ``` --- # Unregister a server > Tell Bloxlytics a game server is shutting down, so it's taken off the live server list at once. Sent when a game server shuts down. Bloxlytics records when the server stopped, removes it from the list of live servers and tells anyone watching the project in the dashboard that its bridge went offline. No more commands are sent to it. The Luau bridge sends it from `game:BindToClose`. It's a courtesy, not a requirement: if a server stops without saying bye (for example, it crashes), Bloxlytics stops treating it as online 90 seconds after it was last heard from. The body uses the same shape as a [poll](https://docs.bloxlytics.app/api/bridge/poll). Unlike the other bridge endpoints, bye has no per-project rate limit. ## Headers - `Content-Type` (string, header, required): `application/json`. - `Authorization` (string, header, required): `Bearer ` followed by the project's bridge key, `bxb_…`. - `X-Bloxlytics-Project` (string, header, required): The experience's Universe ID (`game.GameId`). - `X-Bloxlytics-Timestamp` (string, header, required): The current Unix time in seconds, within 120 seconds of Bloxlytics' clock. - `X-Bloxlytics-Nonce` (string, header, required): A new random value for this request, 16 to 64 characters from `A–Z a–z 0–9 - { }`. ## Body - `protocol` (number, body, required): Must be `1`. - `jobId` (string, body, required): The id of the server that's stopping, up to 64 characters. - `placeId` (integer, body, required): `game.PlaceId`. A whole number, `0` or more. - `players` (integer[], body, default []): Accepted for compatibility with the poll body and ignored. The Luau bridge sends `[]`. - `tags` (object, body): Accepted and ignored. Must still be valid [server tags](https://docs.bloxlytics.app/api/ingest/event-format#server-tags) if sent. - `studio` (boolean, body): Accepted and ignored. ## Response `200 OK`. - `ok` (boolean, required): Always `true`. Saying bye for a server Bloxlytics doesn't know about still succeeds. > **Note:** Bye only concerns the bridge's view of the server. The analytics SDK sends its own `$server_stop` event through [ingest](https://docs.bloxlytics.app/api/ingest/send-events) at shutdown, which also takes the server off the live list. Sessions of players still in the server are ended by their `$session_end` events, not by bye. **Request example** ```bash cURL curl -X POST https://api.bloxlytics.app/v1/bridge/bye \ -H "Content-Type: application/json" \ -H "Authorization: Bearer bxb_…" \ -H "X-Bloxlytics-Project: " \ -H "X-Bloxlytics-Timestamp: $(date +%s)" \ -H "X-Bloxlytics-Nonce: $(uuidgen)" \ -d '{ "protocol": 1, "jobId": "", "placeId": 1234567890, "players": [] }' ``` **Response example** ```json 200 { "ok": true } ``` ```json 400 { "error": { "code": "invalid_payload", "message": "placeId: Invalid input: expected number, received undefined" } } ``` ```json 401 { "error": { "code": "replayed", "message": "Nonce already used." } } ``` --- # Download the SDK modules > Download the current Analytics.luau and CmdrBridge.luau source files, publicly and without a key. Returns the source of one of the Luau SDK modules as plain text. No key is needed: the modules contain no secrets, because your game passes its project keys to them at runtime. The download buttons on a project's **SDK** page use this endpoint. Installing the files is covered in [Install the SDK](https://docs.bloxlytics.app/sdk/installation). ## Path parameters - `file` (string, path, required): The file to download. Exactly one of these names (case-sensitive): | `file` | What it is | | --- | --- | | `Analytics.luau` | The analytics SDK. Put it in `ServerScriptService` as a `ModuleScript` named `Analytics`. | | `CmdrBridge.luau` | The optional Cmdr bridge for remote commands and macros. Put it inside or next to `Analytics`. | Any other name returns `404`. ## Response `200 OK` with the module's Luau source as the body. | Header | Value | | --- | --- | | `Content-Type` | `text/plain; charset=utf-8` | | `Content-Disposition` | `attachment; filename="Analytics.luau"` (or `CmdrBridge.luau`), so browsers save the file instead of showing it | The version is near the top of each file (`local VERSION = "1.0.0"`) and is available at runtime as `Analytics.Version`. The analytics SDK reports it in every ingest batch, where it's shown as **SDK version** in the project's SDK debugger. ## Caching The API doesn't set a `Cache-Control` header, and each request returns the files of the release that's live at that moment. There's no versioned URL for an older release, so if you want to pin a version, keep a copy of the file in your place or your repository, and update it deliberately. Downloads are limited to 600 requests a minute per IP address. Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. **Request example** ```bash cURL curl -O https://api.bloxlytics.app/api/sdk/Analytics.luau curl -O https://api.bloxlytics.app/api/sdk/CmdrBridge.luau ``` **Response example** ```luau 200 --!strict --[[ Bloxlytics Analytics SDK (server-only) Install as a ModuleScript named "Analytics" in ServerScriptService (put CmdrBridge inside it, or next to it, to enable remote commands): … ]] ``` ```json 404 { "error": { "code": "not_found", "message": "Unknown SDK file." } } ``` --- # Get a shared dashboard > Read the layout of a dashboard shared by public link, with its widgets, saved date range and link expiry, using only the link's token. Returns what's needed to lay out a dashboard that has been shared by public link: its name, its saved date range, and the position, type and title of each widget. It doesn't return any numbers. Fetch each widget's data with [Get shared widget data](https://docs.bloxlytics.app/api/public/shared-dashboard-widget). This is what the page at `https://dash.bloxlytics.app/share/` calls. No sign-in is needed: the token is the credential. Widget settings (metrics, queries, segments, filters) stay private; only the layout is returned. The endpoint is on the dashboard host: `https://dash.bloxlytics.app`. Browsers can only call it from that origin (see [CORS](https://docs.bloxlytics.app/api#browsers-and-cors)); scripts and server-side code can call it from anywhere. ## Path parameters - `token` (string, path, required): The token from the share link: the part after `/share/`. Links made in Bloxlytics have 32 characters from `A–Z a–z 0–9 - _`. A token that isn't 16 to 128 of those characters returns `404` without being looked up. ## Response `200 OK`. Each successful request counts as a view of the link: its view count and last-viewed time are shown in the dashboard's sharing dialog. The response carries `Cache-Control: no-store` and `X-Robots-Tag: noindex`, so it isn't cached or indexed. - `dashboard` (object, required): The shared dashboard. **dashboard** - `name` (string, required): The dashboard's name. - `description` (string | null, required): Its description, or `null`. - `filters` (object, required): The dashboard-wide filters saved on it. Viewers can change the date range, but not the segment or player filters. **filters** - `range` (string | null, required): The saved date range: `today`, `yesterday`, `7d`, `30d`, `90d`, `365d` or `custom`. `null` when the dashboard has none, so each widget uses its own. - `from` (string | null, required): The start date of a `custom` range, as saved. Otherwise `null`. - `to` (string | null, required): The end date of a `custom` range, as saved. Otherwise `null`. - `hasSegment` (boolean, required): `true` when the dashboard is filtered to a player segment. The segment itself isn't revealed. - `playerFilters` (integer, required): How many player filters the dashboard applies. The filters themselves aren't revealed. - `updatedAt` (string, required): When the dashboard was last changed, as an ISO 8601 timestamp. - `widgets` (Widget[], required): Every widget, sorted top to bottom and then left to right. **Widget** - `id` (string, required): The widget's id, up to 64 characters. Use it to fetch the widget's data. - `type` (string, required): One of `kpi`, `line`, `bar`, `query`, `pie`, `table`, `funnel`, `retention`, `economy`, `live`, `event` or `text`. - `title` (string, required): The widget's title, up to 80 characters. - `x` (integer, required): Column of the left edge on a 12-column grid, from 0 to 11. - `y` (integer, required): Row of the top edge, from 0. - `w` (integer, required): Width in columns, from 1 to 12. - `h` (integer, required): Height in rows, from 1 to 20. - `refreshSeconds` (integer | null, required): How often the widget refreshes itself, in seconds (`0` means never), or `null` when it has no setting of its own. The shared page refreshes `live` widgets every 15 seconds when this is `null`. - `project` (object, required): **project** - `name` (string, required): The name of the project the dashboard belongs to. - `expiresAt` (string | null, required): When the link stops working, as an ISO 8601 timestamp, or `null` if it never expires. ## When a link stops working Every failure is `404`, so a link that's been taken down looks the same as one that never existed: | Cause | Message | | --- | --- | | The token is malformed or unknown | `This link doesn't exist or has been revoked.` | | The link was revoked | `This link doesn't exist or has been revoked.` | | The dashboard was made private, or deleted | `This link doesn't exist or has been revoked.` | | The link's expiry has passed | `This link has expired. Ask the person who shared it for a new one.` | ## Limits 60 requests a minute per IP address. Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`; over the limit you get `429` with `Retry-After`. See [Errors](https://docs.bloxlytics.app/api/errors#429-too-many-requests). **Request example** ```bash cURL curl https://dash.bloxlytics.app/api/public/dashboards/ ``` **Response example** ```json 200 { "dashboard": { "name": "Weekly health", "description": "Players, revenue and retention for the team.", "filters": { "range": "30d", "from": null, "to": null, "hasSegment": false, "playerFilters": 0 }, "updatedAt": "2026-11-20T09:14:02.511Z", "widgets": [ { "id": "w1", "type": "kpi", "title": "Daily active players", "x": 0, "y": 0, "w": 3, "h": 2, "refreshSeconds": null }, { "id": "w2", "type": "live", "title": "Playing now", "x": 3, "y": 0, "w": 3, "h": 2, "refreshSeconds": null }, { "id": "w3", "type": "retention", "title": "Retention", "x": 0, "y": 2, "w": 12, "h": 5, "refreshSeconds": null } ] }, "project": { "name": "" }, "expiresAt": "2026-12-20T09:15:40.003Z" } ``` ```json 404 { "error": { "code": "not_found", "message": "This link doesn't exist or has been revoked." } } ``` ```json 404 expired { "error": { "code": "not_found", "message": "This link has expired. Ask the person who shared it for a new one." } } ``` --- # Get shared widget data > Read the data behind one widget on a dashboard shared by public link, optionally for a different date range. Returns the data for one widget on a shared dashboard: a chart's series, a table's rows, a funnel's steps and so on. Get the widget ids and layout first from [Get a shared dashboard](https://docs.bloxlytics.app/api/public/shared-dashboard). The shared page calls this once per widget, and again whenever a widget refreshes or the viewer changes the date range. The widget is computed with the dashboard's saved filters, as the dashboard's members see it, with two differences: - The viewer may choose a different **date range** with the query parameters below. The dashboard's segment and player filters always apply and can't be changed or removed. - Nothing that identifies individual players is returned. A **Top spenders** table, for example, comes back as a message instead of rows. The endpoint is on `https://dash.bloxlytics.app`, needs no sign-in, and is subject to the same link rules as the dashboard: a revoked, expired or no-longer-shared link returns `404`. ## Path parameters - `token` (string, path, required): The token from the share link. - `widgetId` (string, path, required): The widget's `id` from the dashboard response. Only the first 64 characters are used. ## Query parameters - `range` (string, query): The date range to show instead of the dashboard's saved one: `today`, `yesterday`, `7d`, `30d`, `90d`, `365d` or `custom`. Ranges are whole UTC days, and all but `yesterday` end with today (`7d` is today and the six days before it). Leave it out to use the dashboard's saved range, or each widget's own range if the dashboard has none. - `from` (string, query): With `range=custom` only: the first day, as a date such as `2026-11-01`. Up to 40 characters. Ignored with any other range. Defaults to six days before today. - `to` (string, query): With `range=custom` only: the last day, included in the range. Up to 40 characters. Ignored with any other range. Defaults to today. ## Response `200 OK` with `Cache-Control: no-store`. The body always has `applied` and `kind`; the other fields depend on `kind`. - `applied` (object, required): What the widget was actually computed with. **applied** - `range` (string | null, required): The date range used, or `null` for widgets that don't take a range (`live` and `text`). - `from` (string | null, required): Start of the range, as an ISO 8601 timestamp (inclusive), or `null`. - `to` (string | null, required): End of the range, as an ISO 8601 timestamp (exclusive: midnight UTC after the last day), or `null`. - `ignored` (string[], required): Dashboard filters this widget type can't take and so left out: any of `segment`, `filters` and `range`. Usually `[]`. - `kind` (string, required): How to read the rest of the response: `query`, `parts`, `table`, `funnel`, `retention`, `economy`, `live`, `text` or `message`. ### Fields by kind #### query Charts, KPIs and custom queries (widget types `kpi`, `line`, `bar`, `event`, `query`, and `pie` widgets that split an event). - `display` (string, required): How to draw it: `line`, `area`, `bar`, `stacked`, `kpi`, `table` or `pie`. - `result` (object, required): **result** - `granularity` (string, required): `hour` for ranges of two days or less, otherwise `day`. - `from` (string, required): Start of the range, ISO 8601. - `to` (string, required): End of the range, ISO 8601. - `series` (Series[], required): Up to five series, or more when one is broken down by a property. **Series** - `key` (string, required): Unique within the result: the series id, or `:` for a breakdown. - `seriesId` (string, required): The series this came from. - `label` (string, required): The name to show. - `group` (string | null, required): The breakdown value, or `null` without a breakdown. - `format` (string, required): How to format values: `int`, `float`, `pct`, `duration`, `robux` or `robux2`. - `points` (Point[], required): One point per hour or day: `{ "t": "", "v": }`. - `previous` (Point[] | null, required): The same series for the previous period of equal length, when the widget compares periods. Otherwise `null`. - `total` (number | null, required): The series reduced to one number over the range. - `previousTotal` (number | null, required): The same for the previous period, or `null`. - `totalLabel` (string, required): How `total` was worked out: for example `Total in range`, `Peak in range`, `Average per period` or `Over the range`. - `source` (string, required): `sdk` for values counted from your game's events, `computed` for metrics Bloxlytics derives from them. - `notes` (string[], required): Plain statements about anything the query couldn't apply, to show under the chart. #### parts Revenue split by product type (a `pie` widget). - `items` (object[], required): `{ "label": "Developer products", "value": 12500 }` for each type with revenue: `Developer products`, `Game passes`, `Premium`. - `format` (string, required): `robux`. #### table Tables of events or products. - `columns` (object[], required): `{ "label": "Count", "format": "int" }` for each column. `format` is absent on text columns. - `rows` ((string | number | null)[][], required): One array per row, in column order. The events table lists the top 20 events with their count and number of players; the products table lists each product's purchases, revenue and conversion. Links to pages inside the dashboard, which members see, are left out of shared responses. #### funnel, retention and economy - `result` (object, required): The same data the dashboard's funnel, retention and economy views show. These objects are larger and may gain fields: - **funnel**: `name`, `steps` (each with `index`, `event`, `label`, `players`, `conversion`, `stepConversion`, `dropOff`, `dropOffPlayers` and more), `entered`, `completed`, `overallConversion` and `biggestDropOff`. - **retention**: `cohorts` (each with `cohort`, `size` and one `d` value per day measured), `average` and `totalPlayers`. - **economy**: `currency`, `totals` (earned, spent, net, earners, spenders, balances and more), time series, `distribution` and `health`. - `view` (string): Economy only: `flow`, `sources`, `sinks` or `balance`. #### live - `ccu` (integer, required): Players in the experience right now. - `servers` (integer, required): Live servers reporting to Bloxlytics. - `ccuSeries` (Point[], required): Concurrent players over the last 60 minutes: `{ "t": "", "v": }`. Uses Roblox's own player counts when Bloxlytics has them, otherwise counts from your servers. #### text - `text` (string, required): The widget's text as written. Blank lines separate paragraphs; it isn't Markdown. #### message - `message` (string, required): Why there's no data to show, for example `Top spenders lists individual players, so it isn't shown on shared links.`, `No currencies tracked yet.` or `Choose a metric in the widget settings.` ## Limits 300 requests a minute per IP address, with `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` and, over the limit, `429` with `Retry-After`. A shared page with many auto-refreshing widgets shares this budget between them. **Request example** ```bash cURL curl "https://dash.bloxlytics.app/api/public/dashboards//widgets/w1?range=7d" ``` ```bash Custom range curl "https://dash.bloxlytics.app/api/public/dashboards//widgets/w1?range=custom&from=2026-11-01&to=2026-11-14" ``` **Response example** ```json 200 { "applied": { "range": "7d", "from": "2026-11-18T00:00:00.000Z", "to": "2026-11-25T00:00:00.000Z", "ignored": [] }, "kind": "query", "display": "kpi", "result": { "granularity": "day", "from": "2026-11-18T00:00:00.000Z", "to": "2026-11-25T00:00:00.000Z", "series": [ { "key": "s1", "seriesId": "s1", "label": "Daily active players", "group": null, "format": "int", "points": [{ "t": "2026-11-18T00:00:00.000Z", "v": 1840 }, { "t": "2026-11-19T00:00:00.000Z", "v": 1912 }], "previous": null, "total": 1912, "previousTotal": null, "totalLabel": "Average per period", "source": "sdk" } ], "notes": [] } } ``` ```json 200 message { "applied": { "range": "30d", "from": "2026-10-26T00:00:00.000Z", "to": "2026-11-25T00:00:00.000Z", "ignored": [] }, "kind": "message", "message": "Top spenders lists individual players, so it isn't shown on shared links." } ``` ```json 400 { "error": { "code": "bad_request", "message": "Some fields need attention.", "details": { "fields": { "range": "Invalid option: expected one of \"today\"|\"yesterday\"|\"7d\"|\"30d\"|\"90d\"|\"365d\"|\"custom\"" } } } } ``` ```json 404 { "error": { "code": "not_found", "message": "Widget not found." } } ``` --- # Health check > Check that the Bloxlytics API is up and answering requests, with no authentication. Returns `{ "ok": true }` when the API is running and reachable. Use it for uptime monitoring, or to check from a game server or your network that `api.bloxlytics.app` can be reached at all. It needs no key and has no rate limit. It's available on both `https://api.bloxlytics.app` and `https://dash.bloxlytics.app`. ## What it tells you A `200` means the API answered. It doesn't check anything behind the API, so it can succeed while, for example, event processing is delayed. Ingest responses are a better signal for that: see [Send events](https://docs.bloxlytics.app/api/ingest/send-events). Any other result (a timeout, a connection error, a `5xx`) means the API isn't reachable from where you are. If game servers can't reach it, the SDK keeps events queued and retries; see [Errors](https://docs.bloxlytics.app/api/errors#what-the-sdk-does). > **Tip:** To test from Roblox, run this in a server script or the Studio command bar with **Allow HTTP Requests** on. An error saying HTTP requests aren't enabled points at the game setting, not at Bloxlytics. > > ```luau > print(game:GetService("HttpService"):GetAsync("https://api.bloxlytics.app/api/health")) > ``` ## Response `200 OK`. - `ok` (boolean, required): Always `true`. **Request example** ```bash cURL curl https://api.bloxlytics.app/api/health ``` **Response example** ```json 200 { "ok": true } ```