Alerts
An alert tells the people you pick when tracking stops, or when a number crosses a line or moves fast.
An alert watches one number on a site and tells the people you pick when it goes off, and again when it clears. Add alerts on the site's Alerts page.
What an alert can watch
- Tracking stops. No events arrive for 1, 3, 6 or 24 hours. This usually means the script came off the site, or a deploy broke it. The alert waits for the site's first event before it starts.
- A number crosses a line. A number goes above or below a value you set. It can be visitors, visits, pageviews, a goal's conversions or conversion rate, JavaScript errors, the share of page views with an error, LCP, INP or CLS at the 75th percentile, or the median page weight or JavaScript weight. Errors, web vitals and page weight alerts watch for a rise only.
- A number moves fast. The same numbers go up or down by a percent, against the stretch of time just before. A 1-hour window compares the last hour with the hour before it.
- A number looks unusual. On Foresight, the same numbers go above or below their usual range, set from the weeks before, so there is no line to set. See Unusual numbers.
- Errors spike. JavaScript errors, or the share of page views with an error, rise by a percent over the usual level. The usual level is the same hours on each of the 7 days before, so a busy morning compares with other mornings. A 7-day window compares with the 4 weeks before.
- Something new shows up. An error that never came in the 90 days before comes up as many times as you set, or a file that no page load had in the 7 days before weighs more than a size you set. A rebuild that renames a file, such as
app-4f1c.jsbecomingapp-9d2e.js, is not new. When a second new error or file shows up while the alert is going off, it goes off again for that one.
Windows are 1, 3, 6 and 24 hours, and 7 days, and they always end now. An alert that compares two windows stays quiet while both hold fewer than 10 visitors, conversions or errors, so a quiet night does not set off a 50% drop. A conversion rate with no visitors counts as unknown, never as 0%, and so does an error rate under 10 page views.
The Alerts page offers starting points: tracking stops, traffic drops, traffic spikes and a goal's conversion rate drops, and on the plans that have them, errors that spike and pages that get slower. On Foresight, traffic that looks unusual takes the place of traffic spikes. Pick one and change what you need. While you edit, the page reads the live numbers and says whether the alert would go off right now.
Speed and page weight
Web vitals and page weight alerts read the same samples as the Web vitals and Load pages. They watch every page, or one page when you type its path, like /pricing. A web vital needs 50 measured page loads in the window before the alert reads it, and page weight needs 20 sampled ones. With fewer, the alert waits.
To hear when LCP stops rating good, set it above 2,500 ms. Above 4,000 ms tells you when it turns poor. For INP the lines are 200 and 500 ms, and for CLS 0.1 and 0.25. A change alert on a web vital counts a move of a tenth of the good line or more, so 250 ms for LCP, and one on page weight counts a move of 10 KB or more.
Unusual numbers
An anomaly alert takes its usual range from the same hours on each of the 28 days before, so a Sunday morning is held against other Sunday mornings. A 7-day window takes it from the 8 weeks before. It goes off when the number leaves that range, above it, below it or either way, and clears when it comes back.
- How far. Outside the usual range tells you about any unusual number. Far outside it goes off less often, for the big moves only.
- History. It needs 14 days of history, or 4 weeks for a 7-day window, and stays quiet until then. Days before the site's first event don't count.
- Small numbers. It stays quiet under 10 visitors, conversions or errors, and the range is never narrower than the usual wobble of a count, so 4 visitors against a usual 6 is not unusual.
- Errors, web vitals and page weight go off above the range only. For web vitals and page weight, a day counts once it had 50 or 20 measured page loads in the window.
When it checks
An alert checks every twelfth of its window, from every 5 minutes up to every hour. A 1-hour alert checks every 5 minutes, a 6-hour alert every 30 minutes, and a 24-hour or 7-day alert every hour. The first check runs within a minute of saving.
Who hears about it
Pick the members to tell. The billing contact gets no alerts. Each one picked gets a notification in the app, a desktop notification where they turned push on, and an email when the alert goes off. An alert on errors, web vitals or page weight links to the Errors, Web vitals or Load page for the last 7 days. Email goes out at most once an hour for each alert. Clearing sends a notification but no email.
Someone who leaves the organization stops hearing from its alerts. Pausing an alert stops its checks until you resume it.
Channels
On Insight and Foresight, an alert can also post to channels in Slack, Discord, Microsoft Teams and Telegram. An owner or admin connects each channel once, under Settings → Integrations, and anyone who edits alerts picks them under Post to channels. A channel gets the same message as the email, when the alert goes off and at most once an hour, and a first message when it connects to confirm it works. To post to your own server, add a webhook.
An organization holds up to 20 channels of each service, and an alert posts to up to 10 in all. When a service refuses a post, because someone deleted the webhook or removed the bot, the channel shows it in settings. Remove it there and connect it again.
Slack
- In Slack, create an app for your workspace, or open one you have.
- Turn on Incoming Webhooks, then add a webhook and pick the channel.
- Under Settings → Integrations → Slack, paste the webhook URL with the channel's name.
Discord
- In Discord, open the server settings, then Integrations, then Webhooks.
- Make a new webhook and pick the channel it posts to, then copy its URL.
- Under Settings → Integrations → Discord, paste the URL with the channel's name.
Alerts never mention @everyone or anyone else.
Microsoft Teams
- In Teams, open the channel's menu and pick Workflows.
- Pick the template Send webhook alerts to a channel, finish it, and copy the URL it gives you.
- Under Settings → Integrations → Teams, paste the URL with the channel's name.
Teams retired the old Office 365 connector webhooks, so a connector URL is refused. Make a workflow instead.
Telegram
- Under Settings → Integrations → Telegram, get a link code. It works once, for 15 minutes.
- Open the chat link to get alerts in your own chat, or the group link to add the bot to a group.
- Press Start in Telegram. The chat shows up in settings a moment later, under its Telegram name.
For a channel, make the bot an admin of it, then post /start and the code there. A person's own chat stops getting alerts when whoever linked it leaves the organization, as their email does. Groups and channels keep them. A self-hosted server needs its own bot: make one with BotFather and set TELEGRAM_BOT_TOKEN for the API and the worker. Without it, the Telegram page says so.
We store Slack, Discord and Teams webhook URLs encrypted and never show them again. A Telegram chat is stored by its ID, and only a code from your organization can link one.
Webhooks
On Insight and Foresight, a webhook posts signed JSON to an address on your own server each time an alert goes off and each time it clears. It posts on every change, with no hourly limit.
- Set up an address that takes
POSTrequests over HTTPS on port 443. - Under Settings → Integrations → Webhooks, paste the address with a name.
- Copy the signing secret. It shows once.
- Add the signature check to your server, then press Send a test.
- Pick the webhook on an alert, under Post to channels.
An organization holds up to 20 webhooks, and each one counts toward the 10 channels an alert posts to. We store the address and the secret encrypted, and never show the address again.
What a post holds
{
"type": "alert.triggered",
"version": 1,
"occurred_at": "2026-11-06T13:36:27.660925Z",
"alert": {
"id": "a6835dfd-248a-4780-a73b-e3c7b56a9dbe",
"name": "Signups fell",
"kind": "change",
"metric": "conversions",
"direction": "below",
"threshold": 50,
"window_minutes": 60,
"goal": "Signed up"
},
"site": "example.com",
"value": 12,
"baseline": 40,
"summary": "Signed up conversions on example.com fell 70%",
"message": "12 in the last hour, against 40 in the hour before. From the alert \"Signups fell\".",
"url": "https://ultanimus.com/acme/example.com/alerts"
}| Field | What it holds |
|---|---|
type | alert.triggered or alert.resolved. |
version | The format of the post, now 1. |
occurred_at | When the check saw the change, in UTC. |
alert | The alert's id, name, kind, metric, threshold and window_minutes, plus direction, goal and page when it has them. |
site | The site's domain. |
value | The number the check read, or null when the alert has none. |
baseline | The number it compared against, or null. |
usual_low, usual_high | An anomaly alert's usual range. Left out on other alerts. |
detail | The error or file behind the alert. Left out when there is none. |
summary | One line, for a title. |
message | A sentence or two with the numbers, for a body. |
url | The page to look at in the dashboard. |
Numbers keep their metric's unit: counts, percent for rates, milliseconds for LCP and INP, a score for CLS, and bytes for page weight. The threshold of a change or spike alert is a percent, and an anomaly alert's is how far out it goes off: 1.5 or 3. Its direction can also be either.
Send a test posts type set to webhook.test, with version, occurred_at, summary, and a webhook object holding its id and name.
detail, summary and message can hold text a visitor's browser sent, such as an error message or a page path. Treat them as plain text and escape them before you show them on a page.
Check the signature
Every post carries three headers. They follow Standard Webhooks, so its libraries work too.
| Header | What it holds |
|---|---|
webhook-id | The post's ID. A retry keeps it, so drop an ID you already handled. |
webhook-timestamp | When this try was sent, in Unix seconds. Refuse a post more than 5 minutes off. |
webhook-signature | v1, then the base64 HMAC-SHA256 of id.timestamp.body. It can hold several, split by spaces. |
The key is your secret without whsec_, decoded from base64. Sign the raw body, before your framework parses it.
import { createHmac, timingSafeEqual } from 'node:crypto'
function verified(body, headers, secret) {
const id = headers['webhook-id']
const timestamp = headers['webhook-timestamp']
const age = Math.abs(Date.now() / 1000 - Number(timestamp))
if (!id || !(age <= 300)) return false
const key = Buffer.from(secret.replace('whsec_', ''), 'base64')
const expected = createHmac('sha256', key).update(`${id}.${timestamp}.${body}`).digest()
return (headers['webhook-signature'] ?? '').split(' ').some((signature) => {
const [version, value = ''] = signature.split(',')
const given = Buffer.from(value, 'base64')
return version === 'v1' && given.length === expected.length && timingSafeEqual(given, expected)
})
}func verified(body []byte, headers http.Header, secret string) bool {
id, timestamp := headers.Get("webhook-id"), headers.Get("webhook-timestamp")
seconds, err := strconv.ParseInt(timestamp, 10, 64)
if err != nil || id == "" || time.Since(time.Unix(seconds, 0)).Abs() > 5*time.Minute {
return false
}
key, err := base64.StdEncoding.DecodeString(strings.TrimPrefix(secret, "whsec_"))
if err != nil {
return false
}
mac := hmac.New(sha256.New, key)
fmt.Fprintf(mac, "%s.%s.%s", id, timestamp, body)
expected := mac.Sum(nil)
for _, signature := range strings.Fields(headers.Get("webhook-signature")) {
value, signed := strings.CutPrefix(signature, "v1,")
given, err := base64.StdEncoding.DecodeString(value)
if signed && err == nil && hmac.Equal(given, expected) {
return true
}
}
return false
}import base64
import hashlib
import hmac
import time
def verified(body: bytes, headers, secret: str) -> bool:
message_id = headers.get("webhook-id", "")
timestamp = headers.get("webhook-timestamp", "")
if not message_id or not timestamp.isdigit() or abs(time.time() - int(timestamp)) > 300:
return False
key = base64.b64decode(secret.removeprefix("whsec_"))
signed = f"{message_id}.{timestamp}.".encode() + body
expected = base64.b64encode(hmac.new(key, signed, hashlib.sha256).digest()).decode()
return any(
hmac.compare_digest(signature.encode(), f"v1,{expected}".encode())
for signature in headers.get("webhook-signature", "").split()
)What happens to each post
| Your server | What we do |
|---|---|
Answers 2xx within 10 seconds | Count it as delivered. |
Answers 410 | Mark the webhook failed and stop. |
Answers 429 | Wait for Retry-After, up to an hour, then try again. |
Answers 5xx, or not at all | Retry for about 10 minutes, then mark the webhook failed. |
| Answers anything else, redirects included | Mark the webhook failed and stop. |
A failed webhook shows a warning in settings and on the alert. It gets one try per change until a post goes through, and any post that goes through clears the warning, a test included.
We refuse private addresses and localhost, when you save one and again on every post.
Roll secret makes a new secret and stops the old one at once, so update your server right away.
Pausing or editing an alert that is going off closes it without an alert.resolved post.
Plans
| Plan | Alerts per site | Slack, Discord, Teams, Telegram and webhooks | Error alerts | Speed and page weight alerts |
|---|---|---|---|---|
| Glance | 1 | – | – | – |
| Insight | 10 | ✓ | ✓ | – |
| Foresight | Unlimited | ✓ | ✓ | ✓ |
An alert on a plan that no longer has it waits and tells nobody until the plan has it again.
Owners, admins and editors add and change alerts. AI agents list them with the list_alerts tool, add them with create_alert, change them with update_alert, and pause and resume them with pause_alert and resume_alert. An agent deletes one with delete_alert, which takes a key with dashboards:delete.