Alerts
Overview
Section titled “Overview”A goal alert notifies your team when a goal is completed on a site: a demo request, a high-value signup, a purchase. It can send an email to members of the workspace, call a webhook of your own (signed, so you can trust it), or both.
Where to find it:
- Analytics settings › Alerts tab:
/t/<workspace>/analytics/settings?tab=alerts - From any analytics page: toolbar Settings, then Alerts. Pick the site in the Site menu of the toolbar.
Alerts belong to one site. They watch one goal each (see Goals and step funnels).
How it works
Section titled “How it works”From goal to notification
Section titled “From goal to notification”- When a goal is stored, every enabled alert of the site watching that goal name gets a queued item. This includes the automatic goals such as
payment. - A background synchronisation picks up the queue every few minutes (and right after some changes in the app).
- All completions queued for an alert since its last delivery are grouped into one notification: count, first and last time, up to 50 visitor ids.
- An alert is delivered at most once per minute. Completions that arrive within a minute of the previous delivery wait for the next pass and are grouped with the following ones.
- Each delivery is recorded: last triggered and deliveries in 24 h on the alert.
Deliveries are not retried: if your webhook endpoint is down or answers with a non-2xx status, that notification is lost (it still counts as a delivery). Disabled alerts do not queue anything; completions queued before you disabled an alert are dropped.
Email notifications
Section titled “Email notifications”- Emails go only to recipients who are members of the workspace. Addresses outside it are rejected when you save the alert.
- They are sent by the installation’s system email sender, in English.
- Subject:
[amabledata] <goal> on <site>. Body: Goal “<goal>” was completed <count> time(s) on <site> (alert “<name>”). with the first and last time and a link to the app.
Webhook notifications
Section titled “Webhook notifications”- The URL must use HTTPS.
- A signing secret (
whsec_…) is generated when the alert gets its webhook URL (at creation, or later when you add a URL to an alert that had none) and shown once, right after you save. - Changing the URL of an alert that already has a webhook keeps the same secret. Removing the URL deletes the secret; adding a URL again later generates a new one, shown once. To replace a lost or leaked secret without touching the URL, use New secret (see Get a new signing secret).
- Each delivery is a
POSTwith a JSON body,Content-Type: application/json,User-Agent: amabledata-webhooks/1and anAmable-Signatureheader. - A delivery succeeds when your endpoint answers with a 2xx status.
Step by step
Section titled “Step by step”Create an alert
Section titled “Create an alert”-
Open Analytics settings › Alerts for the right site and click New alert.
-
Fill the New goal alert dialog (“Add at least one email recipient or a webhook URL.”):
- Name: how the alert appears in the list and in notifications (up to 100 characters).
- Goal: the goal name exactly as your site sends it, for example
signup(“Goal name as sent by your site: a-z, 0-9 and _.”, up to 64 characters). - Email recipients: one or more member emails, separated by commas, spaces or semicolons (up to 10).
- Webhook URL: optional,
https://…(“HTTPS only. Requests are signed with the Amable-Signature header.”). - Enabled: on by default.
-
Click Save. The toast Alert created confirms.
-
If you entered a webhook URL, the Webhook signing secret dialog shows the secret (“Use it to verify the Amable-Signature header of every delivery.”). Copy it now: it is not shown again. Click Done.
Test an alert
Section titled “Test an alert”-
In the list, click Test on the alert. The toast Test delivery queued confirms.
-
Within a few minutes, the recipients receive an email with the subject
[amabledata] Test: <alert name>and the webhook receives a payload with"test": trueand"count": 0.
A test is delivered even when the alert is disabled and is not held back by the one-per-minute limit.
Turn an alert on or off
Section titled “Turn an alert on or off”Use the switch (Enabled) on the alert row. Members without configuration rights see an On or Off pill instead.
Edit or delete an alert
Section titled “Edit or delete an alert”-
Click the pencil (Edit) to open Edit goal alert, change the fields and click Save (Alert saved).
-
If you added a Webhook URL to an alert that had none, the Webhook signing secret dialog opens with the new secret (“Use it to verify the Amable-Signature header of every delivery.”). Copy it now: it is not shown again. Click Done. In every other case the dialog simply closes.
-
Click the trash icon (Delete) and confirm Delete the alert “{name}”? to remove it (Alert deleted).
Get a new signing secret
Section titled “Get a new signing secret”The secret of an existing webhook cannot be shown again, but you can replace it at any time.
-
Click the pencil (Edit) on an alert that has a webhook (the Webhook pill). Under Webhook URL the dialog reads “The secret is shown only once. Lost it? Issue a new one: the old one stops working at once.”
-
Click New secret and confirm “Issue a new webhook secret?” (“The current secret stops working at once: update the receiver with the new one. Unsaved changes in this form are discarded.”) with New secret, or click Cancel to keep the current secret.
-
The Webhook signing secret dialog shows the new secret. Copy it, update your endpoint and click Done.
The old secret stops verifying immediately, so deliveries sent before you update your endpoint fail its signature check. Unsaved changes in the edit form are discarded when the secret dialog opens; edit the alert again to change other fields. The button appears only when the saved alert already has a webhook URL. Each rotation is recorded in the audit log as analytics.alert_secret_rotated.
Via the API: POST /analytics/alerts/{id}/webhook-secret?site_id=<site id> (permission analytics:configure) answers with the alert and its new webhook_secret. It returns 404 when the alert does not exist or has no webhook URL.
Verify a webhook signature
Section titled “Verify a webhook signature”The header has the form Amable-Signature: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256, keyed with the signing secret, of the string <t>.<raw body>.
import { createHmac, timingSafeEqual } from 'node:crypto';
function verify(rawBody, header, secret) { const parts = Object.fromEntries(header.split(',').map((p) => p.split('='))); const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex'); const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300; return fresh && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));}Always verify against the raw request body, before parsing the JSON. The same scheme is used by every outgoing webhook of amabledata; see Webhooks.
Reference
Section titled “Reference”Alert fields
Section titled “Alert fields”| Field | Type | Required | Limits / default |
|---|---|---|---|
| Name | Text | Yes | 1–100 characters |
| Goal | Goal name | Yes | a-z, 0-9, _, 1–64 characters, stored lower case |
| Email recipients | List of emails | One of recipients or webhook | Up to 10, each up to 320 characters, workspace members only |
| Webhook URL | URL | One of recipients or webhook | https:// only, up to 2,048 characters |
| Enabled | Switch | — | On |
Alert list
Section titled “Alert list”| Item | Content |
|---|---|
| Name and goal | The alert name and the watched goal. |
| Webhook pill | The alert has a webhook URL. |
| Meta line | {emails} email(s) · last triggered {last} · {deliveries} deliveries in 24 h (never before the first delivery). Deliveries count emails and webhook calls, successful or not. |
| Enabled switch / On / Off | Status. |
| Test, Edit, Delete | Actions (configuration permission only). |
Empty state: No alerts yet.
Webhook payload
Section titled “Webhook payload”{ "type": "analytics.goal_alert", "alert_id": "<alert id>", "site_id": "st_xxxxxxxxxxxxxxxxxxxx", "goal": "demo_request", "count": 3, "first_at": "2026-10-18T09:12:44.120Z", "last_at": "2026-10-18T09:13:02.871Z", "visitor_ids": ["7d0c…", "a91e…"], "test": false}| Field | Meaning |
|---|---|
type |
Always analytics.goal_alert. |
alert_id, site_id |
Alert and site. |
goal |
Goal name. |
count |
Completions grouped in this delivery (0 for a test). |
first_at, last_at |
ISO times of the first and last grouped completion. |
visitor_ids |
Distinct visitors of the grouped completions, at most 50. |
test |
true for a test delivery. |
Limits and permissions
Section titled “Limits and permissions”| Action | Permission | Default roles |
|---|---|---|
| See the alerts | analytics:read |
Owner, Admin, Marketer, Analyst, Viewer |
| Create, edit, enable/disable, test, delete, issue a new webhook secret | analytics:configure |
Owner, Admin, Marketer |
Limits: one delivery per alert per minute, 10 email recipients, 50 visitor ids per payload. Delivery records are kept 30 days.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| Saving fails with “not a member of this workspace: …” | A recipient is not a member | Invite them to the workspace or remove the address. |
| Save stays disabled | No recipient and no webhook, an invalid email, more than 10 recipients, a goal with invalid characters, or a URL not starting with https:// |
Fix the highlighted field. |
| No notification after a goal | The goal name differs (case, spelling), the alert is disabled, or the synchronisation has not run yet | Check the goal in Conversions › Goal on the dashboard; wait a few minutes. |
| Several completions arrive in one email | Completions are grouped, at most one delivery per minute | Expected. |
| Webhook signature does not match | Wrong secret, or the body was parsed and re-serialised before verifying | Use the secret shown when the webhook URL was added, and the raw body. |
| You lost the signing secret | It is shown only once | Edit the alert and click New secret, then copy the new secret from the dialog (see Get a new signing secret). |
| New secret is missing in Edit goal alert | The saved alert has no webhook URL | Enter a Webhook URL and click Save: the first secret is shown then. |
| Webhook calls missing while your server was down | Deliveries are not retried | Make the endpoint highly available, or reconcile from your own data. |

