Loading...

Skip to main content

Industry Reference | Retail and E-commerce

Part of the industry reference. Restructured from the retail deep dive for quick lookup.

Abbreviations: HMAC = keyed-hash message authentication code; FPE = format-preserving encryption; DDM = dynamic data masking; PAN = Primary Account Number.

For PCI-DSS tokenization details, see the techniques reference. For the e-commerce reference architecture, see architecture patterns.

Core challenge: multi-domain identityโ€‹

A single customer appears under 5+ identifier types. Identity resolution must happen in Zone 0 before pseudonymization โ€” otherwise the same customer gets different pseudonyms in different data domains, breaking analytics.

Identifier domainExamplesTreatmentNotes
Canonical customer ID (post-resolution)Internal resolved IDDeterministic encryption (shared key across domain pipelines)Ensures same pseudonym across transaction, browsing, loyalty data
Email, phoneContact detailsDomain-specific HMAC keysPseudonymized for reference, not used as join keys
Payment card (PAN)Credit/debit card numbersTokenization (PCI-DSS v4.0.1)Vaulted or vaultless; scope reduction for PCI compliance
CookiesBrowser trackingConsent-gated, purpose-specificePrivacy Art. 5(3) requires consent
Purchase sequencesTransaction history with timestamps, locations, amountsSequence-level aggregation or DP4 points โ†’ 90% unique; 3 with price data

PCI-DSS v4.0.1 tokenization decisionsโ€‹

ApproachPCI scope reductionGDPR statusWhen to use
Vaulted tokenizationSignificant โ€” random token, no mathematical relationship. Full scope reduction only when token-only systems are properly segmented and cannot access vault or detokenization.Still personal data (reversible via vault)Default for payment data; strongest PCI scope reduction
Vaultless tokenization (FPE)Partial โ€” depends on key management assessmentPersonal data (reversible)When format compatibility with legacy systems required
Keyed hash (HMAC)Accepted since PCI-DSS v4.0.1 (unkeyed explicitly insufficient since Mar 2025)Personal data (pseudonymization)When irreversible substitution acceptable and no format constraint
Truncation (first-6/last-4)Accepted by PCIMay still be personal under GDPR (re-identification possible via other data)Limited use; dual compliance requires caution

See Module 05 ยง BigQuery DDM and the retail deep dive for the full PCI-DSS treatment.

Retail requires consent-aware views in the pseudonymized zone โ€” row-level security filtering by consent flags per purpose.

TouchpointConsent mechanismPipeline impact
Online (web)Cookie consent bannerConsent flag per cookie category; consent-gated data flow
Mobile appIn-app consent dialogApp-level consent store; sync to data platform
In-storeLoyalty program T&CContractual necessity (Art. 6(1)(b)) for program operation; explicit consent for marketing
Email / directOpt-in/opt-outPreference center; unsubscribe propagation
Third-party sharingExplicit consent per partnerPartner-specific consent flag; clean room architecture

Common client starting positionโ€‹

Multiple identity silos (email in one system, loyalty in another), no unified resolution. Consent fragmented across touchpoints. Typical first engagement: unify identity in Zone 0, implement consent-aware pseudonymized views in Zone 1, then add Zone 2 for analytics.