Sub topic 2
Static and Dynamic Segments
Assume you know basic email metrics and boolean logic such as AND, OR, and NOT. A segment is a group of subscribers selected by rules.
A static segment is a saved list that does not change unless you edit it or refresh it manually. It is useful for a one-time campaign or a fixed experiment group.
A dynamic segment evaluates its rules whenever the email platform uses it. Subscribers can enter or leave as their profile fields and events change. It is useful for automated campaigns, such as sending a reminder to people who clicked recently.
| Type | Membership changes | Useful for |
|---|---|---|
| Static | Manually or by scheduled refresh | One-time campaign |
| Dynamic | When rules are evaluated | Ongoing automation |
Reading Engagement Signals Carefully
An engagement signal is an observed action, such as a click, purchase, or recent visit. Signals are evidence, not guaranteed intent. A click may be accidental, and an open may be missing because some email clients block tracking pixels.
Use a time window and a meaningful threshold. “Clicked once sometime” is usually weaker than “clicked at least twice in the last 60 days.” Exclude unsubscribed contacts before sending, regardless of their engagement.
> callout note > Treat engagement data as a signal with a confidence level. Combine repeated or recent actions with consent and suppression rules.
Segmenting by Behaviour
A behavioural segment describes what a subscriber did. Store events with a subscriber ID, event type, timestamp, and, when useful, campaign or topic.
This PostgreSQL query finds subscribed contacts who clicked an email during the last 30 days:
SELECT s.id
FROM subscribers AS s
WHERE s.status = 'subscribed'
AND EXISTS (
SELECT 1
FROM events AS e
WHERE e.subscriber_id = s.id
AND e.event_type = 'email_click'
AND e.occurred_at >= now() - interval '30 days'
);The EXISTS condition prevents multiple clicks from producing duplicate subscriber IDs.
Segmenting by Interest
An interest segment infers a topic preference from repeated actions. Use a topic field, a time window, and a threshold to avoid treating one accidental click as a strong preference.
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;Use the resulting segment for relevant content, but provide preference controls and honor exclusions.
Exercise
When is a dynamic segment preferable to a static segment?
Show answer
Use a dynamic segment when membership should follow changing data, such as recent clicks in an automated campaign.