Skip to content
Back to skills

Measuring Email Performance

ASecurity

Reports how a PostHog workflow email performs, read-only over MCP: sends, deliveries, opens, clicks, bounces and spam complaints per email step, version comparisons, clicked links, product outcomes after the send, and one person's email history. Use when asked how an email, campaign, broadcast or workflow step is doing, for its open, click or bounce rate, whether a change or a newer version did better, which links get clicked, whether recipients converted or went on to use the product, or whi...

  • 81 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 29, 2026
content-marketinggosqlsecurityperformance

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add PostHog/skills --skill measuring-email-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Measuring Email Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Measuring Email Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/posthog-measuring-email-performance-skills/badge)](https://www.skillsdirectory.com/skills/posthog-measuring-email-performance-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: measuring-email-performance
description: "Reports how a PostHog workflow email performs, read-only over MCP: sends, deliveries, opens, clicks, bounces and spam complaints per email step, version comparisons, clicked links, product outcomes after the send, and one person's email history. Use when asked how an email, campaign, broadcast or workflow step is doing, for its open, click or bounce rate, whether a change or a newer version did better, which links get clicked, whether recipients converted or went on to use the product, or which emails a person got."
---

# Measuring email performance

Every number in an email report has a **unit**, a **denominator** and a **window**, and the user sees all three.
Most wrong email reports get one of them wrong without noticing: opens divided by every send, events reported as people, a window that closed before the opens arrived.
This skill reads and reports, and it changes nothing.
To edit an email or a workflow, use the `building-workflows` and `designing-email-templates` skills.

## Ground rules

- **Two sources, one per table.** `posthog:workflows-stats`, `posthog:workflows-version-stats` and the counter recipes (**Run counters**, **Clicked links**) read the workflow's own counters. The event recipes read the captured `$workflows_email_*` events. The two sources bucket and keep data differently, so their totals need not match. Report one source per table and name it. Before you explain a difference, compare the same metric, step and window in both.
  A send to a person without a distinct ID records a counter but no event, so the events can sit below the counters.
- **Period ratios, not rates per message.** Opens and clicks repeat, and one person can get the same step many times. Report event counts as "opens" and distinct people as "openers". A callback in the window can belong to a send before it. So opens over tracked sends is a **period occurrence ratio**, and openers over people sent tracked email is a **period person ratio**. Name every open, click, bounce, complaint and unsubscribe ratio in the report as one of the two, never as the chance that one message was opened or as the share of one group of recipients. The skill reports a share of recipients only for a product outcome (see [Product outcome](#product-outcome)).
  Mail security scanners also open and click. When a step shows more clickers than openers, say that scanners may inflate its clicks.
- **Tracked sends are the denominator for opens and clicks.** A send with tracking off can never record an open or a click. Divide opens and clicks by `email_sent - email_untracked` (counters) or `tracked_sent` (events). Divide bounces, spam complaints and unsubscribes by every send. Show sent, untracked and tracked sends, and the tracking coverage (tracked / sent), next to every open and click ratio. When coverage is below 100%, say that recipients with tracking on may not behave like the rest.
  A tracked send can still have click tracking off: a transactional send can turn clicks off for itself, any email step with `config.click_tracking_enabled` set to `false` sends with clicks off by default (unless a code send overrides it via `tracking`), and a sensitive step (`config.sensitive` in `posthog:workflows-get`) has click tracking off by default unless `config.click_tracking_enabled` is true or a code send opts in via `tracking`. When click tracking is on for a sensitive send, its clicks keep only the site address of the link. From 2026-10-30 00:25 UTC to 2026-11-23 09:40 UTC, sensitive sends had clicks off by default; from 2026-11-23 09:40 UTC until the default-off change deploys in that region, they tracked clicks by default; after that deploy, clicks default off again unless opted in. When a sensitive step's window overlaps a change in click default or coverage is mixed, don't split the window at its edges: counters merge by hour, and a click counts when it happens, not when its email was sent. Report the clicks it recorded as recorded clicks with coverage unknown, write "no clicks recorded, coverage unknown" instead of zero, give no click ratio for that step and window, and name the span as a gap in click coverage. When a step sent with clicks off shows no clicks, report its clicks as not measured, never as zero. Report clicks it did record as they are.
  In the counters, `email_bounced` already includes `email_bounced_hard`, `email_bounced_transient` and `email_bounced_undetermined`. Report hard bounces from `email_bounced_hard`, and report `email_bounced` as the total of all bounces.
- **Closed windows only.** Read whole UTC days that have ended, written as ISO timestamps (`after=2026-10-12T00:00:00Z`, `before=2026-10-18T23:59:59.999999Z`). The stats tools include `before` itself and keep microseconds, so pass the last microsecond of the window. A relative `after=-7d` starts mid-day in the project's timezone. Opens and bounces arrive hours to days after the send, so the last day of any window understates every ratio, and the first day counts opens of sends made before it. Judge a version or a batch only once it is two days old.
- **Daily buckets.** Read the stats tools with `interval=day`, and add up every bucket returned for the window total. Weekly buckets lost counts in a live check. The tools label their day buckets in the project's timezone, so a UTC window can come back with a shifted or extra label. `posthog:execute-sql` also prints timestamps in the project's timezone. Inside the dates the series covers, a metric missing from a stats series had a count of zero.
- **A sample floor.** Below about 20 tracked sends, a ratio is noise. Report the counts and say there is not enough data yet.
- **One step at a time.** Read each email step with its action id: `instance_id` in the stats tools, `{step_id}` in the recipes. Without it, every step of the workflow shares one denominator. The `conversion` counter belongs to the whole workflow, and its `instance_id` is the workflow id. Read it without `instance_id` in the stats tools. **Run counters** includes it. It can also return `conversion_by_start`: the same conversions, filed under the UTC hour the run started, recorded only for runs that started from 2026-11-13. Report `conversion` for a window that starts earlier, and never add the two.
- **Broadcasts and batch runs key their counters on the run.** `posthog:workflows-stats` returns zeros for such a workflow, even when its runs sent. List its runs and their start times with `posthog:workflows-list-batch-jobs`, and read them with the **Run counters** recipe, one row per run and metric. A run's counters hold every send and callback of that run.
  For people per run, read `email_opened_by_person` and `email_clicked_by_person` from the same rows. They are approximate counts of people, never opens or clicks, and the **Run counters** notes give their limits. They exist from 2026-11-05.
  The events carry no run id, so the event recipes cannot isolate one run: their window holds every run in it. Say so beside their people counts.
- **Versioned counters have start dates.** `posthog:workflows-version-stats` and the **Clicked links** recipe read the versioned counters. They hold sends and `email_untracked` from 2026-08-06, and deliveries, opens, clicks, bounces and complaints from 2026-09-01. Before those dates the versioned series is partial, even when it shows numbers. Deliveries, opens, clicks, bounces and complaints whose message lost its version are missing from it, so its ratios read slightly low. Start every versioned read, a version comparison included, on or after the start date of each metric it reports. When the window must start earlier, report those metrics as unknown.
- **Counters keep 90 days.** The counters behind the stats tools and the counter recipes expire after 90 days. For a window that starts earlier, report the expired counters as unavailable, never as zero, and read the events instead.
- **Aggregates by default.** Leave email addresses, full link URLs and person UUIDs out of reports. Click events hold each link's full URL, tokens included, so read links only through the **Clicked links** recipe. Name a person by the identifier the user gave you.
- **Unsubscribes count from 2026-10-27.** The `email_unsubscribed` counter counts each opt-out against the step whose email link it came through. Read it like the other counters: `posthog:workflows-stats` for most workflows, and **Run counters** for a broadcast run. It counts a one-click unsubscribe by someone not yet fully opted out, and a preferences save that newly opts out of a category. Links in emails sent before 2026-10-27 carry no step, so a window that starts earlier undercounts. The versioned counters do not hold it.
  The `$workflows_email_unsubscribed` event uses the email address as its distinct ID and fires once for each category a person leaves, so count unsubscribes per step from the counter. Links in emails sent from 2026-11-10 also put `$workflow_id`, `$workflow_action_id` and `$workflow_version` on the event. For those sends only, count distinct `properties.$email` per version on the event to compare versions.
- **Attempts outside `email_sent`.** The counters also record email that did not go out: `email_failed`, `email_suppressed`, `email_opted_out`, `email_missing_recipient`, `email_bounce_prevented`, `email_paused`, `email_suspended`, and `message_frequency_capped` for a recipient at the frequency cap. `message_frequency_cap_held` counts sends held for a later slot, which may still go out. Sends from the PostHog test sender record as `email_sandbox_sent`, `email_sandbox_blocked` and `email_sandbox_failed` instead. None of them is a send or a denominator. Report them as counts beside `email_sent`.
- **Email events land on the person who triggered the run.** They take the distinct ID of the trigger event, not of the address the step sent to. When a step emails someone else, such as an account owner or a fixed address, its people counts, outcomes and history describe the people who triggered it. Check the step's recipient in `posthog:workflows-get`, and say so in the report.
- **Spam complaints are a floor.** `email_blocked` and `$workflows_email_blocked` count the spam complaints that mailbox providers report back. Gmail does not report them, so a zero does not prove that no one complained.

## Steps

### 1. Pin the email

Find the workflow with `posthog:workflows-list` (`search=<name>`) and read it with `posthog:workflows-get`.
From the graph, note each email step's action id and name, the trigger, and whether the workflow sends to a person once or many times.
Email content can cut off the `posthog:workflows-get` response before the step names. Then list the email steps with the **Email steps** recipe in [references/recipes.md](references/recipes.md).
A broadcast or batch workflow sends in runs. Take each run's start time from `posthog:workflows-list-batch-jobs`, and judge a run only through a closed day at least two days after its start.

Done when you hold the workflow id, the step ids and names the question is about, and a closed window you have told the user.

### 2. Check the data exists

Read the counters for the window, with `breakdown_by=name`, `interval=day` and `instance_id=<step id>`.
For most workflows, read `posthog:workflows-stats`.
For a broadcast or batch workflow, run the **Run counters** recipe for the run.
Then run the **Step engagement** recipe.

- When the counters show sends and the recipe shows no `sent` for the step, the sent events were not captured for this step and window. Take sends and every ratio from the counters, and skip what needs the captured sends: `tracked_sent`, `people_sent`, `people_tracked` and the product outcome. Opens, clicks and their people still come from the events when the recipe shows them, because each callback checks the capture setting when it arrives. Do not conclude that the project has event capture off: the setting can have changed since these sends.
- When the recipe's `sent` sits well below the counters' `email_sent` for the step, the events cover only part of the sends: capture can have been off for part of the window, or sends had no distinct ID. Then the events can miss some people's first send, so skip the product outcome, and say that `people_sent` and `people_tracked` cover only the captured sends. Opens, clicks and their people are captured when each callback arrives, so they can include people whose sends were not captured.
- When neither the counters nor the recipe show sends in the window, the step did not send. Report that, never a 0% ratio, with the reason the counters in "Attempts outside `email_sent`" give.

Done when you know which sources the rest of the report can use.

### 3. Answer the question

Answer only what the user asked.

| Question                                    | Read                                                                                                                                                                        |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| How is this email doing, and the trend      | `posthog:workflows-stats` by day for the step, or **Run counters** for a broadcast run, and the **Step engagement** recipe for people counts                                |
| Did the newer version do better             | [Comparing versions](#comparing-versions)                                                                                                                                   |
| Which links get clicked                     | **Clicked links** recipe                                                                                                                                                    |
| Did recipients do something in the product  | [Product outcome](#product-outcome)                                                                                                                                         |
| Which emails did this person get, what next | Find the person with `posthog:persons-list`, then the **One person's email history** recipe; `posthog:workflows-list-invocations` with their `distinct_id` lists their runs |

The history recipe takes an outcome event. Check it with `posthog:read-data-schema`, or drop the outcome condition when the user asked for none. Name each workflow in the history from `posthog:workflows-get`.

Done when every number you report has its unit, denominator and window, and every question is either answered or marked as one this data cannot answer.

#### Comparing versions

List the versions with `posthog:workflows-list-versions` and note when each went live. A workflow that was never republished has one version: the live `version` from `posthog:workflows-get`.
Read each version with `posthog:workflows-version-stats` (`version=<n>`, `instance_id=<step id>`, `breakdown_by=name`, `interval=day`) to the end of the closed window.
Start each version's read at 00:00 UTC on the day it went live, or on the start date of the metrics you report, whichever is later.
When the workflow is older than version history, its oldest listed version has no author (`created_by` is empty). Version history stored that version at the first edit, so its time is when the next version replaced it, not when it went live. Start that version's read on the start date of the metrics you report.
A run that started on the older version and sends after the newer one went live counts its email under the newer version. When the workflow has delay steps, say that the newer version's first days include people who entered on the older one.
Opens and clicks keep the version that sent the email, so a replaced version still collects its late callbacks.
Compare versions with each other only. The unversioned `posthog:workflows-stats` read keys batch and broadcast runs on the run, so it is not the sum of the versions.

The **Engagement by version** recipe adds openers and clickers per version, as counts.

Versions live for different periods, reach different audiences and have had different time to collect callbacks. Report each version's own window next to its ratios, and call the comparison a comparison of period activity. A before-and-after comparison describes a difference. It does not prove that the change caused it, because the audience, the season and the sending volume change too. Say so in the report.
Read `posthog:workflows-list-proposals` and name the versions that came from an applied suggestion.

#### Product outcome

First agree with the user on the outcome: one product event that shows the email worked, and how many days after the send it can happen.
Check that the event exists with `posthog:read-data-schema` before you query it.
If the workflow has a conversion goal, its `conversion` counter (read without `instance_id`) and the `$workflows_conversion` event (with `$workflow_version`) already measure it.

Run the **Product outcome after the first send** recipe.
Report the share of recipients who reached the outcome, `reached_outcome / recipients`.
Name the send window and the follow-up horizon (`{outcome_days}`) in the answer. The recipe tells you how to choose a send window whose outcomes are final.
The share is an association. Without a holdout, it also counts people who would have done it anyway, so call it the share that reached the outcome, not lift.

## What this data cannot answer today

State each of these plainly, report the nearest measurable thing instead, and give no estimate:

- **Unsubscribes before 2026-10-27.** Opt-outs from earlier links carry no workflow or step. Report the distinct people with `$workflows_email_unsubscribed` in the window as "unsubscribes from any email".
- **The replay of the session a click started.** Email events carry no session. `posthog:query-session-recordings-list` for the person, from the click onwards, gives only candidates: recordings that start after the click. An empty list does not mean the person did nothing.
- **Revenue from an email.** No join from an email to a payment exists. Report a product outcome instead.
- **Which send a callback belongs to, for sends before 2026-11-10.** Those sent events carry no message id. For a person who got the step several times, an open cannot be tied to one send. From 2026-11-10, the sent event and its callbacks share `$email_message_id`.

## Report

Lead with the answer in one sentence, then a table per source:

- The workflow and step names, the window in UTC, and the source of each table.
- Counts with their units, and each ratio as `numerator / denominator`. Name open, click, bounce, complaint and unsubscribe ratios as period occurrence or period person ratios, and an outcome as a share of recipients.
- Sent, untracked and tracked sends, and the tracking coverage, beside every open and click ratio.
- The caveats that apply to these numbers, and the questions above that the data cannot answer.

Done when a reader could recompute every ratio from the table without asking you anything.

Files in this skill

  • SKILL.md18.8 KB
  • references/recipes.md13.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.