DM4: Privacy, consent and the law for marketers

Lesson 1 of 5 · reading 15–25 minutes; practice and project time is on the module page

Personal data in marketing

🎯You'll be able to

Spot personal data in forms, URLs, events and ad audiences, and apply data minimisation to a marketing plan.

🏠The everyday picture

A shopkeeper who remembers that you like strong tea is being helpful. One who writes down your phone number, address and every purchase, and sells the notebook to a stranger, is doing something else, even if each fact seems small.

📘What it really is

📝A worked example

Input: MittiMart's starter newsletter form is <form action="index.html" method="get"> with a field named email.

Steps:

  1. Submit it with asha.rao@example.com and look at the address bar: index.html?email=asha.rao%40example.com.
  2. Look at the terminal running npm run serve: the page view sent to /collect includes that address as page_location.
  3. Note the fix: handle the form on the page (no GET), and send only the event name and the form's name.

Expected output: one leak found in the address and one in the generate_lead event (which also sends the email). Project 1's test 6 fails on the starter for exactly these leaks.

🌍Where it's used

📝Case scenario

A bank's password reset page put the customer's mobile number in its address. The number ended up in the bank's analytics and in a third-party chat tool's logs. Nobody had meant to collect it. The fix was a POST form and a filter that strips query values from every address sent to analytics.

🖱️Try it

Fill in a newsletter or contact form on any site with a made-up address you control, and watch the address bar and the browser's Network tab. Success: you can say whether the address appears in any request other than the form submission.

⚠️Common mistakes

🛠️For your project

Project 1's test 6 fills in the newsletter and checkout with invented details and fails if any of them reaches /collect.

✅Quick check

Can a cookie ID be personal data?

Show the answer

Yes, when it can be linked to a person, for example through their behaviour or account.

What does data minimisation mean for a newsletter form?

Show the answer

Ask only for what the newsletter needs: usually just an email address.

← BackDM4
ProLearners Assist