Sub topic 3
Segmenting by Lifecycle Stage
Assume you know basic email metrics, CRM terms, and Boolean logic. A lifecycle stage describes where a subscribed contact is in their relationship with your organisation. Typical stages include new subscriber, prospect, active customer, and lapsed customer.
Assigning lifecycle stages
Define each stage with a clear time window and an explicit priority. Rules should be mutually exclusive, meaning one contact cannot receive two stages at the same time. In SQL, CASE evaluates conditions from top to bottom:
SELECT id,
CASE
WHEN last_purchase_at >= now() - interval '90 days'
THEN 'active_customer'
WHEN last_purchase_at IS NOT NULL
THEN 'lapsed_customer'
WHEN created_at >= now() - interval '14 days'
THEN 'new_subscriber'
ELSE 'prospect'
END AS lifecycle_stage
FROM subscribers
WHERE status = 'subscribed';The order matters. A recent buyer might also be a recent subscriber, but the first matching rule assigns that contact to active_customer. Decide how to treat missing dates before writing the rule.
Combining segmentation dimensions
Lifecycle describes relationship status, while behaviour describes actions and interest describes inferred topics. Combine them only when each condition supports the message. For example, “active customers interested in running” is more useful than a broad “clicked something” group.
Use AND when every condition is required. Use OR for alternatives. Keep a consent or subscription condition in the final audience query.
Keeping segments healthy
Check the resulting audience before sending:
- Set a minimum useful size. A very narrow segment may not support reliable conclusions.
- Check overlap. Contacts should not receive conflicting messages unless you define a priority.
- Name segments with their dimensions and windows, such as
active_customer_running_60d. - Recalculate dynamic segments near send time so stage changes are reflected.
Testing whether segmentation works
Compare the segmented campaign with a holdout group: eligible contacts randomly excluded from the message. Measure the outcome tied to the goal, such as purchases or qualified clicks, not only opens. Keep the holdout rule and measurement window fixed, and compare similar groups.
Exercise
Why should lifecycle rules be ordered?
Show answer
CASE uses the first matching condition, so ordering prevents overlapping definitions from assigning the wrong stage.