Is website visitor identification legal? CCPA, CIPA, GDPR and CAN-SPAM

Updated November 7, 2026

Website visitor identification is legal in the US when you disclose it in your privacy policy, honor opt-outs and Global Privacy Control signals, and follow CAN-SPAM when you email. California carries extra lawsuit risk under its wiretapping statute, and in the EU and UK you need the visitor's consent before identifying them.

United States: notice, opt-out, and email rules

  • Privacy notice. State privacy laws, led by California's CCPA as amended by the CPRA, require you to tell visitors what personal information you collect and why, at or before collection.
  • Opt-out of sale or sharing. Covered businesses must offer a way to opt out, and California regulations require honoring Global Privacy Control (GPC) browser signals as a valid opt-out.
  • Email. CAN-SPAM allows commercial email to business contacts without prior opt-in, but every message needs accurate headers, a physical postal address and a working unsubscribe that you honor within 10 business days.

California: the wiretap lawsuits

Since 2022, plaintiffs have filed a wave of suits arguing that tracking scripts are illegal "wiretaps" or "pen registers" under the California Invasion of Privacy Act (CIPA). Outcomes vary by court, but the cost of defending them is real. That is why Deanonymized resolves California visitors at company level only by default, and lets you block any state entirely.

EU and UK: consent first

Under the GDPR, UK GDPR and the ePrivacy rules, setting non-essential cookies and identifying a person requires a lawful basis, and in practice consent. Deanonymized resolves EU and UK visitors only after a consent signal from your consent manager, and resolves people in the UK, Canada and Australia only with consent.

A practical checklist

  1. Update your privacy policy to name visitor identification, the data it uses and how to opt out.
  2. Honor GPC automatically. Deanonymized does this on every plan.
  3. Connect your consent manager so EU and UK visitors are resolved only after consent.
  4. Geofence states you do not want to resolve at person level, starting with California.
  5. Give people a way to remove themselves. Anyone can leave the Deanonymized network at deanonymized.com/opt-out, and it applies across every customer.
  6. Keep a record of consent and opt-outs. Deanonymized keeps a consent ledger you can export.
  7. Sign a data processing agreement with your vendor. Ours is signed in-app.

See how these controls work in the product on the compliance page.

Frequently asked questions

Is identifying website visitors legal in the US?+

Yes, when you disclose it in your privacy policy, honor opt-outs including Global Privacy Control, and follow CAN-SPAM for any emails you send. California adds lawsuit risk under CIPA.

Is visitor identification GDPR compliant?+

Only with a lawful basis, which in practice means consent before identifying EU and UK visitors. Deanonymized resolves those visitors only after a consent signal.

Can I email people identified on my website?+

In the US, CAN-SPAM allows commercial email to business contacts without prior opt-in if the message has accurate headers, your postal address and a working unsubscribe that you honor within 10 business days.

See who is on your site today

Start on the free plan: add one tag and identified companies and people appear within minutes. Upgrade only when it pays for itself.

Free plan forever. Paid plans are month-to-month and cancel in one click.

Related guides