Skip to content

Alerts

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).

  1. 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.
  2. A background synchronisation picks up the queue every few minutes (and right after some changes in the app).
  3. 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.
  4. 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.
  5. 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.

  • 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.
  • 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 POST with a JSON body, Content-Type: application/json, User-Agent: amabledata-webhooks/1 and an Amable-Signature header.
  • A delivery succeeds when your endpoint answers with a 2xx status.
  1. Open Analytics settings › Alerts for the right site and click New alert.

  2. 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.
  3. Click Save. The toast Alert created confirms.

  4. 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.

  1. In the list, click Test on the alert. The toast Test delivery queued confirms.

  2. Within a few minutes, the recipients receive an email with the subject [amabledata] Test: <alert name> and the webhook receives a payload with "test": true and "count": 0.

A test is delivered even when the alert is disabled and is not held back by the one-per-minute limit.

Use the switch (Enabled) on the alert row. Members without configuration rights see an On or Off pill instead.

  1. Click the pencil (Edit) to open Edit goal alert, change the fields and click Save (Alert saved).

  2. 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.

  3. Click the trash icon (Delete) and confirm Delete the alert “{name}”? to remove it (Alert deleted).

The secret of an existing webhook cannot be shown again, but you can replace it at any time.

  1. 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.”

  2. 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.

  3. 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.

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.

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
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.

{
"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.
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.

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.