Send alerts to Slack or a webhook
KiteTrack checks your tracking every 30 minutes and emails you when something breaks: purchases dropping, no events arriving, a platform refusing events, your tracking domain down. You can also get every alert in a Slack channel, or send it to your own system (a webhook), so your team or your tools see it at once.
Alerts still go to your email as well. Slack and the webhook are extra.
Before you start:
- To use Slack, you need permission to add apps to your Slack workspace.
- To use a webhook, you need an https address that accepts a POST request, such as an endpoint in your own app, Zapier, Make or n8n.
1. Open Alerts
In your KiteTrack dashboard, open Alerts. Scroll to Send alerts to. Your email is listed first; Slack and Webhook are below it.
2. Send alerts to Slack
- In Slack, open the channel that should get alerts, for example
#tracking. - Add the Incoming Webhooks app to it. In Slack, go to Apps, search for Incoming Webhooks, choose Add to Slack, and pick the channel.
- Slack shows a Webhook URL. It starts with
https://hooks.slack.com/services/. Copy it. - In KiteTrack, paste it into Slack and press Save.
- Press Send a test. A message saying alerts will arrive here appears in the channel within a few seconds, and KiteTrack shows Test sent.
Keep the Slack address private: anyone who has it can post to that channel. KiteTrack stores it encrypted and only ever shows its last four characters.
To stop Slack alerts, press Turn off. To use another channel, paste the new address and press Save.
3. Send alerts to your own system (webhook)
- In KiteTrack, paste your endpoint's address into Webhook. It must start with
https://and be reachable from the internet. - Press Save. KiteTrack creates a signing secret for you and shows it under the field. Press Show to see it, and copy it into your system.
- Press Send a test. Your endpoint receives a test request. KiteTrack shows Test sent when your endpoint answered with a 2xx status, or the status it answered with.
What KiteTrack sends
When an alert opens or resolves, KiteTrack sends one POST with a JSON body:
{
"event": "alert.opened",
"sent_at": "2026-11-17T10:30:00+00:00",
"store": { "name": "Your Store", "website": "https://yourstore.com" },
"alert": {
"id": 123,
"rule": "purchase_drop",
"severity": "warn",
"title": "Purchases are down 62% today",
"text": "By this time last week your server had recorded 40 purchases, today it has 15. …",
"opened_at": "2026-11-17T10:30:00+00:00",
"resolved_at": null,
"url": "https://kitetrack.io/alerts"
}
}
eventisalert.opened,alert.resolvedor, for the test button,test.severityiswarn,bador, when resolved,ok.rulenames the check. The rules arepurchase_drop,no_events,destination_failures,error_rate,domain,data_quality,duplicate_ordersandmissing_orders. You can switch each one on or off in Alert rules on the same page.
Every request also carries these headers:
| Header | Value |
|---|---|
Content-Type |
application/json |
X-KiteTrack-Event |
the same value as event |
X-KiteTrack-Signature |
sha256= followed by the HMAC-SHA256 of the raw body, keyed with your signing secret |
Check the signature
Check the signature, so you only trust requests that really come from KiteTrack. Compute the HMAC-SHA256 of the raw request body, exactly the bytes you received, with your signing secret. Then compare it with the header in constant time.
PHP:
$body = file_get_contents('php://input');
$expected = 'sha256='.hash_hmac('sha256', $body, getenv('KITETRACK_SIGNING_SECRET'));
if (! hash_equals($expected, $_SERVER['HTTP_X_KITETRACK_SIGNATURE'] ?? '')) {
http_response_code(401);
exit;
}
$alert = json_decode($body, true);
Node.js (Express, with the raw body kept):
const crypto = require('crypto');
app.post('/kitetrack-alerts', express.raw({ type: 'application/json' }), (req, res) => {
const expected = 'sha256=' + crypto.createHmac('sha256', process.env.KITETRACK_SIGNING_SECRET).update(req.body).digest('hex');
const given = req.get('X-KiteTrack-Signature') || '';
if (given.length !== expected.length || !crypto.timingSafeEqual(Buffer.from(given), Buffer.from(expected))) {
return res.sendStatus(401);
}
const alert = JSON.parse(req.body);
res.sendStatus(200);
});
Answer with any 2xx status within 10 seconds. KiteTrack does not follow redirects and does not retry a failed request. The alert is still in your email and on the Alerts page.
4. What success looks like
- Send a test shows Test sent for each channel you set.
- The next time an alert opens, the Slack message or the webhook request arrives a few seconds after the email. It arrives again when the alert resolves.
If something does not arrive
- "Paste the Incoming Webhook address from Slack": the address is not a Slack incoming webhook. Copy the Webhook URL from the Incoming Webhooks app, not the channel's link.
- "That address is not a public website we can reach": the webhook points to a private network or does not exist. Use a public https address.
- "The address answered with an error (404)" or another number: your endpoint is reachable but refused the request. Check its path, and that it accepts
POSTwith a JSON body. - Signature does not match: compute it over the raw body before any JSON parsing, and check that you copied the whole secret.
- Turned off a channel by mistake? Paste the address again and press Save. A webhook keeps its signing secret while its address is saved; turning it off and on again creates a new secret.