Back to Blog

What Is a Data Warehouse? Clear Insights from Scattered Data

Data center corridor with server racks and streams of data

If you run paid campaigns, sell online or generate leads, your data is probably spread across a dozen tools. Spend and clicks sit in Google Ads and Meta Ads Manager. Engagement lives in TikTok, Instagram and LinkedIn. Orders are in Shopify and Amazon Seller Central. Leads and deals are in Salesforce or HubSpot, and phone calls are tracked in CallTrackingMetrics (CTM). Each platform reports its own version of success, and none of them can tell you what you really want to know: which campaigns actually make money?

A data warehouse is how growing brands answer that question. This guide explains what a data warehouse is, how a data warehouse works, the core concepts and architecture behind it, how it differs from a regular database, and how to choose between a cloud data warehouse and a relational database.

Key takeaways

  • A data warehouse pulls data from all your ad, social, e-commerce and CRM tools into one place, cleans it, and keeps the full history for analysis.
  • It is built for analysis, while the databases inside Shopify or Salesforce are built for running day-to-day transactions.
  • It replaces conflicting platform reports with one source of truth for spend, leads, orders, revenue, ROAS and customer acquisition cost (CAC).
  • Most new projects use a cloud data warehouse such as BigQuery or Snowflake which you pay for as you use, though a relational database like PostgreSQL is often a practical place to start.

What Is a Data Warehouse?

A data warehouse is a central system that collects data from many sources, such as ad platforms, online stores and CRMs, converts it into one consistent format, and stores both current and historical records so teams can report on and analyze performance across every channel.

Think of each marketing platform as a separate shop with its own till receipts, written in its own format. Google Ads counts a conversion one way, Meta another, and Shopify records the actual order. A data warehouse is the head office where every receipt is collected, translated into the same language and filed together, so you can see what each campaign really produced and compare it with last month, last year or last Black Friday.

A data warehouse has four defining characteristics, first described by Bill Inmon, often called the father of data warehousing:

  • Subject-oriented: organized around business topics such as campaigns, customers and orders, not around individual apps.
  • Integrated: data from different tools is matched. “Spring_Sale_2026” in Google Ads, the same UTM tag in Shopify and the lead source in Salesforce become one campaign.
  • Time-variant: every record is tied to a date, so you can track trends and seasonality.
  • Non-volatile: history is kept, not overwritten. When a platform changes its reporting or deletes old data, your warehouse still has it.

Why Marketing Teams Need a Data Warehouse

Native platform dashboards are useful for day-to-day optimization, but they create four problems as you grow:

  • Double-counted conversions. Google Ads and Meta both use their own attribution rules, so it is common for the conversions they report together to exceed the orders Shopify actually recorded.
  • Leads without outcomes. Facebook lead forms and Google Ads report form fills, but only your CRM knows which leads became qualified opportunities and paying customers.
  • Missing offline conversions. For many service businesses the most valuable leads call rather than fill in a form. Call data in CTM has to be joined with campaign and CRM data to show its real impact.
  • Split e-commerce data. Brands selling on both Shopify and Amazon have two sets of orders, fees, returns and customers, plus Amazon Ads spend reported separately.

A data warehouse solves all four by putting every platform’s data side by side and applying one consistent set of rules.

Core Data Warehouse Concepts

You do not need to be an engineer to work with a warehouse, but these data warehouse concepts come up in every project.

OLTP vs OLAP

OLTP (online transaction processing) systems record events as they happen: a Shopify checkout, a new Salesforce lead, a call logged in CTM. OLAP (online analytical processing) systems, including data warehouses, analyze large volumes of those events over time, such as total revenue by campaign by month for the past two years.

ETL and ELT

ETL (extract, transform, load) copies data out of each platform, cleans it, then loads it into the warehouse. ELT (extract, load, transform) loads raw data first and transforms it inside the warehouse. ELT is now standard with cloud data warehouses: you keep the raw ad and order data and can re-run the logic if, for example, you change your attribution model. Connector tools such as Fivetran, Airbyte or Supermetrics handle the extraction from Google Ads, Meta, Shopify, Amazon and Salesforce.

Fact tables and dimension tables

Fact tables store measurable events and numbers: impressions, clicks, spend, leads, calls, orders and revenue. Dimension tables describe them: which date, which campaign, which platform, which country, which customer. You filter and group by dimensions and add up the facts.

Star schema and data marts

In a star schema, one central fact table connects to several dimension tables. It is simple to understand and fast to query in BI tools such as Looker Studio, Power BI or Tableau. A data mart is a focused set of these tables for one team, for example a marketing performance mart or an e-commerce sales mart.

Figure 1. A marketing performance data mart in a star schema: one fact table for daily campaign results, surrounded by dimension tables that describe them.

Grain and history

The grain is what one row represents: one campaign per day, one order, or one lead. Choosing the right grain decides which questions you can answer later. Slowly changing dimensions keep history when details change, for example when a lead moves from marketing qualified lead (MQL) to sales qualified lead (SQL) in Salesforce, so past reports stay accurate.

How Does a Data Warehouse Work?

So, how does a data warehouse work in practice It regularly pulls data from your platforms into one place, cleans and joins it, and makes it available for dashboards and analysis. Here is the process for a typical marketing and e-commerce setup.

Figure 2. How a marketing data warehouse works: from ad platforms, stores and CRM to dashboards, attribution and audiences.
  1. Connect the sources. Google Ads, Meta Ads, TikTok and LinkedIn Ads, Shopify, Amazon Seller Central and Amazon Ads, Salesforce or HubSpot, CallTrackingMetrics, GA4 and your email platform.
  2. Ingest the data. Connectors call each platform’s API on a schedule, usually hourly or daily, and webhooks can push events such as new orders or leads in near real time.
  3. Land it in staging. Raw data is stored exactly as each platform delivered it. This lets you trace any number back to its source and rebuild reports if logic changes.
  4. Clean and join. Currencies are converted, campaign names and UTM parameters are standardized, duplicate leads are merged, and orders, leads and calls are matched to the campaigns that drove them.
  5. Model for reporting. Clean data is organized into fact and dimension tables, such as daily campaign performance, leads and pipeline, and orders and customers.
  6. Use the data. Teams build ROAS, CAC and pipeline dashboards, run attribution analysis, build customer segments, and send results back to the ad platforms and CRM (often called reverse ETL).

A worked example

An online skincare brand sells on Shopify and Amazon, runs Google Ads, Meta Ads and TikTok campaigns, and captures wholesale leads in HubSpot. The founder asks: “What is our true return on ad spend by channel, including Amazon?”

Without a warehouse, the team adds up three ad dashboards and two sales reports in a spreadsheet, and the numbers never match. With a warehouse, daily spend from each ad platform, orders and refunds from Shopify, sales and fees from Amazon, and deals from HubSpot load automatically. UTM tags link Shopify orders to campaigns, Amazon Ads results are matched to Amazon sales, and refunds are subtracted. One dashboard then shows spend, net revenue, ROAS, new-customer CAC and customer lifetime value (LTV) by channel, and everyone sees the same numbers.

Data Warehouse Architecture

Data warehouse architecture describes how the parts of a warehouse fit together. The classic model has three tiers:

  • Bottom tier, the storage layer: the database where data is loaded and stored.
  • Middle tier, the analytics engine: processes queries quickly across large data volumes.
  • Top tier, the front end: the BI dashboards, reports and tools people use, such as Looker Studio, Power BI or Tableau.

Inside the warehouse, data moves through layers of increasing quality, often called the medallion architecture:

LayerWhat it holdsMarketing example
Bronze (staging)Raw data exactly as deliveredDaily Google Ads and Meta reports, raw Shopify orders
Silver (integration)Cleaned, deduplicated, matched dataStandardized campaign names, merged CRM leads, currencies converted
Gold (presentation)Business-ready tables and metricsROAS by channel, CAC by campaign, pipeline by lead source

Enterprise Data Warehouse vs Cloud Data Warehouse

These two terms are often presented as alternatives, but they describe different things. “Enterprise” describes scope: how much of the organization the warehouse covers. “Cloud” describes the deployment model: where and how the warehouse runs. An enterprise data warehouse can run on premises, in the cloud or in a hybrid setup. The real comparison is between a traditional on-premises EDW and a cloud data warehouse.

What is an enterprise data warehouse (EDW)?

An enterprise data warehouse is a centralized, integrated analytical repository that covers every major subject area of the organization (sales, finance, marketing, supply chain, HR, customer service) instead of a single department. Technically, it is defined by:

  • Conformed dimensions: shared customer, product, date and geography dimensions reused across every fact table, so cross-functional queries join cleanly.
  • Integrated keys and master data: records from different source systems are mapped to common surrogate keys, often through a master data management (MDM) process.
  • A layered model: commonly a normalized (3NF, Inmon-style) or Data Vault core for integration and history, with dimensional data marts on top for consumption.
  • Enterprise-wide governance: central metadata, lineage, data quality rules, role-based access control and audit logging.

Historically, EDWs ran on on-premises massively parallel processing (MPP) systems such as Teradata, Oracle Exadata and IBM Netezza, which is why the term is often wrongly treated as a synonym for “on-premises.” Today most new EDWs are built on cloud platforms.

Data engineer working on a laptop in a server room

What is a cloud data warehouse?

A cloud data warehouse is a managed analytical database management system delivered as a service on public cloud infrastructure. Its defining technical traits are:

  • Decoupled storage and compute: data persists in cloud object storage while stateless compute clusters execute queries, so each scales and is billed independently.
  • Columnar, compressed storage: data is stored by column in compressed blocks or micro-partitions with min/max metadata, letting the engine skip (prune) blocks a query does not need.
  • MPP query execution: a query is split into fragments that run in parallel across many nodes.
  • Elastic and serverless operation: compute can scale up, scale out for concurrency, or suspend automatically when idle.
  • Native semi-structured support: JSON and nested data can be queried directly, and open formats such as Parquet and Apache Iceberg are increasingly supported.
  • Managed operations: the provider handles patching, replication, backups and hardware under a shared responsibility security model.

Choosing a platform: BigQuery, Snowflake or a relational database

You can run a data warehouse on a dedicated cloud platform or on a standard relational database. PostgreSQL, Microsoft SQL Server and Oracle work in much the same way for this purpose, so they are grouped together below.

Google BigQuerySnowflakePostgreSQL / SQL Server / Oracle
TypeServerless cloud data warehouseManaged cloud data warehouse on AWS, Azure or Google CloudRelational databases, self-hosted or managed (e.g. Amazon RDS, Azure SQL, Oracle Cloud)
Storage & computeColumnar storage, separate from compute; fully serverlessColumnar micro-partitions; separate storage and compute clusters (virtual warehouses)Row-based by default, on the same server; column-store options exist (SQL Server columnstore, Oracle In-Memory, PostgreSQL extensions)
PricingPer TiB of data scanned, or reserved capacity (slots)Compute credits billed per second, plus storagePostgreSQL is free and open source; SQL Server and Oracle need licenses; plus server or hosting costs
ScalingAutomaticResize or add compute clusters in secondsMostly a bigger server; read replicas for reporting
Loading marketing dataBuilt-in transfers from Google Ads and GA4; third-party connectorsThird-party connectors (e.g. Fivetran); easy data sharing with partnersCustom Python scripts or ETL tools (dbt, Airflow, SSIS)
Best fitGoogle-centric stacks, large GA4 or event data, variable workloadsMulti-cloud setups, many teams, sharing data with agenciesSmall to mid-size warehouses, predictable workloads, cost-conscious teams with SQL and Python skills

Data Warehouse vs Database: What’s the Difference?

The data warehouse vs database question comes up often, because a warehouse is technically a type of database. The difference is purpose. Shopify, Salesforce and CTM each run on a database built to record transactions quickly and reliably. A data warehouse combines those databases’ data to analyze performance across all of them.

Database (OLTP)Data warehouse (OLAP)
PurposeRun day-to-day operationsAnalyze performance and support decisions
Example question“What is the status of order #10482?”“Which channel had the best ROAS over 12 months?”
Data sourcesOne app (e.g. Shopify)Many apps (ads, store, CRM, calls)
HistoryMostly current stateYears of history
WorkloadMany small, fast reads and writesLarge queries across millions of rows
UsersCustomers, store and sales staffMarketers, analysts, managers, BI and AI tools

Data warehouse vs data mart vs data lake

Data warehouses are often compared with two related approaches. A data mart is a smaller, focused slice of a warehouse, and a data lake holds raw data before it is cleaned or modeled. Most mature data setups use all three together.

Data warehouseData martData lake
PurposeStores integrated, structured data covering many subject areas across the businessStores a focused subset of data for one department or subject, such as marketing or salesStores large volumes of raw data in its original format, including unstructured data such as images, video, logs and social posts
AdvantagesOne consistent, company-wide view that supports cross-department analysisFaster and cheaper to build; simple for a single team to useFast, low-cost ingestion; keeps everything for future analysis and machine learning
DisadvantagesTakes more time, planning and governance to buildNarrow scope; marts built separately can drift into conflicting numbersData is not cleaned, deduplicated or standardized, so it is hard to use directly for reporting
OutcomeStructured, analysis-ready data for reporting and BIStructured data ready for one team’s dashboards and reportsRaw data that can be reprocessed and reused for many purposes
Typical usersAnalysts, managers, finance, BI toolsOne department’s analysts and managersData engineers and data scientists

Use case: an e-commerce brand keeps raw ad creatives, Google Ads click logs and the full GA4 event export in a data lake, where they are cheap to store and available if the data team later wants to train a model on them. Cleaned ad spend, Shopify and Amazon orders and Salesforce deals go into the data warehouse, where leadership and finance see revenue and profit by channel. From the warehouse, the team builds a marketing data mart with just the campaign, lead and ROAS tables the paid media team uses every day in Looker Studio.

Benefits of Data Warehouse Adoption for Marketing

  1. One source of truth. Marketing, sales and finance work from the same numbers instead of arguing over platform dashboards.
  2. True ROAS and CAC. Spend is matched to real orders and closed deals, not just platform-reported conversions.
  3. Full-funnel lead tracking. Follow every lead from the ad click through the form fill or CTM call, Salesforce opportunity and closed revenue.
  4. Better budget allocation. See which campaigns, audiences and keywords drive profitable customers, and move budget accordingly.
  5. Unified e-commerce view. Combine Shopify and Amazon sales, fees, returns and ad spend to see real profit by product and channel.
  6. Higher data quality. Poor-quality data is expensive: it wastes ad budget, distorts reports and leads to wrong decisions. Cleaning and validating data once, centrally, means every team and dashboard works from accurate numbers.
  7. Smarter audiences. Build segments such as high-LTV customers or lapsed buyers and sync them back to Google Ads, Meta and your email platform.
  8. Better ad platform learning. Send qualified-lead and revenue data back to Google Ads (offline conversion import) and Meta (Conversions API) so their algorithms optimize for real value.

Ready to take your marketing to the next level?

Let's chat

Our Final Thoughts

Marketing teams have never had more data, or more ways to misread it. Google Ads, Meta, TikTok, Shopify, Amazon, the CRM and call tracking each tell their own version of the story. When those versions are reported separately, budgets tend to follow the platform with the most generous attribution, not the channel that actually brings in revenue. A data warehouse fixes this at the root: it brings every source into one model, applies one set of rules and keeps the full history.

A data warehouse gives marketing data the structure it never gets inside the platforms. Ingestion pipelines pull data from each API on a schedule, then deduplicate and standardize it in a layered model, so every metric traces back to its raw source. Conformed dimensions, such as one campaign table, one customer table and one calendar, let ad spend, CRM pipeline, call records and orders be joined at the same grain. Centralized access control, data quality tests and lineage make the numbers auditable. The result is a governed, reproducible dataset that dashboards, attribution models and AI tools can all rely on.