Sub topic 10
Where the data lives: CRM, CDP and data warehouse
This chapter assumes you know what first-party and zero-party data are, why consent matters, and the basics of segmentation. It does not assume any engineering background. You should be able to read a short SQL query.
Collected data has to be stored somewhere. Most marketing teams end up with three kinds of system: a CRM, a customer data platform (CDP) and a data warehouse. Each was built for a different job. Problems usually start when a team expects one tool to do the job of another.
The three systems in one view
- A CRM (customer relationship management system) stores records about known people and companies, plus the interactions your teams have with them. Examples of what it holds: contact details, deal stages, support notes, account owners.
- A CDP (customer data platform) collects data from many sources, ties it to one profile per person, and sends audiences to other tools. It is built for marketers to use directly.
- A data warehouse is a large analytical database. It stores raw and modeled data from every system and is queried with SQL. Examples of what it holds: full event history, orders, finance data, and model outputs.
| Question | CRM | CDP | Data warehouse |
|---|---|---|---|
| Main user | Sales, service, marketing ops | Marketers, CRM managers | Analysts, data engineers |
| Typical unit | Contact, account, deal | Unified profile and its events | Any table you design |
| Strength | Managing relationships and workflows | Profile building and audience activation | Flexible analysis at scale, full history |
| Weakness | Poor at high-volume event data | Less suited to deep custom analysis | Not built for real-time marketing actions on its own |
| Data shape | Fixed fields, objects | Profile traits and events | Open: you define schemas |
The table shows tendencies, not rules. Many products overlap. Some CRMs offer audience tools, and some warehouses now offer activation features.
How data flows between them
A common pattern has data arriving from the website, app, email platform and stores. Those events and records are collected, stored, unified and then used.
Two points about this diagram matter in practice.
- There is rarely one tool that holds everything. The warehouse is usually the most complete record. The CDP holds the version of that record that marketers can act on quickly. The CRM holds the version that sales and service teams work from.
- Data flows both ways. Campaign results return to the warehouse so you can measure them. Modeled values, such as a predicted purchase likelihood, can flow from the warehouse back to the CDP.
What each system does well
CRM: the relationship record
A CRM is organized around objects such as contacts, accounts and deals. Each object has defined fields. This is good for questions like "who owns this account?" and "what did we last discuss with this customer?"
A CRM is a weak place for raw behavioral data. Storing every page view or app tap as a contact field or activity is costly and clutters the record. Keep summaries in the CRM, such as "last purchase date" or "preferred category", and keep the raw events elsewhere.
Zero-party data fits the CRM well when it is a stable stated preference, such as a communication frequency or a product interest. It gives your teams useful context at the moment they talk to the customer.
CDP: the marketer's working layer
A CDP usually does four things.
- Collects events and records through site and app code, and through connections to other tools.
- Unifies them into one profile per customer. The next chapter covers how this matching works.
- Segments profiles into audiences using traits and events.
- Syncs audiences to channels such as email, ads and on-site personalization.
The main benefit is speed and independence. A marketer can build an audience without waiting for an engineer to write a query. The main risk is a second copy of your data that drifts away from the warehouse and the CRM.
Data warehouse: the system of record for analysis
A warehouse stores data in tables that you design. It keeps history for as long as you decide. It can join marketing data with orders, returns, margins and costs. This is where you answer questions such as "do customers who share a preference stay longer?"
Many teams now use the warehouse as the central store and let tools read from it. This is sometimes called a composable or warehouse-first approach. The CDP then becomes a thinner layer that mainly activates what the warehouse already knows. The trade-off is that your data team must build and maintain the models, and marketers depend on them.
Choosing: decision criteria
There is no single correct setup. Use these questions to decide.
- Who needs to act on the data, and how fast? If marketers need real-time audiences without engineering help, a CDP helps. If analysts need deep history, you need a warehouse.
- How much data engineering capacity do you have? A warehouse-first design needs people who can maintain models. Without them, a packaged CDP may be more practical.
- How many sources do you have? With two or three sources, a CRM and email platform may be enough for now. Complexity grows quickly with more sources.
- What are your consent and deletion obligations? Every copy of a person's data is a place where a deletion or consent withdrawal must be applied. Fewer copies means less risk.
- What is the cost of a wrong or stale value? Real-time needs push you toward a CDP or streaming. Weekly reporting does not.
Storing consent with the data
Consent must travel with the data. A preference value without its purpose and status cannot be used safely. The record below keeps the minimum useful context for one stated preference.
{
"customer_id": "c_123",
"field": "preferred_category",
"value": "trail_running",
"data_type": "zero_party",
"collected_via": "preference_center",
"consent_purpose": "personalization",
"consent_status": "granted",
"collected_at": "2026-03-04T10:15:00Z"
}Each field has a job. data_type tells you how much to trust the value as a statement of intent. collected_via lets you trace where it came from. consent_purpose and consent_status control what you may do with it. collected_at lets you detect stale values and apply retention rules.
In a warehouse, you would usually keep consent in its own table, one row per customer and purpose. Queries then join to it. This makes consent a rule that every segment must pass, not an optional filter that someone might forget.
SELECT c.customer_id, c.email
FROM customers AS c
JOIN consents AS k
ON k.customer_id = c.customer_id
WHERE k.purpose = 'email_marketing'
AND k.status = 'granted'
AND c.preferred_category = 'trail_running';This query returns only customers who granted email marketing consent and stated a category preference. Because it uses an inner join, a customer with no consent row is excluded. That is the safe default: no record means no permission.
Common errors
- Using the CRM as an event store. It slows down, costs more and becomes hard to read. Keep raw events in the warehouse or CDP.
- Treating the CDP as the only copy. If the CDP vendor changes or you switch tools, you lose history. Keep the warehouse as a durable record.
- Several unsynced copies of consent. If the email platform, the CDP and the CRM each hold their own consent status, they will disagree. Pick one source of truth for consent and sync from it.
- Ignoring deletion. When a customer asks for deletion, it must reach every system, including backups and downstream tools, within your legal time limit.
- Unclear field definitions. Two teams may both use a field called "customer" with different meanings. Write definitions down and name the owner of each.
- Loading everything "just in case". Storing data you have no purpose for adds risk and cost. Collect and keep data for stated purposes.
Edge cases
- Same person, different systems. A customer may be "[email protected]" in the CRM and an anonymous device ID in the CDP. Until these are linked, you will count one person as two or more. Linking is the subject of the next chapter.
- Changed consent. A customer who withdraws consent must drop out of future segments. If audiences are synced to ad platforms on a schedule, the withdrawal must be applied in the next sync, and ideally sooner.
- Conflicting values. A customer states one preferred category in a quiz and buys from another. Decide in advance which value wins for which use. Often a stated preference is kept as its own field next to the observed behavior, not overwritten by it.
Exercise
A retailer stores every product-page view as an activity on the contact record in its CRM. The CRM is slow, and the sales team cannot find useful notes. What would you change, and where should each kind of data go?
Show answer
Move the raw page views out of the CRM into the warehouse, or into the CDP if marketers need them for real-time audiences. Keep only summaries in the CRM, such as last viewed category or last purchase date, so sales sees a short, useful record. Consent status should stay in one source of truth that all three systems sync from.
Exercise
A segment query joins customers to a consents table with a LEFT JOIN and filters on k.status = 'granted' in the WHERE clause. A teammate rewrites it to filter on k.purpose = 'email_marketing' only, and drops the status check. What goes wrong?
Show answer
Without the status check, customers who withdrew or declined consent for email marketing still appear, because a row exists for that purpose. The segment must check both the purpose and a granted status, so that withdrawn consent excludes the customer.