Sub topic 9
Consent, privacy, and rules for incentives
This chapter assumes you have read the earlier chapters on referral programs, incentive design, and attribution tracking. It also assumes you can read basic Python and SQL. The chapter is practical guidance, not legal advice. Rules differ by country and change over time, so have a qualified person review your program before launch.
Why this matters for growth programs
A referral or recommendation program moves email addresses and personal data between people and between publications. That makes it a regulated activity, not only a marketing tactic. Regulators, mailbox providers, and your own email service provider (ESP) all have rules about it. A program that breaks them can get your sending domain throttled or blocked, or your account suspended. In some regions it can also bring fines.
The practical goal is simple. Every subscriber should have chosen to join, and you should be able to prove it. Every reward should follow a rule you published. Every piece of personal data you keep should have a purpose.
Consent: what you need and how to prove it
Consent is a clear, voluntary action by the person who owns the address. It is not an action by a friend who typed it in. Consent rules differ by region:
| Region | Rule in short | Effect on referral design |
|---|---|---|
| EU (GDPR and ePrivacy) | Needs a lawful basis. For marketing email this is usually opt-in consent, which must be specific, informed, and provable. | Record what the person agreed to and when. Do not pre-tick boxes. |
| UK (UK GDPR and PECR) | Similar to the EU. Consent is the usual basis for marketing to individuals. | Same as the EU. |
| Canada (CASL) | Express or implied consent is required. You must identify the sender and give an unsubscribe method. | Do not email someone just because a friend gave you their address. |
| US (CAN-SPAM) | No opt-in requirement for commercial email, but you need honest headers, a physical address, and a working opt-out honored within 10 business days. | Opt-out rules still apply to every referred subscriber. |
In practice, a design that satisfies the strictest regime also satisfies the others. That design has three parts:
- The new subscriber enters their own address on your form.
- You send a confirmation email and activate the subscription only when they click it (double opt-in).
- You store a consent record.
Double opt-in also protects the referral program. It blocks typo addresses, spam traps, and signups made by someone else. It is the same confirmed_at check used in the SQL query from the chapter on measuring referrals.
Never email on a friend's behalf
A common weak design is a "refer a friend" form where the referrer types a friend's address and your system sends the invitation. This is risky. The friend never consented, and under US rules a company that offers a reward for forwarding or inviting can be treated as the sender of that message. Under EU, UK, and Canadian rules, unsolicited invitations are harder still to defend.
The safer design is for the referrer to share their own link by their own means: a text message, a social post, or an email from their own account. Your system sends nothing until the friend opens the link and subscribes. Attribution works through the link, as shown in the chapter on unique links.
Store a consent record
A consent record answers the question "what exactly did this person agree to, and when?" Keep it small. Collect only what you need to answer that question.
CREATE TABLE consent_records (
id INTEGER PRIMARY KEY,
subscriber_id INTEGER NOT NULL REFERENCES subscribers (id),
source TEXT NOT NULL, -- 'referral', 'recommendation', 'organic'
source_detail TEXT, -- referral code or partner publication
consent_text_version TEXT NOT NULL, -- which wording the person saw
consented_at TIMESTAMP NOT NULL, -- when they submitted the form
confirmed_at TIMESTAMP -- when they clicked the confirmation link
);The consent_text_version column matters more than it looks. If you change your signup wording, you need to know which people agreed to which version. Keep a copy of each version of the text in your own records.
Recommendation networks and data sharing
In a recommendation network, a partner publication suggests your newsletter to its readers. These readers join your list from the partner's page or from a screen shown just after they subscribe there. Two rules keep this clean.
First, the reader must take an explicit action to join your list. A checkbox they tick, or a button they press, is acceptable. A pre-ticked box is not valid consent in the EU and UK. Pre-ticked boxes also produce unengaged subscribers and spam complaints elsewhere.
Second, do not pass email addresses between publications unless the reader agreed to that sharing, with the receiving publication named. The usual setup avoids sharing altogether. The reader submits their own address to your ESP through your endpoint, and the partner receives only aggregate counts. If a network platform handles the handoff, read its terms to learn who is the data controller and who must honor deletion requests.
Whichever method you use, the consent record should say that the subscriber came from a recommendation and name the partner. You need that for quality analysis, and you need it if a subscriber later asks how you got their address.
Privacy in the referral flow
Referral programs create a data relationship between two people. Follow these practices:
- Show referrers counts, not identities. A dashboard that says "4 confirmed referrals" is enough. Listing the email addresses of the people referred exposes personal data to someone who has no need for it.
- Keep the referral code unguessable and unrelated to personal data. The HMAC-based code from the attribution chapter qualifies. Do not build codes from an email address or a sequential number.
- Collect the minimum on landing. A landing page for a referral link can log the code and a timestamp. It does not need to build a profile of the visitor. If you use cookies or other tracking on that page to remember the referral code, check whether consent for them is required in the visitor's region. In the EU and UK, a cookie used only to remember the code might be treated differently from advertising tracking, so confirm this with your adviser.
- Set a retention rule. Delete raw click logs after a fixed time, such as 30 to 90 days, once attribution is settled. Keep the consent record for as long as the person is subscribed and for a stated period afterward.
- Plan for erasure. When a subscriber asks you to delete their data, remove the personal fields. Decide in advance what happens to the referral count of the person who referred them. A common approach is to keep a count without any link to the erased person.
The consent flow at a glance
The diagram shows what happens between a click on a referral link and the moment a reward can be granted.
Rules for incentives
An incentive is a reward given in exchange for an action. The rules cover three areas: what you promise, what referrers must disclose, and what law applies to the prize.
Say exactly what the reward is and when it is earned
Publish a short set of program terms. They should state what counts as a qualifying referral, when a reward is granted, whether rewards can be revoked, and how you handle suspected fraud. In the US, the FTC treats unclear or misleading offers as deceptive. Vague terms also cause support disputes.
Tie qualifying referrals to events you can verify, such as a confirmed address that remains subscribed after a waiting period. This is a fairness rule as well as an anti-abuse rule. It avoids paying for signups that the new subscriber never actually completed.
Referrers must disclose the reward
A referrer who gets a reward for sharing a link has a material connection to the recommendation. In the US, the FTC's endorsement rules expect a clear disclosure of this connection. Other countries have similar advertising rules. The simplest solution is to put the disclosure into the pre-written share text:
def share_text(link: str) -> str:
return (
"I read this newsletter every week and recommend it. "
"Disclosure: I get a reward if you subscribe through my link. "
f"{link}"
)
print(share_text("https://example.com/subscribe?ref=AbC123xyZ_"))Make the disclosure easy to see, and do not hide it behind a "read more" link. A referrer can edit the text, but starting from a compliant default makes most shares compliant.
Check whether a reward counts as a prize
If you give a reward to everyone who meets a threshold, such as "refer five people, get a sticker pack," it is usually a loyalty or milestone reward. If you give a reward by chance, for example a "random draw among referrers," you may be running a sweepstakes. Sweepstakes and contests have their own legal requirements in many places. These can include official rules, a ban on requiring payment to enter, eligibility limits by age or region, and registration in some jurisdictions. Milestone rewards with a fixed, published threshold avoid most of this. That is one more reason to prefer the design from the incentive chapter.
Other points to check before launch:
- Cash and gift cards can have tax reporting duties for the recipient, and sometimes for you, if the amounts are large.
- Age limits. Do not reward or collect data from children where a law limits it, such as COPPA in the US for children under 13. Many programs simply restrict participation to adults.
- Physical goods involve shipping addresses. That is more personal data, so keep it in a separate system with limited access.
- Your ESP's terms. Some platforms restrict incentivized signups or list-sharing arrangements. Read the acceptable use policy before building on it.
Mailbox provider rules apply too
Gmail and Yahoo have required bulk senders to authenticate their mail (SPF, DKIM, and DMARC), offer one-click unsubscribe, and keep spam complaint rates low. Their published guidance asks senders to stay under 0.3% and aim below 0.1%. Referral programs can push complaint rates up if people subscribe by mistake or only for the reward. Double opt-in, a clear welcome email, and an easy unsubscribe all help protect your domain reputation.
Putting the rules into code
A reward check should read the consent state, not only the signup count. This function grants a reward only when the referred person confirmed, is still subscribed, has stayed for the waiting period, and has not been erased.
from dataclasses import dataclass
from datetime import datetime, timedelta, timezone
from typing import Optional
@dataclass
class Signup:
subscriber_id: int
referrer_id: Optional[int]
consent_text_version: Optional[str]
confirmed_at: Optional[datetime]
unsubscribed_at: Optional[datetime]
erased: bool = False
def reward_eligible(signup: Signup, now: datetime, waiting_days: int = 7) -> bool:
if signup.referrer_id is None or signup.erased:
return False
if signup.consent_text_version is None or signup.confirmed_at is None:
return False
if signup.unsubscribed_at is not None:
return False
return now - signup.confirmed_at >= timedelta(days=waiting_days)
now = datetime(2026, 11, 26, tzinfo=timezone.utc)
ok = Signup(1, 42, "v3", now - timedelta(days=10), None)
too_new = Signup(2, 42, "v3", now - timedelta(days=2), None)
no_consent = Signup(3, 42, None, now - timedelta(days=10), None)
print(reward_eligible(ok, now)) # True
print(reward_eligible(too_new, now)) # False
print(reward_eligible(no_consent, now)) # FalseKeep this check in one place and call it every time a reward is calculated. If the rule lives in several places, they drift apart and you pay for signups you meant to exclude.
Common mistakes
- Pre-ticked consent boxes on the recommendation screen. In the EU and UK this is not valid consent.
- Importing a referrer's contacts to invite them. The contacts did not agree to hear from you.
- Rewarding on raw signup count. This pays for unconfirmed and fake addresses and inflates your complaint rate.
- Missing disclosure in the default share text.
- Changing signup wording without versioning it. You then cannot show what earlier subscribers agreed to.
- Treating a partner's list as yours. Subscribers who joined the partner's list did not agree to hear from you. Only those who took an action to join yours did.
Exercises
Exercise
A reader proposes a feature: "Enter up to five friends' email addresses and we'll send them an invitation. You get a reward for each friend who joins." List two problems with this design under the rules in this chapter, and describe a safer alternative.
Show answer
First, the friends have not consented to receive email from you, which is a problem under GDPR, PECR, and CASL. Under US rules, offering a reward for the invitation can also make you the sender of the message. Second, you would be collecting and storing five third-party email addresses without a clear purpose or consent from their owners, which is a data protection problem. A safer alternative is to give the reader a personal referral link to share through their own channels, with disclosure text included. Nothing is sent to the friend until the friend subscribes themselves and confirms by double opt-in.
Exercise
Your program rewards "5 confirmed referrals." Using the SQL pattern from earlier and the consent record table in this chapter, name the three conditions a referral must meet before it counts, and say which table column supports each.
Show answer
The referred person must have confirmed their address (subscribers.confirmed_at or consent_records.confirmed_at is not null). They must still be subscribed (subscribers.unsubscribed_at is null). They must have a consent record showing what they agreed to (a row in consent_records with a consent_text_version). A waiting period measured from confirmed_at is a sensible fourth condition.