Prompt
How do I stitch customer records across devices, channels, and systems?
Latest observation
To stitch customer records across devices, channels, and systems, you need a customer identity resolution strategy that combines deterministic, probabilistic, and data governance approaches.
1) Start with a clear identity model
Define what “the same customer” means in your business.
Typical identifiers:
- Email address
- Phone number
- Login/user ID
- Loyalty ID
- Device ID / cookie / mobile ad ID
- Shipping/billing address
- Payment token
- CRM/account ID
- Support ticket ID
Decide which are:
- Strong identifiers: login, email, loyalty ID, payment token
- Weak identifiers: device ID, cookie, IP, address fragments, name variants
2) Use deterministic matching first
This is the most reliable way to stitch records.
Examples:
- Same authenticated user ID across web and app
- Same verified email or phone number
- Same CRM account number used in POS, support, and marketing systems
- Same hashed email across platforms
Best practices:
- Normalize data before matching
- lowercase emails
- standardize phone format
- cleanse addresses
- Prefer verified identifiers over raw ones
- Maintain a crosswalk table mapping source-system IDs to a master customer ID
3) Add probabilistic matching for unauthenticated or messy data
Use when deterministic rules aren’t enough.
Signals can include:
- Shared device/browser patterns
- IP/network location
- Shipping address similarity
- Name and email similarity
- Purchase behavior patterns
- Temporal behavior across sessions
Techniques:
- Rule-based scoring
- Machine learning entity resolution
- Fuzzy string matching
- Graph-based clustering
Important:
- Assign confidence scores
- Human-review low-confidence matches
- Avoid over-merging separate people in households or shared devices
4) Build a master identity graph
Instead of a single flat table, use a graph of identities:
- Nodes: identifiers and customer profiles
- Edges: evidence that two records belong together
- Weights: confidence level of each link
This helps:
- merge identities over time
- separate direct vs inferred connections
- explain why two records were linked
5) Create a single customer ID
Generate a persistent golden record ID or universal customer ID.
Two common models:
- Master Data Management (MDM): one canonical customer profile
- Customer Data Platform (CDP): event-driven identity stitching for activation/analytics
Your master ID should:
- survive source-system changes
- link to multiple source IDs
- track merge history and lineage
6) Set data governance rules
You need controls for quality, privacy, and auditability.
Include:
- Source-of-truth hierarchy by attribute
- Merge/split logic
- Duplicate detection and manual exception handling
- Consent and preference management
- PII hashing/tokenization rules
- Audit logs for every match/merge decision
7) Handle identity resolution by channel
Different channels require different methods:
- Web/app: login, cookie, device graph
- Email/SMS: verified email/phone
- Retail/POS: loyalty ID, receipt, payment token
- Support/CRM: account/contact IDs
- Advertising: hashed emails, device/ad IDs
- Offline: address, name, householding rules
8) Avoid common mistakes
- Don’t rely only on cookies or device IDs
- Don’t merge on weak signals without confidence thresholds
- Don’t ignore household/shared-device ambiguity
- Don’t let each system create its own “customer truth”
- Don’t skip consent/privacy compliance
9) Implement an operational workflow
A practical architecture looks like this:
- Ingest identity data from all systems
- Normalize and standardize fields
- Match deterministically
- Score probabilistic matches
- Cluster records into person/account entities
- Assign a master customer ID
- Sync resolved identities back to downstream systems
- Continuously monitor match accuracy
10) Measure quality
Track:
- Match precision and recall
- Duplicate rate
- False merge rate
- Coverage of known customers
- Identity confidence distribution
- Time to resolve new identities
11) Privacy and compliance
Be careful with:
- GDPR/CCPA consent rules
- data minimization
- right to access/delete
- purpose limitation
- cross-device tracking disclosures
- hashing does not automatically make data anonymous
Simple practical approach
If you want a starting point, do this:
- Create a canonical
customer_id - Match records deterministically using verified email, phone, login ID, and loyalty ID
- Add a scoring engine for device/address/name similarity
- Store all links in an identity graph
- Keep source IDs and merge history
- Review ambiguous matches manually
- Respect consent and privacy rules
If you want, I can also give you:
- a reference architecture
- a SQL/data model example
- a matching rules framework
- or a CDP vs MDM comparison