Sub topic 6
Consent, purposes and preference management
This chapter assumes you know what first-party and zero-party data are, how privacy laws changed collection, and what a cookie is. Here you will learn how to record a person's permission so you can prove it later and honor it in every campaign.
Consent is tied to a purpose
Consent is a person's agreement to let you use their data. A purpose is the specific reason you will use it, such as email marketing, personalization, or sharing with a partner. Under laws like GDPR, consent has to be specific. A single "I agree to everything" checkbox does not cover separate purposes.
A consent record answers four questions:
- Who agreed? (a customer ID)
- To what? (a purpose)
- When? (a timestamp)
- How? (the channel or form where it happened)
Without all four, you cannot show a regulator or a customer what they accepted.
Consent versus preferences
These two are easy to mix up.
| Row | Consent | Preference |
|---|---|---|
| Question it answers | May we use your data for this purpose? | How do you want us to use it? |
| Examples | Email marketing: granted | Weekly digest, trail running only |
| Effect of "no" | You must not process the data for that purpose | You choose a different default |
| Typical home | Consent record | Preference center |
Consent is the gate. Preferences tune what happens after the gate opens. A customer who has not granted email marketing consent should not receive a "weekly digest" even if they once picked that frequency.
A consent record that holds up
Store consent as its own rows, one per customer and purpose, not as a single column on the customer table. Each change adds a new event. Never overwrite history.
{
"customer_id": "c_123",
"purpose": "email_marketing",
"status": "granted",
"collected_via": "checkout_form",
"policy_version": "2026-01",
"recorded_at": "2026-03-04T10:15:00Z"
}The policy_version field matters. If your privacy notice changes, you can see which customers agreed to which wording.
The consent lifecycle
Consent changes over time. Your system must handle every transition.
Treat "Unknown" the same as "Denied" for activation. Silence is not permission.
Designing the flow
- Ask at the right moment. Ask for email consent at sign-up or checkout, where the reason is clear.
- One purpose per choice. Use separate unticked checkboxes. Do not pre-tick them.
- Say what happens. Write one plain sentence per purpose.
- Make withdrawal as easy as granting. Put an unsubscribe link in every email and a preference center link in your account pages.
- Sync everywhere. A change made in the email tool must reach the CRM, CDP and ad platforms quickly.
Enforcing consent in queries
Consent only matters if segments check it. Join to the consent table and filter on purpose and status, as this query does.
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';This works only if consents holds the current status per purpose. If you store events, build a view that keeps the latest event for each customer and purpose.
Common errors
- Bundling several purposes into one checkbox.
- Treating a preference answer as consent.
- Storing a yes or no with no date or source.
- Ignoring withdrawals in downstream tools.
- Pre-ticked boxes, which most regulators do not count as valid consent.
Exercise
A customer picked "weekly digest" in your preference center but never granted email marketing consent. Should they receive the digest, and what should you fix?
Show answer
No. A preference tunes behavior only after consent is granted, so without email marketing consent the customer must not be emailed. Fix the flow so the preference center asks for or checks the consent purpose first, and make segments join to the consent table with status = 'granted'.