> ## Documentation Index
> Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Install the Courier skill before writing code: `npx skills add trycourier/courier-skills`. It carries the verified SDK shapes and the rules you cannot get wrong.
> Authenticate every request with `Authorization: Bearer <API_KEY>`. A workspace has several environments and each has its own keys, which are plain `pk_` strings with no environment prefix. Start with Test.
> Send with `client.send.message` from the Node SDK (`@trycourier/courier` v7 and later, where the client is the default import). Reference a template by its `nt_` id or its alias.
> A send accepts a bare Elemental element list, but storing content on a template requires the top-level elements wrapped in a channel element.
> To translate a template, write one locale at a time with `PUT /notifications/{id}/locales/{localeId}`, which merges into the existing translations. `PUT /notifications/{id}/content` and `PUT /notifications/{id}/elements/{elementId}` overwrite translations along with the content, so send each element's `id` and `locales` back, and first remove every `checksum` and any `locales` key that starts with an underscore.
> Templates and journeys can be built in the Courier app or created through the API. Either way they live in the workspace and are referenced by ID when you send.
> The hosted MCP server is https://mcp.courier.com. For a briefing on what Courier is and when to use it, read https://www.courier.com/llms.txt.
> Prefer the Guides tab for how-do-I questions and the Docs tab for how-does-it-behave questions. The API reference lives under /api-reference.

# Template, journey, and broadcast analytics

> See how many messages were sent, delivered, opened, and clicked for each template, journey, and broadcast, and how those rates change over time.

Analytics show how your messages are doing: how many were sent, delivered, opened, and clicked, for each template, journey, and broadcast. To look up a single message, use [Logs](https://www.courier.com/docs/monitor/logs.md).

## What the numbers count

Every analytics view uses the same metrics:

| Metric | What it counts |
| :- | :- |
| **Sent** | Courier handed the message to the provider. |
| **Delivered** | The provider confirmed the message landed. |
| **Opened** | The recipient opened the message, recorded by Courier's tracking pixel. |
| **Clicked** | The recipient clicked a tracked link, recorded by Courier's redirect. |
| **Errors** | A provider attempt failed. A message that failed over to a second provider counts here and still counts as delivered. |
| **Undeliverable** | The provider rejected the message or couldn't deliver it. The message never landed. |

Opened and Clicked only fill in on channels Courier can track, so a `0` in Opened on SMS means "not measured", not "nobody read it". [Tracking](https://www.courier.com/docs/monitor/tracking.md) lists what each channel reports.

### Set up delivery tracking

Delivered comes from your provider, not from Courier. Each provider reports delivery once you set it up, and until then its messages stay at `SENT`. How you set it up depends on the provider:

| Provider reports by | What you do | Providers |
| :- | :- | :- |
| **Webhook** | Paste Courier's webhook URL into the provider's settings. | [SendGrid](https://www.courier.com/docs/integrations/email/sendgrid.md#delivery-tracking), [Amazon SES](https://www.courier.com/docs/integrations/email/aws-ses.md#delivery-tracking), [Mailgun](https://www.courier.com/docs/integrations/email/mailgun.md), [Resend](https://www.courier.com/docs/integrations/email/resend.md), [Sinch Engage](https://www.courier.com/docs/integrations/sms/sinch-engage.md) |
| **Polling** | Turn on delivery tracking in the provider's integration settings in Courier. | SendGrid, Mailgun, [Twilio](https://www.courier.com/docs/integrations/sms/twilio.md), [Postmark](https://www.courier.com/docs/integrations/email/postmark.md), [Mandrill](https://www.courier.com/docs/integrations/email/mandrill.md), [Plivo](https://www.courier.com/docs/integrations/sms/plivo.md) |
| **Your app** | Use a Courier mobile SDK, or `POST` to the `trackingUrl` in the push payload. | [APNs, FCM, Expo, and OneSignal](https://www.courier.com/docs/integrations/push/overview.md#tracking) |

Slack, Microsoft Teams, and other chat providers confirm delivery when they accept the message, so they need no setup. Messages sent after you turn tracking on start filling in the Delivered column. [Message statuses](https://www.courier.com/docs/send/statuses.md#delivery-tracking-is-per-provider) has the full provider list.

## Templates

The [Analytics](https://app.courier.com/analytics) page shows the whole workspace:

* **Send volume**: messages sent over time.
* **Template performance**: sends and error rates for each template.

![The Analytics page, with send volume above the template performance table](https://mintcdn.com/courier-4f1f25dc/A-IH_41Pkuff3UAy/assets/analytics-tab.webp?fit=max\&auto=format\&n=A-IH_41Pkuff3UAy\&q=85\&s=6041f120aac19bd1cd447c0633d1958d)

One dropdown sets the time range for both: Last 7 days, Last 30 days, Last 90 days, or **Custom range**. A custom range reaches back to January 1 of last year, which is as far as the analytics store goes.

Select a template to see its numbers split by channel and provider. Use it to compare channels for one notification, or to spot a provider with an unusually high error rate.

![One template's metrics, split by channel and provider](https://mintcdn.com/courier-4f1f25dc/rYENcCCTyPPrDtw0/assets/template-analytics.webp?fit=max\&auto=format\&n=rYENcCCTyPPrDtw0\&q=85\&s=0e66e41fdb01aabdc4105e1e79657233)

## Journeys

Open a journey and select its **Metrics** tab, next to Editor and Logs. Choose Last 7 days, Last 30 days, or Last 90 days to change the chart and the table together.

![A journey's Metrics tab, with the send volume chart above the template table](https://mintcdn.com/courier-4f1f25dc/66t_J9wvizdshWJp/assets/monitor/journey-metrics.png?fit=max\&auto=format\&n=66t_J9wvizdshWJp\&q=85\&s=8c811404baf087d9ef11953cdaef6aa4)

* **Total sent**: a stacked bar chart with one bar per day and one color per journey template, so you can see which send node carries the volume.
* **Template table**: one row per template in the journey.

| Column | What it shows |
| :- | :- |
| **Template** | The journey template, named as it is on the send node |
| **Type** | The channel: email, SMS, push, and so on |
| **Sent** | Messages sent in the time range |
| **Delivered** | Delivered as a percentage of sent, excluding errors |
| **Opened** | Opened as a percentage of sent |
| **Clicked** | Clicked as a percentage of sent |

A column shows `--` when there isn't enough data yet.

Select a row to open that template's detail panel. It has five charts (total sent, delivery rate, open rate, click rate, and error rate), a table of the same numbers per provider, and its own time range.

Templates removed in a later version of the journey stay in the table with an **Inactive** prefix, so their history doesn't disappear.

For a journey with an A/B test, per-variant results are on the experiment's **Results** tab. See [Journey experiments](https://www.courier.com/docs/journeys/experiments.md).

## Broadcasts

Every sent broadcast has a **Performance** tab.

![A broadcast's Performance tab, with aggregate rates above the per-recipient log](https://mintcdn.com/courier-4f1f25dc/LdpdyPjJHKHJqFY9/assets/broadcast-performance.webp?fit=max\&auto=format\&n=LdpdyPjJHKHJqFY9\&q=85\&s=de242699501487e48013e642be593f69)

The top of the tab summarizes the whole send:

| Metric | What it shows |
| :- | :- |
| **Total sent** | Messages sent |
| **Delivery rate** | The percentage delivered |
| **Open rate** | The percentage opened |
| **Click rate** | The percentage clicked |
| **Error rate** | The percentage that errored |

Below it, the per-recipient log lists every recipient with a timestamp and status. Filter by All, Delivered, Opened, Clicked, or Errors, or search for one recipient. Select **View in logs** on a row to open that message in [Logs](https://www.courier.com/docs/monitor/logs.md).

To send something similar again, open a past broadcast and select **Duplicate broadcast**. Courier copies its content and setup into a new draft.

## Get the numbers by API

The [Metrics API](https://www.courier.com/docs/monitor/template-metrics.md) returns one template's numbers as a time series, split by provider and channel, so you can chart them in your own dashboard or alert on them.

## Limits & behavior

* **Time ranges are in UTC.** "Last 7 days" covers 7 UTC days, which can differ from your local reporting day.
* **Analytics are per environment.** A message sent with a Test key appears only in Test.
* **Messages without a template don't appear** in template analytics. A message sent with inline content has no template to count it under.
* **There's no roll-up by tenant, list, or audience.** Template analytics are per template, and broadcast analytics are per broadcast.
* **Numbers start with the first send.** A draft or scheduled broadcast has no Performance data.

## FAQ

> [accordion] Why is my delivery rate lower than expected?
>
> Delivery rate counts messages a provider confirmed. Most providers need delivery tracking set up first, and some never confirm, so messages sit at `SENT`. [Set up delivery tracking](#set-up-delivery-tracking) for each provider you send with.

> [accordion] Why is my open rate lower or higher than expected?
>
> Open tracking depends on a pixel that some email clients block and some security scanners load automatically. Read open rates as a trend across sends. [Tracking](https://www.courier.com/docs/monitor/tracking.md) covers why.

> [accordion] Why don't my Test messages show up?
>
> Analytics are scoped to the environment of the key that sent the message. Switch the dashboard to the Test environment.

> [accordion] Can I pull these numbers into my own dashboard?
>
> The [Metrics API](https://www.courier.com/docs/monitor/template-metrics.md) returns a template's numbers as a time series. For a workspace-wide view, list your templates and call it for each one.
