Sub topic 8
Segmenting by interest
This chapter assumes you have read the earlier chapters on subscriber data, consent, and segment rules. You should be comfortable with boolean conditions, time windows, and count thresholds. The SQL examples use PostgreSQL. If you work in an email service provider (ESP), the same logic maps onto its segment builder.
What an interest segment is
An interest segment groups subscribers by the topics they care about, such as running, trail shoes, or nutrition. A behavioural segment asks what a person did recently. An interest segment asks what the person is about.
Interest is a property of the subscriber, so it should change slowly. Someone who clicked a running link yesterday and nothing else may just have been curious. Someone who clicked running content four times over two months probably cares about it. Interest rules therefore need more evidence than behavioural rules do. They usually use a count threshold and a longer window.
The goal is a segment that can receive a message about one topic and get a better response than the whole list would.
Two sources of interest data
Interest comes from two places. They differ in reliability, in consent implications, and in how they fail.
| Source | How you get it | Strength | Weakness |
|---|---|---|---|
| Declared | Preference center, signup form, survey, onboarding quiz | The subscriber told you directly. Consent is clear. | Goes stale. Only a minority of subscribers fill it in. |
| Inferred | Repeated clicks, page visits, purchases tied to a topic | Covers many more people. Updates as behaviour changes. | A guess. Prone to noise and misreading. |
Declared interest is the better signal when it exists. Inferred interest fills the gaps for everyone who never filled in the form. A mature setup uses both and records which one produced each assignment, so you can later judge which is more predictive.
Build a topic taxonomy first
Inference only works if events carry a topic. A click on a link is just a URL until something labels it. There are two common ways to attach topics:
- Tag links at send time. Each link in an email carries a topic label, stored with the click event.
- Map URLs to topics afterwards. A lookup table says that
/shop/running/*belongs torunning.
Either way, you need a taxonomy: a short, agreed list of topics. A good taxonomy has these properties:
- Topics are few enough that each one can have real volume. Ten to twenty is a typical starting range. Hundreds of topics produce segments too small to send to.
- Topics are distinct. If
runningandjoggingboth exist, interest splits between them and neither crosses the threshold. - Topics match what you can actually write content for. A topic you never send about is useless as a segment.
- Each link maps to one primary topic. If a link has several topics, you have to decide how to count it.
Treat the taxonomy as a controlled vocabulary. Free-text tags typed by different people (running, Running, run) are the most common cause of interest segments that quietly undercount.
From a single click to an interest rule
The core pattern uses three parts: an event type, a threshold, and a window. The example below selects subscribers who clicked at least twice on running content in the last 60 days.
-- PostgreSQL: subscribers who clicked at least twice on running content in the last 60 days
SELECT subscriber_id
FROM events
WHERE event_type = 'email_click'
AND topic = 'running'
AND occurred_at >= now() - interval '60 days'
GROUP BY subscriber_id
HAVING COUNT(*) >= 2;Each part of this rule does a job:
topic = 'running'restricts the evidence to one subject.occurred_at >= now() - interval '60 days'keeps old evidence from counting forever.HAVING COUNT(*) >= 2requires repetition, so one accidental click does not create an interest.
Because the window is relative to now(), this is a dynamic segment. Membership is recalculated whenever the query runs. A subscriber who stops clicking drops out about 60 days after their last qualifying click. The chapter on static and dynamic segments covers when you would freeze the result instead.
Choosing the threshold and window
There is no universal threshold. Choose by looking at your own data:
- Count how many subscribers qualify at thresholds of 1, 2, 3, and 5 clicks.
- Check that the resulting segment is large enough to send to and to measure. Small segments give noisy results.
- Check that the segment is selective. If a threshold of 2 qualifies 70 percent of the list, the segment is not describing interest, only general activity.
A longer window suits topics people return to slowly, such as buying a mattress. A shorter one suits fast-moving topics, such as race-day content. Use a window that matches how long the interest realistically lasts.
Limits of click-based inference
Clicks are a noisy signal. Know the main failure modes before you rely on them.
- Automated clicks. Some corporate security scanners open every link in an incoming email. This produces clicks on every topic within seconds of delivery. A subscriber who "clicked" ten links in the same second did not read ten articles. Filter out clicks that happen implausibly fast after delivery, or clicks on many links within one send.
- Repeated clicks on one email. Two clicks on the same link in the same campaign may just be a double tap or a revisit. For stronger evidence, count distinct campaigns instead of raw clicks.
- Opens are not interest. Mail privacy features can preload images and register an open for a message nobody read. Do not infer topic interest from opens. Use clicks, site visits, or purchases.
- Topic of the email versus topic of the person. If most of your emails are about running, most clicks will be on running content. That tells you what you sent, not who is interested. Compare against what others did with the same content, or use declared data to check.
A stricter version of the earlier rule counts distinct campaigns. It assumes your events table also has a campaign_id column.
-- PostgreSQL: clicked running content in at least two different campaigns in the last 60 days
SELECT subscriber_id
FROM events
WHERE event_type = 'email_click'
AND topic = 'running'
AND occurred_at >= now() - interval '60 days'
GROUP BY subscriber_id
HAVING COUNT(DISTINCT campaign_id) >= 2;Combining declared and inferred interest
Declared and inferred signals combine naturally with OR. A subscriber qualifies if they said they like running, or if their behaviour shows it. The query below assumes a table subscriber_interests(subscriber_id, topic, source) that stores preference center answers.
-- PostgreSQL: running interest, declared OR inferred, for currently subscribed contacts
SELECT s.id
FROM subscribers s
WHERE s.status = 'subscribed'
AND (
EXISTS (
SELECT 1
FROM subscriber_interests si
WHERE si.subscriber_id = s.id
AND si.topic = 'running'
AND si.source = 'preference_center'
)
OR s.id IN (
SELECT e.subscriber_id
FROM events e
WHERE e.event_type = 'email_click'
AND e.topic = 'running'
AND e.occurred_at >= now() - interval '60 days'
GROUP BY e.subscriber_id
HAVING COUNT(*) >= 2
)
);Notice the status = 'subscribed' check outside the OR. Putting it inside one branch would let unsubscribed contacts slip in through the other. When you combine conditions, group them with parentheses and apply mandatory filters at the top level.
Consent and privacy limits
Inferring interest means drawing conclusions about people from their behaviour. Consent is a requirement here, not a formality.
- Inference should be covered by what you told subscribers when they signed up. If your privacy notice does not mention using click behaviour to personalise email, check the rules that apply to you before you build inferred segments. Requirements differ by region, and this chapter does not give legal advice.
- Respect topic-level opt-outs. If a subscriber used the preference center to say they do not want running emails, an inferred rule must not override that. Add an exclusion for explicit opt-outs, even if recent clicks say otherwise. Declared choices outrank inferred ones.
- Be careful with sensitive topics. Interests that reveal health conditions, religion, sexuality, or financial hardship can be regulated as special categories of data. Do not create inferred segments for them without a clear legal basis and explicit consent. If a topic would feel intrusive if said aloud ("we noticed you've been reading about debt"), do not build a segment around it.
- Keep a record of why each person is in a segment: declared, inferred, or both. This lets you answer a subscriber's data request and remove inferred labels on demand.
Common errors
- Threshold of one. A single click is too weak. The segment fills with people who clicked by accident or by curiosity, and the content mismatch feels random to them.
- No window. Without a time limit, interest is permanent. A person who clicked on baby products three years ago keeps getting them.
- Overly granular topics. Segments such as
trail-running-shoes-wide-fitrarely reach a useful size. Roll up to a broader topic and keep detail for personalisation within the email. - Inconsistent tags. Mixed spellings and duplicate topics split the evidence. Use a controlled list.
- Treating the list as mutually exclusive. Unlike lifecycle stages, interests overlap. Someone can be interested in running and nutrition at once. Do not force one label per person unless you need a single primary interest. Overlap is handled when you combine dimensions and when you maintain segments.
- Confusing volume sent with preference. Topics you send most will dominate the clicks. Normalise or check against declared data.
Putting it to use
Interest segments become most useful once crossed with another dimension. A running-interest segment is more relevant than the whole list, and a running-interest segment of active customers can receive a message that fits both. The next chapters show how to combine dimensions without shrinking the audience below a useful size. For now, make sure your interest rule stands alone: it should be explainable in one sentence, built on a controlled topic list, backed by a threshold and a window, and filtered for consent.
Exercise
Your rule selects subscribers with at least one click on running content in the last 12 months. The segment holds 65 percent of your list, and a running campaign sent to it performs about the same as a general campaign. Give two changes to the rule that would make it a better interest segment, and explain what each one fixes.
Show answer
First, raise the threshold, for example to at least two clicks, or at least two distinct campaigns. A single click is weak evidence, which is why 65 percent of the list qualifies. A higher threshold keeps only people with repeated interest and makes the segment selective. Second, shorten the window, for example to 60 days. A 12-month window keeps people whose interest has faded, so the segment describes past behaviour rather than current interest. You could also filter out automated clicks and exclude subscribers who opted out of running content in the preference center. Then compare the new segment's size and response against the old one.
Exercise
A subscriber selected "no running emails" in the preference center last week, but clicked three running links in the last 60 days. Using the OR rule above, what happens, and how do you fix the rule?
Show answer
The inferred branch (three clicks, meeting the threshold of two) places them in the running segment, even though they explicitly opted out. To fix it, add a top-level exclusion that removes anyone with a declared opt-out for the topic, for example AND NOT EXISTS (SELECT 1 FROM subscriber_interests si WHERE si.subscriber_id = s.id AND si.topic = 'running' AND si.source = 'opt_out'), with the exact table and column names depending on your schema. Declared choices outrank inferred ones, so the exclusion applies regardless of click history.