Sub topic 4
How an open is detected
This chapter assumes you know what an email service provider (ESP) does, you can read a ratio or percentage, and you have sent a newsletter or campaign. It explains the mechanism behind an "open" and why that mechanism is only a proxy for a person reading your message.
An open is an image request
Email has no built-in "message was read" signal. ESPs infer opens with a tracking pixel. This is a tiny image, usually 1x1 pixels, placed in the HTML body of the message. Its URL is unique to each recipient and campaign.
<img src="https://tracking.example.com/o/abc123.gif" width="1" height="1" alt="" style="display:none">The code abc123 maps to one recipient and one campaign in the ESP's database. When an email client renders the message, it requests that URL from the ESP's server. The server logs the request and returns the image. The log entry is what your dashboard calls an open.
What gets stored
Each request becomes an event row. The row usually holds the recipient ID, the campaign ID, a timestamp, and request details such as the user agent and IP address. Because one recipient can trigger many requests, you must decide how to count them. The query below shows both views.
SELECT
campaign_id,
COUNT(DISTINCT CASE WHEN event_type = 'delivered' THEN recipient_id END) AS delivered,
COUNT(DISTINCT CASE WHEN event_type = 'open' THEN recipient_id END) AS unique_opens,
COUNT(DISTINCT CASE WHEN event_type = 'click' THEN recipient_id END) AS unique_clickers,
COUNT(CASE WHEN event_type = 'open' THEN 1 END) AS total_opens
FROM email_events
GROUP BY campaign_id;unique_opens counts people who triggered at least one open event. total_opens counts every event, so it grows each time someone reopens the message. If total opens is much larger than unique opens, some recipients opened repeatedly, or something was requesting the pixel many times.
Why detection is imperfect
The pixel records that an image was requested. It does not record that a human looked at the message. This causes errors in both directions.
| Situation | What happens | Effect on open count |
|---|---|---|
| Client blocks remote images | The pixel is never requested, even if the person reads the text | Undercounts |
| Plain-text reading | No HTML is rendered, so no image loads | Undercounts |
| Client or proxy prefetches images | The pixel is requested before any human sees the message | Overcounts |
| Security scanner opens the message | The scanner loads images to inspect them | Overcounts |
| Person reopens the message | A second request is logged | Inflates total opens only |
The next chapters cover prefetching and Apple Mail Privacy Protection in detail. For now, remember that an open event means "something requested this image."
Common errors
- Assuming a missing open means the message was ignored. Image blocking hides readers.
- Comparing total opens across campaigns. Reopens and repeated requests distort it. Prefer unique opens when you compare.
- Dividing opens by sent instead of delivered. Bounced messages can never open, so the denominator should be delivered messages.
- Treating the open timestamp as the time the person read the message. A prefetch can log a time long before reading.
Exercise
A campaign shows 4,000 unique opens and 9,500 total opens. Name two possible causes of the gap, and say which count you would use to compare this campaign with another.
Show answer
Possible causes are recipients reopening the message, and automated systems such as image prefetching or security scanners requesting the pixel more than once. Use unique opens for comparison, because total opens depends on how often each recipient or system repeats the request.