Sub topic 5
Defining an Engaged Subscriber
This chapter assumes you know basic email marketing terms (list, campaign, bounce, unsubscribe), how an email service provider (ESP) sends mail, and enough SQL to read a query with a join. By the end, you will have a written definition of "engaged" that you can run against your own data.
Why the definition comes first
A sunset policy suppresses people who are not engaged. If "engaged" is defined badly, you will suppress buyers who never open mail, or keep addresses that no longer exist. The previous chapter showed that open rates are unreliable. Apple Mail Privacy Protection and security scanners can load the tracking pixel without a person reading anything. Opens can therefore make a dead address look alive.
Choose signals you can trust
Rank the signals you have by how clearly they show a person acted.
| Signal | Reliability | Notes |
|---|---|---|
| Purchase or conversion | High | Direct evidence of value. Needs order data linked to the subscriber. |
| Click on a link | Medium-high | Bots and link scanners can click, so filter out clicks within a few seconds of delivery if you can. |
| Reply or forward | High | Rare, but a strong positive signal to mailbox providers. |
| Site visit or account login | High | Counts only if you can tie it to the subscriber ID. |
| Open | Low | Inflated by privacy features. Use only as a weak tiebreaker, if at all. |
A practical default is: engaged means at least one click or purchase within the inactivity window. You can add replies, logins, or app activity when your data supports them.
Handle the gaps in your data
Every definition has blind spots. Write them down so you do not trip over them later.
- Image-blocked and text-only readers. Some people read mail but never click. Click-based rules will flag them. The re-engagement campaign, covered in a later chapter, gives them a chance to respond.
- Bot clicks. Security scanners at some companies click every link. A subscriber whose only clicks happen within seconds of delivery, on every message, is probably not a person.
- Multiple data sources. If purchases live in a store database and clicks live in the ESP, join them on a stable key such as the subscriber ID, not only the email address.
- Missing history. If you migrated ESPs, you may lack old events. Treat the migration date as the start of your data, and do not call people inactive for a period you could not observe.
Write the definition as a query
Turn the definition into something runnable. This PostgreSQL query lists subscribed addresses that joined more than 180 days ago and have no click or purchase in the last 180 days.
SELECT s.id,
s.email,
MAX(e.occurred_at) AS last_engaged_at
FROM subscribers s
LEFT JOIN engagement_events e
ON e.subscriber_id = s.id
AND e.event_type IN ('click', 'purchase')
WHERE s.status = 'subscribed'
AND s.subscribed_at < now() - interval '180 days'
GROUP BY s.id, s.email
HAVING MAX(e.occurred_at) IS NULL
OR MAX(e.occurred_at) < now() - interval '180 days';Three details matter here.
- The
LEFT JOINkeeps subscribers who have no events at all. An inner join would drop exactly the people you are looking for. - The
event_typefilter sits in theONclause. If you moved it toWHERE, the left join would behave like an inner join and again hide never-engaged subscribers. - The
subscribed_atcondition protects new subscribers from being flagged before they had a fair chance to engage.
A decision flow
Once you have a definition, each subscriber falls into one of a few states. The diagram shows how the check works for one subscriber.
Common errors
- Counting opens as engagement. This keeps bots and privacy-proxy opens on your list, and it hides the problem you set out to fix.
- Using one window for every segment. A weekly newsletter and an annual-sale list need different windows. The next chapter covers choosing one.
- Forgetting unsubscribed and bounced addresses. Restrict the query to
status = 'subscribed', as above, so you do not count addresses you should not mail anyway. - Not versioning the definition. Save the query in source control. When results change, you need to know whether the data changed or the rule did.
Summary of the working definition
- Engagement means a click, purchase, reply, or authenticated visit tied to the subscriber.
- Opens are not counted, or are used only as a weak extra signal.
- Subscribers newer than the window are never flagged.
- The rule is a saved, runnable query that you can review and rerun.
Exercise
Your query uses LEFT JOIN engagement_events e ON e.subscriber_id = s.id and you move the condition e.event_type IN ('click', 'purchase') from the ON clause to the WHERE clause. Why does this break the query's purpose?
Show answer
A WHERE condition on e.event_type removes rows where e is NULL, which are the subscribers with no events. The left join then acts like an inner join, so never-engaged subscribers disappear from the results. The filter must stay in the ON clause.
Exercise
A subscriber has opened every email for a year but never clicked or purchased. Under this chapter's default definition, are they engaged? Give one reason to be cautious about opens.
Show answer
No. Under the default definition they are not engaged, because they have no click or purchase. Opens can be inflated by privacy features such as Apple Mail Privacy Protection, which load the tracking pixel automatically, so an open does not prove a person read the message.