# 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 `[<project name>] <alert name>`, 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.
