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

# Analytics

> View analytics dashboards, message stats, and campaign performance

Access your Zeplo analytics from the terminal. These commands provide overviews of key metrics, message delivery statistics, and campaign performance without leaving the CLI.

## zeplo analytics dashboard

Display an analytics overview covering your account's key metrics including total messages sent, delivery rates, active contacts, and engagement trends. By default, the dashboard shows the last 30 days of data.

```bash theme={null}
zeplo analytics dashboard
```

### Options

| Flag | Description |
| - | - |
| `--period <period>` | The time window for the dashboard data. Accepts `7d` (7 days), `30d` (30 days), or `90d` (90 days). Defaults to `30d`. |
| `--json` | Output the dashboard data as JSON instead of a formatted table. |

### Examples

```bash theme={null}
# Show dashboard for the last 30 days (default)
zeplo analytics dashboard

# Show the last 7 days of analytics
zeplo analytics dashboard --period 7d

# Show the last 90 days of analytics
zeplo analytics dashboard --period 90d

# Export dashboard data as JSON
zeplo analytics dashboard --period 30d --json
```

## zeplo analytics messages

Display message delivery analytics including sent counts, open rates, click-through rates, and bounce statistics. Useful for monitoring the health of your messaging pipeline.

```bash theme={null}
zeplo analytics messages
```

### Options

| Flag | Description |
| - | - |
| `--period <period>` | The time window for message analytics. Accepts `7d`, `30d`, or `90d`. Defaults to `30d`. |
| `--channel <channel>` | Filter analytics to a specific channel (e.g., `email`, `sms`, `push`). |
| `--json` | Output message analytics as JSON. |

### Examples

```bash theme={null}
# Show message analytics for the last 30 days
zeplo analytics messages

# Filter to email channel for the last 7 days
zeplo analytics messages --channel email --period 7d

# Export message analytics as JSON
zeplo analytics messages --json
```

## zeplo analytics campaigns

Display campaign performance analytics including delivery totals, open rates, click rates, and conversion metrics for each campaign.

```bash theme={null}
zeplo analytics campaigns
```

### Options

| Flag | Description |
| - | - |
| `--period <period>` | The time window for campaign analytics. Accepts `7d`, `30d`, or `90d`. Defaults to `30d`. |
| `--status <status>` | Filter campaigns by status. Accepts `draft`, `sending`, `sent`, or `scheduled`. |
| `--json` | Output campaign analytics as JSON. |

### Examples

```bash theme={null}
# Show campaign analytics for the last 30 days
zeplo analytics campaigns

# Show only sent campaigns
zeplo analytics campaigns --status sent

# Show campaign analytics for the last 90 days as JSON
zeplo analytics campaigns --period 90d --json
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.