Prompt
How do I stitch customer records across web, mobile, CRM, support, and product events?
Latest observation
To stitch customer records across web, mobile, CRM, support, and product events, you need a customer identity resolution layer that connects all the identifiers your systems use into one person-level profile.
1) Define the identifiers you have
Common identifiers include:
- Anonymous IDs: cookie ID, device ID, session ID
- Known IDs: user_id, account_id, CRM contact ID, support ticket requester ID
- Channel-specific IDs: email, phone, mobile ad ID, push token
- System IDs: Salesforce ID, Zendesk ID, Amplitude/Mixpanel ID, app instance ID
The main idea is to treat each as a node in an identity graph.
2) Capture identity events everywhere
You need consistent instrumentation that emits events such as:
anonymous web visitapp install / app openloginsignupemail clickform submitsupport case createdcrm lead/contact updatedpurchase / subscription created
Each event should include:
- timestamp
- source system
- event type
- available identifiers
- metadata
Example:
{
"event": "login",
"timestamp": "2026-11-21T10:15:00Z",
"anonymous_id": "abc123",
"user_id": "u789",
"email": "jane@company.com",
"source": "web"
}
3) Build a deterministic matching strategy first
Use exact matches on stable identifiers to link records:
- same email address
- same internal user_id
- same CRM contact ID
- same verified phone number
- login/signup events that connect anonymous_id → user_id
This is the safest and most reliable approach.
4) Create an identity graph
Model identities as a graph:
- Person node: the resolved customer
- Identifier nodes: email, cookie, device ID, CRM ID, support ID, etc.
- Edges: “belongs to same person” or “was linked by login/verified action”
Then union all connected identifiers into a single customer profile.
A simple rule:
- If
anonymous_id Alogs in asuser_id U, link them - If
user_id Umaps to CRM contactC, link those too - If support ticket email matches verified email on
C, link that as well
5) Handle cross-device and cross-channel stitching
To unify web, mobile, CRM, support, and product events:
- Web: cookie/anonymous ID + login/user ID
- Mobile: device ID + app user ID
- CRM: contact/account IDs + email/phone
- Support: requester email, ticket ID, account ID
- Product telemetry: app user ID, account ID, event-level IDs
Key step: ensure every system sends or can later be mapped to a canonical customer ID.
6) Use a canonical customer key
Pick one internal ID as the source of truth:
customer_idperson_idaccount_idif B2B, pluscontact_idfor the individual
Maintain a mapping table:
customer_id -> all known identifiersidentifier -> customer_id
7) Apply rules for edge cases
Decide how to handle:
- multiple users sharing one device
- one user with multiple emails
- account-level vs individual-level identity
- merged CRM contacts
- family/shared inboxes
- false matches from recycled emails/phones
Best practice:
- mark some identifiers as high confidence
- keep source provenance
- store confidence score
- preserve historical links instead of overwriting them blindly
8) Unify event data into a warehouse or CDP
Common architecture:
- ingest data from web/mobile SDKs, CRM, support, billing, product systems
- normalize event schemas
- resolve identities
- write to a warehouse/lake
- expose a customer 360 view to analytics, product, marketing, and support
Tools people often use:
- CDPs: Segment, RudderStack, mParticle, Twilio Engage
- Warehouses: Snowflake, BigQuery, Databricks
- Identity resolution / reverse ETL / activation tools
9) Example workflow
- Visitor lands on website →
anonymous_id = A1 - Visitor signs up → email +
user_id = U1captured - Same user logs into mobile app →
device_id = D1linked toU1 - CRM creates contact →
contact_id = C1forjane@company.com - Support ticket opened with same email → ticket linked to
C1 - Identity graph merges
A1,D1,U1,C1into one customer profile
10) Governance and privacy matter
Make sure you have:
- consent management
- PII handling and encryption
- retention policies
- role-based access
- GDPR/CCPA compliance
- auditability of identity merges
Recommended approach
If you want something robust:
- Define a canonical
customer_id - Capture anonymous and known IDs on every event
- Resolve identities deterministically first
- Store links in an identity graph or mapping table
- Join all event streams in the warehouse on
customer_id - Keep provenance, timestamps, and confidence levels
If you want, I can also give you:
- a data model/schema for stitching identities
- a SQL example for building the customer 360 table
- or a reference architecture for a CDP + warehouse setup