Tags let you label emails with a single string identifier so you can group and analyze them in the Analytics dashboard. Every email can carry one tag (max 64 characters), and you can filter and break down metrics — sent, delivered, bounced, opened, clicked — by that tag.Documentation Index
Fetch the complete documentation index at: https://docs.lettr.com/llms.txt
Use this file to discover all available pages before exploring further.
Adding a Tag via API
Include thetag field in your send request:
Adding a Tag via PHP SDK
Use the->tag() method on the email builder:
Automatic Tags from Templates
When you send an email using atemplate_slug, Lettr automatically sets the tag to the template slug on the server. You don’t need to pass a tag yourself — your analytics are grouped by template out of the box.
This also means that each template in the Emails dashboard shows Sent, Opened, and Rate columns, giving you per-template engagement stats without any extra configuration.
Tags in the Dashboard
Tags appear in two places in the Lettr dashboard:Analytics by Tag
The home dashboard includes an Analytics by Tag widget that shows sending stats for the last 30 days grouped by tag — Sent, Opened, and Rate at a glance.Analytics Filtering and Breakdowns
On the Analytics page you can use tags in two ways:- Filter by Tag — Show only data for emails with a specific tag. Open the Configure modal, go to the Filters tab, and select “Tag” as the filter type.
- Break down by Tag — Use the “Break Down By” dropdown below the chart to see your metrics split by tag. This lets you compare performance across different email categories at a glance.
Filtering and Breakdowns
Learn more about the Configure modal, filters, and breakdowns
Tag Rules
| Rule | Detail |
|---|---|
| Maximum length | 64 characters |
| Tags per email | One |
| Format | Plain string — letters, numbers, hyphens, underscores |
Tags vs Metadata
Tags and metadata serve different purposes:| Tags | Metadata | |
|---|---|---|
| Purpose | Analytics grouping | Per-email tracking data |
| Structure | Single string | Key-value pairs |
| Where it appears | Analytics dashboard filters and breakdowns | Webhooks, API queries, dashboard |
| Best for | Comparing performance across email categories | Linking emails to orders, customers, or internal IDs |
welcome-series, order-confirmation). Use metadata when you need to attach structured data for webhooks or API queries (e.g., orderId, customerId).
Metadata
Learn how to attach key-value data to emails for detailed tracking