Sub topic 10
Consent, privacy and data minimisation
This chapter assumes you can insert merge tags with fallbacks and write simple conditional blocks. It also assumes you know what a contact field is. Here you learn which data you may use for personalisation, and how to build templates that respect those limits.
Why personalisation has limits
A template can only use data you hold, but holding data does not mean you may use it for every purpose. Privacy rules such as the GDPR (EU and UK) and the CAN-SPAM Act (US) set boundaries. Rules differ by region, so check the ones that apply to your subscribers.
Three ideas cover most of what you need:
- Consent means the person agreed to a specific use of their data, such as receiving marketing email. Consent should be recorded with a date and a source.
- Purpose limitation means data collected for one reason, such as shipping an order, is not automatically available for another, such as targeted promotions.
- Data minimisation means you collect and use only the fields you need for the personalisation you actually do.
Apply minimisation to your fields
Before adding a merge tag, ask whether the email gets better with it. A first name usually does. A birth date, a home address or an inferred income band rarely does, and each extra field adds risk if the data leaks or is merged wrongly.
| Field | Typical use | Risk level |
|---|---|---|
| First name | Greeting | Low |
| Plan or tier | Conditional content | Low |
| Recent purchases | Product recommendations | Medium, needs a clear purpose |
| Health, finances, precise location | Rarely justified | High, often a special category of data |
Gate behavioural data on consent
Behavioural data, such as pages viewed or items left in a cart, is often covered by separate consent from basic email marketing. Store consent as a contact field, then check it in the template. If the flag is missing, the template must fall back to generic content.
{% if customer.consent_personalised_offers == true %}
Since you looked at {{ customer.last_viewed_product | default: "our new range" }}, here is something you might like.
{% else %}
Here is what is new this month.
{% endif %}The else branch also runs when the field is empty. This is the safe behaviour: missing consent is treated as no consent. Field names and boolean handling vary by platform, so check how yours treats an empty value.
Where personalisation goes wrong
- Creepy specificity. "We noticed you looked at this at 11:42pm" is accurate but unsettling. Personalise at the level a person would expect.
- Personal data in subject lines. Subjects appear in lock-screen notifications and shared inboxes. Avoid account balances, diagnoses and similar details there.
- Personal data in links. An email address or customer ID in a URL can leak through logs, forwarding and analytics. Use opaque, expiring tokens instead.
- Stale consent. Someone who withdrew consent yesterday must not receive a segment-based send built from last week's export. Sync consent changes before each send.
- Hidden data in the HTML. Merge fields placed in hidden elements are still readable in the message source.
Build the habit into your workflow
- List every merge tag and condition in the template.
- Write down the purpose of each one.
- Remove fields with no clear purpose.
- Confirm each remaining field has a consent basis.
- Test a contact with no consent flag and confirm the generic version renders.
Exercise
A template shows "Since you viewed {{ customer.lastviewedproduct }}" to everyone. What are two problems with this, and how would you fix them?
Show answer
First, it uses behavioural data without checking consent, so contacts who never agreed still receive it. Second, it has no fallback, so a contact with no viewed product sees broken text. Wrap the line in a conditional on a consent field, add a default value, and give the else branch generic content.