Sub topic 11
Consent and Privacy When Collecting Data
This chapter assumes you know basic HTML forms and how a landing page collects an email address. It covers what a lead form must tell visitors, how to record their agreement, and how to handle the data afterward. It is general guidance, not legal advice. Rules differ by country, so check the laws that apply to your visitors.
Why consent belongs in the form design
A lead form asks a stranger for personal data. The visitor decides whether to trust you in a few seconds. A clear statement of what they will receive, and what you will do with their data, lowers hesitation. It also protects you. Laws such as the EU's GDPR and the US CAN-SPAM Act set rules for collecting data and sending marketing email.
Consent has three practical parts:
- Informed: the visitor knows what they are agreeing to.
- Specific: the agreement covers a stated purpose, such as "the checklist and occasional related emails".
- Recorded: you can later show who agreed, when, and to what.
Collect only what you need
Each field is a data-protection decision as well as a friction decision. If you do not need a phone number to deliver the offer, do not ask for it. Data you never collect cannot leak, and a shorter form usually converts better.
Write the consent line
State the promise next to the control. Avoid vague text such as "I agree to the terms". Say what the visitor gets and how to leave.
<form action="/subscribe" method="post">
<label for="email">Work email</label>
<input type="email" id="email" name="email" autocomplete="email" required>
<label>
<input type="checkbox" name="consent" value="yes" required>
Send me the checklist and occasional related emails. I can unsubscribe at any time.
</label>
<p><a href="/privacy">How we use your data</a></p>
<button type="submit">Get the free checklist</button>
</form>Three details matter here:
- The checkbox is not pre-ticked. In many regions, a pre-ticked box is not valid consent.
- The label names the purpose and the exit route.
- A link to the privacy notice sits within the form, so the visitor does not have to search for it.
The checkbox is unticked and required, so the browser blocks submission until the visitor ticks it. Some regions allow a plain notice instead of a checkbox for certain uses. A checkbox is the safer default when you plan to send marketing email.
Record the consent
A checked box is not evidence unless you store it. Save a record with each lead.
| Field | Example | Why keep it |
|---|---|---|
| [email protected] | Identifies the person | |
| Consent text | "Send me the checklist..." | Shows exactly what they agreed to |
| Timestamp | 2026-11-26T14:28:43Z | Shows when |
| Source page | /checklist | Shows where they agreed |
Store the consent text version too. If you change the wording later, you can still prove what each person saw.
Handle the data responsibly
After collection, a few habits keep you out of trouble:
- Use the data only for the purpose you stated. Consent to a checklist is not consent to sell the list.
- Send form data over HTTPS and limit who can read the lead list.
- Honor unsubscribe and deletion requests promptly, and put a working unsubscribe link in every marketing email.
- Delete data you no longer need.
Where consent fits in the flow
The next chapter covers the thank-you page and first follow-up, which are the first places the visitor sees whether you kept your promise.
Exercise
A form has a pre-ticked box reading "I agree to receive offers from us and our partners." List two problems and say how to fix each.
Show answer
First, the box is pre-ticked, so the visitor has not actively agreed. Fix it by leaving the box unticked. Second, the wording is vague and includes unnamed partners, so the consent is not specific. Fix it by naming the purpose, such as "Send me the checklist and occasional related emails", and by dropping the partner sharing or asking for it separately. Also store a timestamped record of the consent text.