Prompt
I'm building a customer 360 view from Salesforce, Shopify, and Zendesk data
Latest observation
That’s a very common and very valuable use case. A good Customer 360 from Salesforce, Shopify, and Zendesk usually starts with a shared customer identity model and then layers in transactions, support activity, and CRM context.
Core approach
1) Define the canonical customer
Pick one “golden record” concept for a person or company, for example:
- Individual customer
- primary key:
customer_id - matched by email, phone, Shopify customer ID, Salesforce Contact ID, Zendesk user ID
- primary key:
- Account / company
- primary key:
account_id - matched by Salesforce Account, Shopify company, Zendesk organization
- primary key:
If you serve both B2C and B2B, model both person and account.
2) Build an identity resolution layer
You’ll need a crosswalk table that links source IDs:
salesforce_contact_idsalesforce_account_idshopify_customer_idzendesk_user_idzendesk_organization_id- phone
- normalized name
- shipping/billing address
Use:
- deterministic matching first: exact email, exact phone, known customer IDs
- then probabilistic matching: name + address + domain, etc.
Keep a match confidence score and a source-of-truth flag.
3) Create domain-specific fact tables
Typical structure:
Customer dimension
One row per golden customer:
- name
- primary email
- primary phone
- lifecycle stage
- acquisition source
- created_at
- last_seen_at
- current owner / account manager
Orders / purchases
From Shopify:
- order_id
- customer_id
- order_date
- subtotal, tax, shipping, discount, total
- product/line-item details
- fulfillment status
- refund status
Support interactions
From Zendesk:
- ticket_id
- customer_id
- created_at
- solved_at
- status
- priority
- channel
- tags
- sentiment / CSAT if available
- first response time, resolution time
CRM activity
From Salesforce:
- lead/contact/account/opportunity IDs
- stage
- opportunity value
- close date
- owner
- next step
- activity history, tasks, calls, meetings
Recommended data model
A practical warehouse model often looks like:
dim_customerdim_accountbridge_customer_identityfact_ordersfact_order_itemsfact_ticketsfact_opportunitiesfact_interactionsorfact_activity
This works well in Snowflake, BigQuery, Redshift, or Databricks.
Key design decisions
Identity precedence
Decide what wins when sources conflict:
- name: Salesforce vs Shopify vs Zendesk
- email: most recently verified?
- phone: CRM or checkout?
- lifecycle status: Salesforce?
- support status: Zendesk?
- spend metrics: Shopify?
Granularity
Keep raw event-level data, not just aggregates. You’ll want:
- order level
- line-item level
- ticket level
- message/comment level if needed
- CRM activity level
Historical tracking
Use slowly changing dimensions or snapshot tables for:
- customer attributes
- account owner
- lifecycle stage
- support status
Common metrics for Customer 360
You can derive useful KPIs like:
- total lifetime value
- total orders
- average order value
- last purchase date
- days since last purchase
- open ticket count
- average ticket resolution time
- CSAT
- opportunity pipeline stage
- churn risk indicators
- upsell/cross-sell signals
Integration notes by source
Salesforce
Likely entities:
- Lead
- Contact
- Account
- Opportunity
- Case
- Task/Event
Watch out for:
- duplicate contacts
- person accounts vs business accounts
- custom objects
- record ownership and visibility rules
Shopify
Likely entities:
- Customer
- Order
- Order Line Item
- Refund
- Fulfillment
- Address
Watch out for:
- guest checkout customers
- multiple emails for same buyer
- refunds and partial refunds
- test orders
Zendesk
Likely entities:
- User
- Organization
- Ticket
- Ticket Comment
- Satisfaction Rating
- Tags
Watch out for:
- one user with multiple emails
- shared inboxes
- organization mapping
- private comments vs public comments
Practical implementation steps
- Extract data from all three systems into raw staging tables.
- Standardize formats:
- emails lowercase
- phones E.164
- country/state normalization
- timestamps in UTC
- Resolve identities into a master customer key.
- Model facts and dimensions in the warehouse.
- Build business metrics and a semantic layer.
- Expose to BI / activation tools for dashboards and workflows.
Important governance considerations
- GDPR/CCPA consent handling
- PII masking
- data retention policies
- role-based access
- audit trail for merged identities
- deduping rules and exception handling
If you want, I can help you with one of these next:
- a sample data model for the warehouse
- a matching/identity resolution strategy
- dbt model examples for Salesforce + Shopify + Zendesk
- a dashboard metric spec for Customer 360
- an ETL architecture using your stack
If you want, I can draft a concrete schema for your exact setup.