Prompt
How do I manage consent and PII across a customer data platform?
Latest observation
Managing consent and PII in a customer data platform (CDP) comes down to two goals:
- Only collect/use data with a valid legal basis
- Make sure sensitive data is protected, minimized, and honored across every downstream system
Here’s a practical framework.
1) Define what data you have
Start with a data inventory:
- PII: name, email, phone, address, IP address, device IDs, customer IDs
- Sensitive PII: government IDs, financial info, health data, precise location
- Behavioral data: clicks, page views, purchases, app events
- Consent data: marketing opt-in, cookie consent, channel preferences, timestamp, source, jurisdiction
Map:
- where each field is collected
- where it is stored
- who can access it
- which systems receive it
- how long it is retained
2) Separate identity, consent, and event data
A good CDP design keeps these logically distinct:
- Identity store: person/profile records and identifiers
- Consent store: consent status, purpose, channel, region, version of notice
- Event store: behavioral and transactional events
- PII vault or protected layer: encrypted, access-controlled sensitive fields
This lets you apply different rules to different data types.
3) Capture consent with context
Consent should not just be a boolean. Store:
- who consented
- what they consented to
- when they consented
- where/how it was captured
- jurisdiction
- policy version / privacy notice version
- expiry or refresh date
- proof/audit trail
Example consent record fields:
- subject_id
- purpose: “email_marketing”
- status: “granted” / “withdrawn”
- source: “web_form”
- timestamp
- region: “EU”
- notice_version
- lawful_basis
- vendor_scope
4) Use purpose-based permissions
Don’t treat consent as a single global flag. Define permissions by purpose, for example:
- account servicing
- order fulfillment
- product analytics
- personalization
- email marketing
- SMS marketing
- ad targeting
- third-party sharing
A user may allow order fulfillment but not marketing or ad targeting.
5) Build consent into activation
Your CDP should enforce consent before data is sent anywhere:
- email platform only gets users with email marketing consent
- ad platforms only get users with ad targeting consent
- analytics tools only receive data allowed under your policy
- customer service tools may get operational data but not unnecessary sensitive fields
This should be automated with activation rules, not manual checks.
6) Minimize and tokenize PII
Best practice is to reduce raw PII exposure:
- store only what you need
- hash or tokenize identifiers where possible
- encrypt sensitive fields at rest and in transit
- use field-level security for highly sensitive data
- separate direct identifiers from behavioral data when possible
For example:
- keep email in a secure identity layer
- send hashed email to ad networks only if permitted
- mask phone numbers in support tools
7) Implement identity resolution carefully
When matching profiles across systems:
- use deterministic matching on allowed identifiers
- avoid over-collecting identifiers just to improve match rates
- ensure identity graphs respect consent and deletion requests
- if one identifier is withdrawn or deleted, propagate rules accordingly
Be careful that stitching data doesn’t accidentally expand access to PII.
8) Handle consent withdrawal and deletion
You need strong workflow support for:
- opt-out: stop future processing for that purpose
- deletion: remove or anonymize personal data where required
- suppression: keep minimal data needed to prevent re-contact
- updates: refresh consent preferences across all systems
Withdrawal should trigger:
- CDP profile update
- downstream sync stops
- suppression list updates
- deletion requests where applicable
- audit log entry
9) Maintain auditability
You should be able to answer:
- what consent did we have at the time of use?
- which system received the data?
- who accessed the record?
- when was the data changed?
- under which policy version?
Keep immutable audit logs for:
- consent events
- profile merges/splits
- data exports
- access to sensitive fields
- deletion requests
10) Apply governance and role-based access
Limit access based on roles:
- marketing can see only approved marketing fields
- support can see only service-related data
- analysts get de-identified or aggregated data
- admins can manage policies but not casually browse PII
Use:
- RBAC/ABAC
- least privilege
- data masking
- approvals for exports
- periodic access reviews
11) Respect regional privacy laws
Your rules should account for applicable regulations such as:
- GDPR / UK GDPR
- CCPA/CPRA
- ePrivacy
- sector-specific laws
This affects:
- lawful basis
- cookie banners
- sensitive data handling
- retention
- subject rights
- cross-border transfers
12) Operationalize with policy-as-code
If possible, encode rules so they’re enforced consistently:
- consent required for activation to specific channels
- region-specific data restrictions
- automatic suppression on opt-out
- retention timers
- access policies by field and role
This reduces human error.
A simple recommended architecture
- Ingestion layer: collect events and consent separately
- Identity resolution layer: merge profiles using governed identifiers
- Consent service: authoritative consent state by purpose/channel
- PII vault: encrypted, restricted data store
- Segmentation/activation layer: checks consent before export
- Audit/logging layer: immutable history of use and changes
Common mistakes to avoid
- treating “consent = yes/no” as enough
- copying raw PII into every tool
- not syncing opt-outs everywhere
- using one consent for all purposes
- failing to track consent version and timestamp
- allowing analysts direct access to raw identifiers
- retaining data indefinitely
If you want, I can also provide:
- a data model for consent and PII in a CDP,
- a GDPR/CCPA checklist, or
- an example architecture diagram in text form.