# Discord alerts for payments, signups and traffic spikes

> Post every payment, new customer and goal to a Discord channel with the source, landing page and country that brought it, plus traffic spikes and reports.

Source: https://metricraven.com/docs/discord-alerts  
Markdown: https://metricraven.com/docs/discord-alerts.md  
Section: Features

MetricRaven posts to a Discord channel through a channel webhook: each payment, new customer or goal you pick, with where it came from, and traffic spikes and reports if you want them. It’s one of the [alert channels](https://metricraven.com/docs/alert-channels).

## Set it up

1. **Create a webhook in Discord**

   Open the channel’s **Edit Channel → Integrations → Webhooks** (you need Manage Webhooks), choose **New Webhook**, name it MetricRaven and **Copy Webhook URL**. It starts with `https://discord.com/api/webhooks/`.

2. **Add it to MetricRaven**

   In Settings → Notifications under **Alert channels** (or Settings → Integrations → **Discord**), choose **Add channel**, pick **Discord** and paste the URL. Admins and the owner can do this.

3. **Choose what posts there**

   Tick **Traffic spikes**, **Weekly report** or **Monthly report** on the channel, and tick it under **And post to** on each [conversion alert](https://metricraven.com/docs/goal-alerts) that should post there.

> **Verify it works**
>
> **Send test** posts “Test from MetricRaven” to the channel and says “Test sent”, or shows Discord’s error.

## What a message looks like

A one-line summary, then an embed with the details as fields, a link to the visitor’s journey in the title, and the time. Payments are green, goals blue, spikes amber. Messages never mention @everyone, @here or anyone else, whatever a goal or source is called.

```text title="New customer alert in Discord"
New customer: $99 on acme.com
┃ New customer: $99 on acme.com          (links to the visitor journey)
┃ Amount  $99        Plan  Pro            Customer  Ana (ana@example.com)
┃ Source  Reddit (Social)                 Landing page  /blog/launch
┃ Location  Berlin, Germany               Device  Mobile · Safari · iOS
┃ MetricRaven · acme.com · Today at 10:04
```

## Troubleshooting

| You see | What to do |
| --- | --- |
| Paste a Discord webhook URL | Only discord.com (or discordapp.com) /api/webhooks/… URLs are accepted. Bot tokens and invite links won’t work. |
| Discord says this webhook no longer exists (404) | The webhook or channel was deleted. Create a new webhook and paste it with Edit. |
| Discord rate-limited the request (429) | Discord allows about 30 messages a minute per webhook. Use separate webhooks for very busy alerts, or let busy alerts batch into summaries. |
| Nothing arrives for a conversion | Check the alert is on and ticks this channel under And post to, and that Recent alert emails lists the conversion. |
