Prompt
How do I unify customer data across Shopify, Salesforce, Zendesk, GA4, and email tools?
Latest observation
To unify customer data across Shopify, Salesforce, Zendesk, GA4, and email tools, you need a customer identity layer + data pipeline + activation layer. The key is not just moving data into one place, but making sure records from each system resolve to the same person/account.
1) Define the “source of truth” for each data type
Pick one system to own each category:
- Identity: a warehouse / CDP / customer graph
- Orders and ecommerce: Shopify
- CRM and sales lifecycle: Salesforce
- Support interactions: Zendesk
- Web behavior: GA4
- Messaging engagement: email platform
Usually the best pattern is:
- Warehouse as the central system of record
- Optional CDP/identity resolution layer
- Systems like Salesforce/Shopify/Zendesk remain operational sources
2) Use a warehouse as the hub
Common stack:
- BigQuery / Snowflake / Redshift / Databricks
- Ingest data from each source
- Build a unified customer table and event history
Typical tools:
- Fivetran / Airbyte / Stitch for ingestion
- dbt for transformations
- Hightouch / Census / RudderStack / Segment / mParticle for activation and tracking
3) Establish a common customer key
This is the hard part. You need a way to stitch records together using:
- email address
- phone number
- Shopify customer ID
- Salesforce contact/account IDs
- Zendesk user ID
- GA4 user_id / client_id
- email platform subscriber ID
Best practice:
- Create a master customer_id in your warehouse
- Maintain a mapping table from each source’s ID to the master ID
- Use deterministic matching first:
- same verified email
- same phone number
- same logged-in user_id
- Then optionally use probabilistic matching for messy cases
4) Capture and pass identity consistently
Make sure every tool sees the same identity signals.
On your website/app:
- When a user logs in or identifies themselves, send:
customer_id- phone
- Shopify customer ID if available
- Set the same ID across analytics and marketing tools:
- GA4
user_id - email platform contact ID / subscriber properties
- CDP anonymous-to-known identity merge
- GA4
In Salesforce:
- Sync Shopify purchase data and Zendesk support data to Contacts/Accounts
- Keep the unified customer_id as a custom field
In Zendesk:
- Store the same unified customer_id on users/tickets
- Sync support events into the warehouse
5) Build a canonical customer model
At minimum, create these tables:
customers
One row per unified person/account:
customer_id- name
- primary_email
- phone
- created_at
- lifecycle_stage
- first_seen_source
- last_seen_at
customer_identities
All known IDs for the person:
customer_idsource_systemsource_idemailphonecreated_at
customer_events
All behavioral/transactional events:
customer_idevent_typeevent_sourceevent_timestampproperties
customer_touches
Marketing/support/sales interactions:
- email opens/clicks
- campaigns
- cases
- calls
- meetings
6) Map each platform into the model
Here’s how each tool usually fits:
Shopify
- Customers, orders, refunds, carts
- Key fields: Shopify customer ID, email, phone, order ID
- Useful for purchase history and LTV
Salesforce
- Leads, Contacts, Accounts, Opportunities
- Use as source for sales lifecycle and account ownership
- Sync Contact/Account IDs to the warehouse
Zendesk
- Users, tickets, comments, satisfaction
- Great for churn risk and support history
GA4
- Pageviews, sessions, conversions, events
- Use
user_idonce authenticated - Stitch anonymous activity to known customer later
Email tools
- Sends, deliveries, opens, clicks, unsubscribes
- Map subscriber ID + email to customer_id
- Feed engagement back into segmentation
7) Decide how real-time you need it
There are two common modes:
Batch
- Good for reporting, segmentation, BI
- Sync every hour or daily
- Easier and cheaper
Near real-time
- Needed for personalization, fraud, support routing
- Use event streaming or frequent syncs
- More complex
Most teams start with batch, then move critical use cases to near real-time.
8) Use reverse ETL to activate unified data
Once unified in the warehouse, send it back to operational tools:
- Push customer lifetime value to Salesforce
- Send churn risk to Zendesk
- Sync segments to email tools
- Personalize Shopify experiences
- Use audience data for ads
Tools:
- Hightouch
- Census
- RudderStack
9) Governance and data quality
You’ll need rules for:
- duplicate resolution
- email changes
- merged accounts
- household vs individual identity
- consent and permissions
- field-level ownership
- PII handling
Important:
- Log identity merges
- Keep historical lineage
- Respect GDPR/CCPA consent and unsubscribes
- Avoid using GA4/marketing data in ways that violate consent
10) A practical implementation path
Phase 1: Centralize
- Ingest Shopify, Salesforce, Zendesk, GA4, email data into a warehouse
- Normalize schemas
- Create mapping tables
Phase 2: Identity resolution
- Match by email/phone/customer IDs
- Build unified customer_id
- Deduplicate records
Phase 3: Activation
- Sync unified attributes back to Salesforce, Zendesk, and email tools
- Create audience segments
Phase 4: Personalization and automation
- Trigger workflows based on unified behavior:
- high LTV customer opens support ticket
- cart abandoners with prior complaints
- sales follow-up after product usage
Recommended architecture
Sources
Shopify / Salesforce / Zendesk / GA4 / Email tools
↓
Ingestion
Fivetran / Airbyte / Segment / RudderStack
↓
Warehouse
BigQuery / Snowflake
↓
Transform + Identity resolution
dbt + customer graph / match rules
↓
Activation
Hightouch / Census / email platform / Salesforce / Zendesk
↓
BI + analytics
Looker / Tableau / Metabase
If you want the simplest version
Start with:
- BigQuery or Snowflake
- Fivetran or Airbyte
- dbt
- A unified customer_id model
- Hightouch/Census for syncing back
If you want, I can also give you:
- a reference architecture diagram
- a data model/schema
- or a tool-by-tool integration plan for your exact stack.