Insights Curry

Data Architecture for E-commerce: Connecting Customer, Product and Transaction Data

9 min read

An online retailer sends a discount code for a jacket to a customer who bought that exact jacket yesterday. The recommendation engine shows items that went out of stock last week. The finance dashboard says revenue was up, while the marketing dashboard says it was flat. Every team is looking at real data. None of it agrees.

Person shopping on a smartphone beside a laptop, with a cart icon linked to customer, document, AI and email icons

This is what weak data architecture looks like in e-commerce. Customer records live in one system, product details in another and transactions in a third, and nobody has joined them properly. The result is wasted marketing spend, poor personalisation and reports nobody trusts.

Good data architecture for e-commerce fixes this at the root. It connects customer, product and transaction data into one governed foundation that analytics teams, machine learning models and AI applications can all use. This guide explains how to design it.

Why e-commerce data gets fragmented

E-commerce businesses grow by adding tools. A storefront platform, a payment gateway, an email service, a loyalty app, a customer support desk, an ad platform, a warehouse system and a marketplace integration all arrive at different times. Each one captures data in its own format and assigns its own identifiers.

The same shopper can appear as an email address in the marketing tool, a phone number in the support desk and a device ID in web analytics. The same product can have one SKU in the warehouse system and another on a marketplace. Orders can be recorded before payment is confirmed in one system and after in another.

None of this matters until someone asks a cross-system question. How much does a customer acquired through a particular campaign spend over a year? Which products are returned most, and by whom? What is the real margin after shipping, discounts and refunds? Answering those questions requires a shared structure, and that is the job of architecture.

The three data domains that matter most

E-commerce data architecture rests on three core domains. Getting these right gives the business a base on which almost every other use case depends.

Customer data covers who the shopper is and how they behave. It includes identity and contact details, consent preferences, acquisition source, browsing and search behaviour, support interactions and loyalty status. The central challenge is identity resolution, which means recognising that several records belong to one person.

Product data describes what is for sale. It includes SKUs, categories, attributes, pricing, cost, inventory, supplier details and content such as images and descriptions. The challenge here is consistency. Attributes that vary across channels, duplicate listings and missing fields all weaken search, recommendations and merchandising.

Transaction data records what happened. It covers orders, payments, discounts, shipping, returns and refunds. It is the source of truth for revenue and margin, and it must reconcile with finance. The challenge is timing and status, since an order can move through many states.

Connecting the three is where value appears. A customer linked to the products they browse, buy and return supports personalisation, demand forecasting and lifetime value analysis from a single source.

Start with a clear data model

Before choosing tools, agree on how the business thinks about its data. A data model defines the main entities, such as customer, product, order, and the relationships between them.

Keep it practical. Define a single customer ID that all systems map to. Define a master product record, with a mapping to channel-specific listings. Define order and line-item structures that capture price, discount, tax and fulfilment status in a consistent way.

Document business definitions as well. What counts as an active customer? Is revenue measured before or after returns? When two teams answer these differently, dashboards will never match, whatever the technology.

Choose a platform that fits the workload

Most modern e-commerce data platforms follow a layered pattern. Raw data lands from source systems in a central store. It is then cleaned, standardised and joined into curated datasets. These feed reporting, analytics and machine learning.

Two options dominate. A data warehouse stores structured data in a form optimised for fast reporting and SQL analysis. A data lake holds raw data of any type, including clickstream logs, images and text, at low cost. A lakehouse combines both, offering warehouse-style management on top of lake storage, and it suits retailers that want reporting and AI on the same data.

The right choice depends on volume, variety and use. A smaller business focused on dashboards may do well with a cloud warehouse. A larger one with clickstream data, product images and reviews will likely need lakehouse capabilities. Cloud platforms make it possible to start small and grow.

Build reliable pipelines

Architecture is only as good as the pipelines that feed it. E-commerce data arrives in batches, such as nightly order exports, and in streams, such as live clickstream events.

Batch pipelines suit finance, inventory snapshots and marketing reports. Streaming pipelines suit use cases that need immediate response, such as fraud checks, real-time recommendations and stock alerts.

Build pipelines with monitoring from day one. Track data freshness, volume and schema changes, and alert the team when something breaks. A broken feed that nobody notices for a week quietly corrupts every report downstream.

APIs matter too. Data should flow back to operational systems, so that a churn score or a product recommendation reaches the email platform or the storefront at the moment it is needed.

Put governance and quality in the middle

Governance can sound dull, yet in e-commerce it protects revenue and trust. Customer data is personal data, and privacy rules govern how it is collected, stored and used. Consent must follow the customer record, so a person who opts out of marketing is excluded everywhere.

Define ownership. Each data domain needs a named owner who is accountable for its accuracy and definitions. Add automated quality checks for duplicates, missing values, impossible figures and mismatches between systems. When an order total in the warehouse differs from the payment system, the architecture should surface it, not hide it.

Access control completes the picture. Analysts, marketers and external partners need different views, and sensitive fields such as contact details and payment references should be restricted.

Design for analytics and AI together

A well-built foundation supports two broad kinds of work. Structured data feeds analytics and machine learning, such as demand forecasting, customer segmentation, lifetime value models, churn prediction and recommendation engines. Unstructured data, including product descriptions, reviews and support transcripts, feeds language models and retrieval-based assistants.

For AI, preparation matters. Machine learning needs clean historical data, consistent features and labels such as “returned” or “repeat purchase”. Generative AI needs well-organised knowledge, including product catalogues, policies and FAQs, stored in a form a model can search and cite.

Planning for both from the start avoids a second rebuild when the AI roadmap arrives.

A practical sequence for getting started

Many e-commerce teams try to fix everything at once and stall. A staged approach works better.

Begin with an audit of sources, identifiers and known pain points. Pick one high-value question, such as customer lifetime value by acquisition channel, and build the minimum architecture needed to answer it well. Establish the customer and product masters first, since nearly every later use case depends on them. Add governance and quality rules as the platform grows. Then extend to additional domains and use cases.

Each stage should deliver something visible, such as a trusted dashboard or a working model, so the business sees the return.

Common mistakes to avoid

Buying a platform before agreeing on definitions is the most frequent error. Tools cannot settle disputes about what a customer or an order means. Another is treating identity resolution as optional. Without it, personalisation and attribution stay unreliable. Teams also underestimate the cost of running pipelines and storage, so cost monitoring should be built in. Finally, some organisations ignore unstructured data, and later find that reviews and support conversations hold the clearest signals about product problems.

How InsightCurry supports e-commerce data architecture

InsightCurry’s Data and Cloud Architecture practice helps organisations build the data foundation an AI strategy needs. Its work covers enterprise data architecture, including data domains, ownership models and governance. It covers cloud architecture and modernisation, balancing scalability, security, cost and flexibility. It builds modern data platforms and engineering, including lakehouse, warehouse and streaming environments with reliable pipelines and APIs. And it designs AI-ready data, with curated datasets, embeddings, feature engineering and knowledge structures for machine learning and generative AI.

For e-commerce, this means a connected view of customers, products and transactions that teams can trust, and that models and AI applications can use.

Build the data foundation your AI strategy needs

If your customer, product and transaction data tell different stories, the fix starts with architecture. InsightCurry helps e-commerce businesses connect fragmented sources into a governed platform ready for analytics and AI.

FAQs

Questions? Let's Make Them Useful.

What is data architecture for e-commerce?
It is the design of how customer, product and transaction data is collected, stored, connected, governed and delivered to analytics, machine learning and operational systems.
Why is customer identity resolution important?
Shoppers appear under different identifiers across channels. Resolving them into one profile makes personalisation, attribution and lifetime value analysis reliable.
Should an e-commerce business use a data warehouse or a data lakehouse?
A warehouse suits structured reporting. A lakehouse suits businesses that also need to store and analyse raw, high-volume or unstructured data such as clickstream, images and text, and that plan to run machine learning on the same platform.
How does good data architecture improve personalisation?
It links browsing, purchase and return history to a single customer profile and a consistent product catalogue, so recommendations and offers are based on accurate, current information.
How do I keep customer data compliant with privacy rules?
Carry consent with the customer record, restrict access to sensitive fields, document how data is used and apply automated checks so opt-outs are honoured across every system.
Where should an e-commerce team start?
Choose one high-value business question, audit the data it needs and build the minimum architecture that answers it. Establish customer and product master records first.

Let's Talk AboutYour Next Insight.

Tell us what you are trying to decide and our team will show you how Insights Curry can help.

Talk to an Expert