Skip to content
Tutorials Center
My learning

Topics

Lesson 34 of 38 ยท Marketing Automation and AI

Privacy, Consent and Marketing Compliance

Learn the practical basics of privacy in marketing: consent, cookies, email and SMS rules, data minimization, disclosures and building a compliance checklist.

Marketing runs on data about people, and laws and platform rules increasingly control how you may collect and use it. This lesson gives you the working concepts so you can design campaigns responsibly and know when to involve a lawyer. It is general education, not legal advice; rules differ by country, change over time and depend on your situation.

Why it matters

Beyond fines, privacy mistakes damage trust, get ad accounts suspended and break the tracking that your analytics and attribution rely on. Good practice also tends to improve results: people who chose to hear from you engage more.

Key laws and rules (examples)

  • GDPR and the ePrivacy rules (European Economic Area, with similar laws in the UK): lawful basis for processing personal data, consent for most non-essential cookies and tracking, rights for individuals, and strict rules on direct marketing.
  • CCPA/CPRA and other US state laws: notice, rights to know, delete and opt out of sale or sharing of personal data.
  • CAN-SPAM (US): rules for commercial email, such as accurate headers, a physical address, a clear unsubscribe and honoring opt-outs promptly.
  • CASL (Canada), PECR (UK), and others: stricter consent rules for electronic messages.
  • TCPA and similar rules: consent requirements for marketing texts and calls.
  • Children's privacy: special protections (for example COPPA in the US) when your audience may include children.
  • Advertising law and platform policies: truthful claims, endorsement disclosures and restricted categories such as health, finance, alcohol and politics.

If you market internationally, the strictest rule that applies to your audience is often the practical standard.

Core concepts

  • Personal data: any information relating to an identifiable person, including email addresses, device IDs and cookie identifiers.
  • Lawful basis: a legal reason to process data (under GDPR: consent, contract, legitimate interests and others). Marketing emails and tracking cookies typically need consent or a carefully assessed basis, depending on the country.
  • Consent: must be freely given, specific, informed and unambiguous, usually through a clear action. Pre-ticked boxes and "by using this site you agree" notices are generally not valid consent in strict regimes.
  • Data minimization: collect only what you need, keep it only as long as needed.
  • Purpose limitation: use data only for the purpose you told people about.
  • Data subject rights: people can ask to access, correct, delete or export their data, and to object to marketing.
  • Processors and contracts: tools that process data for you (email platform, CRM, analytics) need proper agreements.

Privacy principles for marketers

Ask clearly Plain words, a real choice
Collect less Only what you will actually use
Keep briefly Delete when no longer needed
Make leaving easy One-click unsubscribe
1 / 2

Cookies, tags and tracking

Websites commonly use a consent management platform (CMP) banner. Principles:

  1. Categorize cookies and trackers: strictly necessary, preferences, analytics, marketing.
  2. Do not fire non-essential tags before consent where consent is required.
  3. Make declining as easy as accepting.
  4. Store the choice and honor it across pages and later visits.
  5. Update platform signals (such as consent mode) so ad and analytics tools adapt when consent is denied.

Because some visitors decline tracking, your dashboards under-count. Modeled conversions, server-side measurement with consent, first-party data and incrementality tests help fill gaps. The phase-out of third-party cookies and operating-system privacy features further reduce cross-site tracking, so build first-party data relationships: newsletters, accounts and communities where people give data knowingly.

Email and SMS

  • Get permission before marketing: clear sign-up wording, ideally double opt-in (confirm by email) in regions or industries where it is expected.
  • Keep proof of consent: when, where and what the person agreed to.
  • Include a visible unsubscribe link and honor it quickly; do not make people log in.
  • Identify yourself in every message and use accurate subject lines.
  • Do not buy or rent lists of email addresses for cold marketing; it damages deliverability and is unlawful in many places.
  • Respect quiet hours and local rules for SMS.

Your systems should refuse to send marketing to anyone without valid consent. This example filters a list and explains why contacts were excluded.

JS Consent-aware send list

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Retention rules in code

Deleting data you no longer need is easier when it is automatic. This sketch finds contacts whose data is past a retention period.

JS Find data past its retention period

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Disclosures and honest advertising

  • Influencer and affiliate content must clearly disclose material connections (free products, payment, commission) in a way viewers will notice.
  • Claims need evidence: savings, results, "best", health or earning claims. Testimonials must be real and typical or labeled.
  • Pricing and urgency: do not show fake countdowns, fake stock levels or fake discounts.
  • Dark patterns: hidden unsubscribe buttons, confusing opt-outs, pre-checked boxes and tricks that make canceling harder than signing up are targeted by regulators.
  • Accessibility: laws in many places also require accessible websites and communications.

A small data audit

For each type of data you collect, write down: what it is, why you collect it, where it is stored, who can access it, how long you keep it and the legal basis. This record of processing is the backbone of compliance and helps you answer rights requests. It also reveals data you can simply stop collecting.

Common mistakes

  • Treating a cookie banner as a formality while tags still fire before consent.
  • Importing an old or purchased list into an email tool.
  • Keeping data forever "just in case".
  • Using customer data to train or prompt external AI tools without checking terms and consent (see AI in marketing).
  • Ignoring unsubscribe or deletion requests.

When rules are unclear, ask a qualified privacy lawyer, especially before launching in new countries or collecting sensitive data.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which is generally NOT valid consent in strict privacy regimes?

    Consent must be an active choice; pre-ticked boxes are usually not valid.
  2. 2. What does data minimization mean?

    Limit collection and retention to what has a real purpose.
  3. 3. Why is first-party data increasingly valuable?

    As third-party tracking declines, direct relationships remain reliable.
  4. 4. An influencer promotes your product for a commission. What must happen?

    Material connections must be disclosed clearly to the audience.

Summary

  • Know the main rules for your audience's regions; apply the strictest that fits.
  • Get clear, provable consent; make unsubscribing and declining easy.
  • Collect less, keep it briefly and document what you hold.
  • Disclose partnerships and substantiate claims; avoid dark patterns.
  • Build first-party data and expect gaps in tracking.

Next: Project: A Launch Campaign Plan