Sub topic 12
Using consented data for segmentation and personalization
This chapter assumes you know what first-party and zero-party data are, how consent and purposes are recorded, and that a CRM, CDP or warehouse stores customer records. It covers the activation step: turning stored data into segments and personalized messages without using data outside the purpose the customer agreed to.
The working model
Activation means using stored data to decide who sees what. Two checks apply to every use:
- Relevance. Does the data say something useful about this customer's interest or behavior?
- Permission. Did the customer grant consent for the purpose you are about to use it for?
A customer who joined your preference center for "personalization" has not necessarily agreed to "email marketing". Consent is stored per purpose, so each segment query has to filter on the purpose it serves.
Building a consent-aware segment
Zero-party data is the strongest signal, because the customer stated it. Suppose a customer chose "trail running" in your preference center. The stored record looks like this:
{
"customer_id": "c_123",
"field": "preferred_category",
"value": "trail_running",
"data_type": "zero_party",
"collected_via": "preference_center",
"consent_purpose": "personalization",
"consent_status": "granted",
"collected_at": "2026-03-04T10:15:00Z"
}To email everyone who stated this preference, join the customer table to the consents table and filter on purpose and status:
SELECT c.customer_id, c.email
FROM customers AS c
JOIN consents AS k
ON k.customer_id = c.customer_id
WHERE k.purpose = 'email_marketing'
AND k.status = 'granted'
AND c.preferred_category = 'trail_running';The join makes consent part of the query. A customer without a granted email_marketing row cannot appear in the result, so a marketer cannot include them by accident.
Combining zero-party and first-party signals
Stated preferences tell you what a customer wants. Observed behavior tells you what they do. Use both:
| Signal | Type | Example use |
|---|---|---|
| Preferred category | Zero-party | Choose the hero product category in an email |
| Browsed product pages | First-party | Show a "back in stock" notice |
| Purchase history | First-party | Suppress ads for items already bought |
| Quiz result (shoe fit) | Zero-party | Recommend the right size range |
When the two disagree, for example a customer states "trail running" but only buys road shoes, treat the stated preference as the starting point and test which one performs better. Do not overwrite a stated preference with an inference. Store inferences in separate fields labeled as inferred.
Personalization levels
Start simple and add complexity only when the lower level works.
- Rule-based. If the preferred category is trail running, show trail content. Easy to explain and audit.
- Behavioral triggers. Send a message after a cart abandonment or a repeat visit.
- Predictive. A model scores likely next purchase. This needs enough clean data and should use only fields consented for that purpose.
Common errors
- Reusing data for a new purpose. Data collected for order updates is not automatically usable for promotions.
- Stale consent. A withdrawal must reach every downstream tool, including ad audiences and email lists. Sync consent status before each campaign, not once a quarter.
- Over-personalizing. Messages that reveal how much you know ("we saw you looking at boots at 11 pm") can feel intrusive. Personalize with what the customer told you or would expect you to know.
- No fallback. Customers without a preference need a sensible default, or the template breaks.
Exercise
A customer granted consent for "personalization" but never for "emailmarketing". Your SQL segment filters on purpose = 'emailmarketing' and status = 'granted'. Can this customer receive the trail running email? Can you still show them trail running content on your website?
Show answer
They cannot receive the email, because no granted email_marketing row exists and the join excludes them. Showing trail running content on the website is allowed, because that falls under the personalization purpose they granted.
Exercise
A customer states a preference for trail running but only purchases road shoes. How should you store and use this?
Show answer
Keep the stated preference as zero-party data and store the purchase-based inference in a separate field labeled as inferred. Use the stated preference as the default and test which signal gives better results.