Skip to content
Docs
On this page Event types and their sources 1/7
Internal — not published

Every number on Reports, on Home and in a campaign report is read from one log of events. An event records the workspace, who it is about (a person or a channel identity), the campaign, run, workflow and step it came from when there is one, the channel, its type, a few details that depend on the type, and when it happened. An event can carry its own id, and then it is stored once however many times it is delivered.

A tracked email reaches Reports Step 1 of 7

A campaign's email step adds an open pixel, rewrites links and adds an unsubscribe footer, as the step is set up. Each carries a signed token. Inbox, agent and test emails are sent as written.

Event types and their sources

EventComes from
SendEvery send that passes analytics context: campaign steps, agent replies and Inbox sends
Open, click, unsubscribeThe tracking links
ReplyReply attribution, after an inbound message
AcceptA LinkedIn invitation from a campaign step that became a connection
Delivered, bounce, spam complaintAmazon SES delivery notices
Conversion, knowledge query, document viewNothing writes these today; the queries that read them return zero

Tracking tokens

A tracking token names the person’s workflow in the campaign run, the send step, the channel identity the email went to and the send time. A click token also carries the link’s target. The token is signed with a server secret, and a token older than 180 days is refused. The click target sits inside the signed token, so the click link cannot be used to redirect anywhere else.

The email step adds:

  • the open pixel, when it tracks opens or waits for an open;
  • rewritten links, when it tracks links or waits for a click;
  • the unsubscribe footer, when it is switched on.

No list-unsubscribe header is set on outgoing mail.

LinkBehaviour
Open pixelReturns the image for any valid token. Records an open unless the hit looks like a scanner: no user agent, a known scanner user agent (Outlook safe links, Barracuda, Mimecast, Proofpoint, link previews, an outdated Chrome or Edge), a hit within 5 seconds of the send, or an image proxy (Google, Yahoo, Apple Mail) on a token without a send time.
ClickRedirects to the target in the token and records a click unless the user agent is missing or a known scanner.
Unsubscribe pageShows a page with a confirm button and is never cached, so a scanner that follows the link opts nobody out.
Unsubscribe confirmOpts the email identity out first, then records the unsubscribe.

A token that fails its signature or age check answers 500 internal_error, because the check raises an unexpected error instead of a domain error.

Reply attribution

When an inbound message is recorded, a reply event reaches analytics, debounced 2 seconds per person. Analytics looks for the newest campaign send on the same channel to the same person in the last 30 days, among their 10 most recent sends, that went out from the account the reply reached. On a match it records a reply with that step’s campaign context, posts the Slack campaign reply notice on the first reply, and wakes a campaign step waiting for a reply. A chat message with no campaign send before it records nothing. An email with no match still records a reply without a campaign, which Home counts.

SES delivery notices

Amazon SES reports deliveries, bounces and complaints through signed AWS notices. The backend accepts only signing certificates served from AWS’s own notification host, keeps each certificate in memory, and checks the signature with the algorithm the notice names. It confirms a new subscription by fetching the signed address AWS sends, and handles bounce, complaint and delivery notices in both formats AWS uses.

Each notice is matched to its send by the SES message id, among the 20 newest sends to that address in the last 14 days. A notice with a message id is stored once per kind, message and address, so a repeated notice does not count twice. A notice that matches no send is still recorded, without a campaign, in a workspace that has the address. A permanent bounce or a complaint opts the address out. SES sends these notices only for mail it delivered, so they exist only for email accounts that send through the SES SMTP server.

Daily rollup

At 01:00 server time the rollup writes, for yesterday and today, the count and the number of distinct subjects per workspace, UTC day, type, channel and campaign. It can be run by hand to backfill a range.

Some queries take whole UTC days before today from the rollup and the rest from raw events. A window that does not start at UTC midnight, such as the user’s local day, is answered from raw events only. The summary and the time series always read raw events.

Reports

Reports asks five questions. The first four take a date range with a comparison window right before it, optionally limited to an audience and shifted to the user’s time zone:

QueryAnswers
SummaryCounts by type, their change against the comparison window, distinct people per channel, and the open, click, reply, bounce and unsubscribe rates
Time seriesCounts per day, week or month for one type
WidgetsOne chart each: a stat, bar, pie, funnel or table
Campaign summaryThe counts for one campaign, plus people sent to
AudiencesThe audiences for the filter

The backend offers 25 widgets, and Reports uses seven: top campaigns, devices, open hours, bounce reasons, mail providers, where people came from, and new people, which Home’s figures also use.

Summary counts are event counts: one person opening an email five times adds five opens. The rates count each person once per channel and divide by the people that channel sent to. The open and click rates divide by delivered people when SES reports deliveries, and by sent people otherwise.

The audience filter limits every event count to the campaigns that target that audience. Events from other campaigns, or from no campaign, are left out, and an audience no campaign targets shows zero events. Figures about people themselves, such as new people and where people came from, count the audience’s members instead.

The campaign report reads the campaign summary and a breakdown per run. A time series per campaign exists and the app does not call it.

Docs
EN VI