Sub topic 11
Granular preferences and separate purposes
This chapter covers how to split one email list into separate consent choices and keep those choices accurate over time. It assumes you can read a simple HTML form and a short Python script. It also assumes you know the earlier material: what makes consent valid, how to design a sign-up form, how double opt-in works, and how to record and honour withdrawals. This is general education, not legal advice.
Why one checkbox is not enough
Many sign-up forms ask for one tick that covers everything: the newsletter, partner offers, SMS, profiling for ad targeting. That is convenient for the marketer. It is a problem for consent, because consent has to be specific.
Under GDPR, consent must be given for a defined purpose. The European Data Protection Board's guidelines on consent say that when processing has several purposes, people should be free to choose which ones they accept, and not be forced to accept a bundle. Article 7(4) adds that when you assess whether consent is freely given, you must take account of whether a service is made conditional on consent to processing that isn't necessary for it. A user who has to accept "partner promotions" to get a newsletter has not freely consented to the partner promotions.
CASL asks for a similar thing from a different angle. A request for consent must state clearly the purpose for which consent is sought and identify who is asking. CAN-SPAM has no consent step at all. It does require that people can opt out, and the FTC allows you to offer a menu of choices as long as one option stops all commercial email from you.
So granularity does two jobs. It makes the original consent valid, and it lets people change their mind about one thing without losing everything else.
What counts as a separate purpose
A purpose is a distinct reason for using the data and sending the message. A different subject line is not a different purpose. Use these tests to decide whether two messages need separate consent:
- Different content type. A product newsletter and a discount campaign are different. Someone may want release notes and never want promotions.
- Different sender or recipient of the data. Sharing an address with a partner so the partner can email is always its own purpose.
- Different channel. Email, SMS, and push notifications need their own consent. Under ePrivacy-based rules, each channel has its own requirements.
- Different processing. Using open and click data to profile someone and tailor offers is a separate activity from sending the message.
- Different expectation. If a reasonable subscriber would be surprised to get it, treat it as separate.
| Message | Same purpose as newsletter? | Handling |
|---|---|---|
| Monthly product newsletter | Yes (it is the baseline) | Own checkbox |
| Weekly sales and discounts | No | Own checkbox |
| Partner offers sent by the partner | No | Own checkbox naming the partner |
| Order confirmation, password reset | Not marketing | Transactional, no marketing consent |
| Event invitations | Usually no | Own checkbox, or fold into a clearly worded "events" purpose |
Transactional messages, such as receipts and security notices, are outside this model. Do not use them to carry promotional content. Adding a promotion to a receipt can turn the whole message into marketing.
Designing a granular form
Each purpose gets its own unticked checkbox with its own label. Do not add an "accept all" option unless individual choices sit beside it with equal visibility. Do not make any optional purpose a condition of signing up.
<form action="/subscribe" method="post">
<label for="email">Email address</label>
<input type="email" id="email" name="email" required>
<fieldset>
<legend>What would you like to hear from us about?</legend>
<label>
<input type="checkbox" name="consent_newsletter" value="yes">
Monthly product newsletter from Example Co.
</label>
<label>
<input type="checkbox" name="consent_offers" value="yes">
Discounts and sales from Example Co., up to once a week.
</label>
<label>
<input type="checkbox" name="consent_partner" value="yes">
Offers from our named partner, Acme Travel Ltd. Acme will email you directly.
</label>
</fieldset>
<p>You can change these choices or unsubscribe from all of them at any time. See our <a href="/privacy">privacy notice</a>.</p>
<button type="submit">Save my choices</button>
</form>Three details matter here. The frequency ("up to once a week") is part of the purpose, so exceeding it is a new use. The partner is named, which supports the "informed" requirement. The email field is required, but no checkbox is. Someone who ticks nothing should get a clear message saying no subscription was created, and you should not email them to ask again.
Storing consent per purpose
A single boolean column called subscribed cannot represent granular consent. You need one record per person and purpose, with its own timestamps and wording version. This extends the consent record from the earlier chapter. Instead of one record per email address, there is a stream of events, each tied to a purpose.
An append-only list of events is easy to audit, because you never overwrite history. The current state is computed from the events.
from dataclasses import dataclass
from datetime import datetime, timezone
@dataclass(frozen=True)
class ConsentEvent:
email: str
purpose: str
action: str # "grant", "confirm" or "withdraw"
text_version: str
at: datetime
def current_state(events, email):
"""Return {purpose: "pending" | "active" | "withdrawn"} for one address."""
state = {}
mine = sorted((e for e in events if e.email == email), key=lambda e: e.at)
for e in mine:
if e.action == "grant":
state[e.purpose] = "pending"
elif e.action == "confirm" and state.get(e.purpose) == "pending":
state[e.purpose] = "active"
elif e.action == "withdraw":
state[e.purpose] = "withdrawn"
return state
def can_send(events, email, purpose):
return current_state(events, email).get(purpose) == "active"
def withdraw_all(events, email, text_version, at):
for purpose in current_state(events, email):
events.append(ConsentEvent(email, purpose, "withdraw", text_version, at))
def utc(day, hour):
return datetime(2026, 11, day, hour, tzinfo=timezone.utc)
events = [
ConsentEvent("[email protected]", "newsletter", "grant", "2026-11-v3", utc(26, 14)),
ConsentEvent("[email protected]", "offers", "grant", "2026-11-v3", utc(26, 14)),
ConsentEvent("[email protected]", "newsletter", "confirm", "2026-11-v3", utc(26, 15)),
ConsentEvent("[email protected]", "offers", "confirm", "2026-11-v3", utc(26, 15)),
ConsentEvent("[email protected]", "offers", "withdraw", "2026-11-v3", utc(27, 9)),
]
print(current_state(events, "[email protected]"))
print(can_send(events, "[email protected]", "newsletter"))
print(can_send(events, "[email protected]", "offers"))
withdraw_all(events, "[email protected]", "2026-11-v3", utc(28, 9))
print(current_state(events, "[email protected]"))Running it prints {'newsletter': 'active', 'offers': 'withdrawn'}, then True, then False, then {'newsletter': 'withdrawn', 'offers': 'withdrawn'}.
Your sending code should call a check like can_send for the specific campaign's purpose. Selecting recipients with WHERE subscribed = true is how a withdrawal from one list ends up ignored by another. A pending state also matters: with double opt-in, someone who ticked a box but never confirmed must not receive marketing. One confirmation email can list all the purposes the person selected, and the click can confirm all of them. The email should name each purpose so the click is informed.
The preference center
A preference center is a page where a subscriber can view and change their choices. It is the main way to make withdrawal as easy as opting in, and it should do the following:
- Show the current state of every purpose, with a toggle for each.
- Offer a clear "unsubscribe from all marketing" action that withdraws every purpose at once.
- Work without logging in where possible, for example through a signed link in each email, using the same kind of token as the double opt-in chapter. Forcing a password reset to unsubscribe makes withdrawal harder than signup.
- Record every change as a new event, with the time and the wording version shown.
- Take effect quickly. Set an internal limit, for example removing the address from queued sends within a day, and keep to it. CAN-SPAM allows up to 10 business days to honour an opt-out. Do not treat that as a target, because GDPR expects withdrawal to be acted on without undue delay and CASL gives a 10 business day maximum.
Be careful with the idea of a "soft" unsubscribe. If someone clicks the unsubscribe link in a discount email, it is reasonable to send them to the preference center. It is not reasonable to make them find the right toggle among ten options before the unsubscribe takes effect. A common safe pattern is to make the link do the narrow, expected thing immediately: stop that type of email. The same page then offers "stop all marketing" prominently. For bulk senders, mail providers also expect the one-click List-Unsubscribe header, which should map to the same purpose as the message it appears in.
Handling change over time
Granular consent has edge cases that appear months after launch.
New purposes need new consent. If you later want to send event invitations to people who only agreed to the newsletter, you cannot send them under the old consent. Ask through a fresh, specific request, for example on the newsletter's own sign-up page or in the preference center. Do not email a bulk "we're adding a new topic, reply to opt out" message.
Changed wording is a version change. If you alter what a purpose covers, such as raising frequency from monthly to weekly, treat it as a new text version. Existing consent to the older version does not automatically cover the change. Keep the text_version on every event so you can show which wording each person saw.
Withdrawal is not deletion. After someone withdraws from all purposes, you may keep a suppression record, that is, the address and the fact that you must not email it, so you don't re-add it from an old import. Keep the data minimal and explain it in your privacy notice.
Do not nudge. Interfaces that bury the "stop" option, use guilt-trip wording, or reset preferences to "on" after an update undermine consent. Regulators treat this as a design issue as well as a legal one.
Imports must carry purposes. When migrating from another tool, each contact must arrive with its per-purpose history. If the old system only holds a single "subscribed" flag, you cannot assume it covers every new purpose. Map it only to the purpose you can prove, usually the original newsletter.
The diagram shows how a request to change preferences moves through the system.
Common errors
| Error | Why it fails | Fix |
|---|---|---|
| One checkbox for newsletter and partners | Consent isn't specific, and unbundling is required | Separate boxes, partner named |
| "Accept all" is the only prominent button | Not a free choice | Give equal prominence to per-purpose choices |
| Unsubscribe link stops only the current campaign | Withdrawal not honoured | Withdraw the purpose, offer stop all |
| Boolean `subscribed` column | Cannot prove which purpose was agreed to | Per-purpose event records |
| Sending a new topic to old subscribers | Outside the original purpose | Fresh consent request |
| Preference center requires login | Withdrawal is harder than signup | Signed link, no password |
Exercise
A subscriber agreed to "Monthly product newsletter" only. Your team wants to send them a weekly discount email because it is "also marketing from us". What should you do, and what should your records show before you can send it?
Show answer
Do not send it. A weekly discount email is a different purpose from the newsletter, so the existing consent does not cover it. Ask for consent through a specific request, such as a separate checkbox in the preference center. Your records should then show a grant event for the "offers" purpose, a confirm event if you use double opt-in, and the text version the subscriber saw. Only when can_send returns true for "offers" may you send.
Exercise
In the Python example, why does withdraw_all append events instead of deleting the person's records?
Show answer
Appending keeps the full history, so you can show when each purpose was granted, confirmed, and withdrawn, and which wording applied. current_state computes the present position from that history, and the final "withdrawn" state also acts as a suppression record that stops the address being re-added by mistake.