Direct answer
E-commerce data analytics is the program of data models, metrics, and review routines that shows retailers how customer behavior turns into revenue and margin. A practical program breaks revenue into traffic, conversion, order value, and repeat purchase, tracks customer cohorts over time, and tests whether marketing and promotions create sales that would not have happened anyway.
Table of contents
- 1. Breaking online revenue into a metric tree
- 2. The order and customer data model behind retail metrics
- 3. Cohort retention and customer lifetime value
- 4. Attribution reports versus incrementality tests
- 5. Merchandising, pricing, and inventory signals
- 6. A trading review cadence that turns metrics into action
- 7. Sequencing the analytics build for a growing retailer
Key takeaways
- A metric tree from sessions to contribution margin shows which lever moved when revenue changes.
- One tested order and customer model keeps revenue, returns, and margin definitions consistent across reports.
- Cohort retention and lifetime value reveal which channels bring durable customers.
- Incrementality tests calibrate attribution reports, which tend to over-credit channels that reach existing buyers.
Breaking online revenue into a metric tree
Revenue is the output, and the levers sit underneath it. A common metric tree splits online revenue into sessions, conversion rate, and average order value, then splits each again: sessions by channel, conversion by device and landing page, order value by items per order and price per item. Because the branches multiply back to the total, any revenue change can be traced to the branch that actually moved.
The tree should continue past revenue to contribution margin. Subtract discounts, cost of goods, shipping, payment fees, and returns, and a campaign that looked strong on revenue can turn out to be marginal. Illustrative example: a promotion that lifts orders while shifting the mix toward low-margin items can increase revenue and reduce contribution in the same week. Showing both measures side by side keeps that result from being missed.
Related: Analytics and business intelligence services, Ecommerce and retail industry analytics
The order and customer data model behind retail metrics
Reliable metrics depend on a few well-defined tables: an order line fact with prices, discounts, costs, and return status; a customer dimension; a product dimension with category and supplier attributes; a sessions or events table; and marketing spend by channel and day. Each order line should carry enough information to calculate margin without manual adjustments in spreadsheets after the fact.
Definitions need to be written once. Decide whether revenue is reported before or after returns, whether a return is dated to the original order or to the day it arrived, how cancelled orders are treated, and whether marketplace sales are included. Building these rules as dbt models on a cloud warehouse such as Snowflake, with tests that reconcile totals to the commerce platform, means every dashboard inherits the same answer.
Related: dbt models for order and customer data, Snowflake cloud data warehouse, Data engineering and integration services
Cohort retention and customer lifetime value
Grouping customers by the month of their first order shows whether new customers become repeat buyers. A cohort table tracks the share of each cohort that orders again in later months and the cumulative margin per customer. Comparing cohorts acquired through different channels or first-purchase categories shows which sources bring durable customers rather than one-time bargain seekers.
Lifetime value estimates can then guide acquisition budgets. Simple approaches use average cumulative margin per cohort after a fixed number of months, while statistical models in Python estimate future purchases per customer. Illustrative example: if customers whose first order used a discount code reorder less often than those arriving from organic search, the acceptable acquisition cost for discount-led campaigns should be lower. Forecasting future value is covered further in the predictive analytics guide.
Related: Python for cohort and lifetime value models, Predictive analytics for business
Attribution reports versus incrementality tests
Attribution models assign credit for an order to the touchpoints before it, using rules such as last click or data-driven weighting. They are useful for day-to-day optimization within a channel but tend to over-credit channels that reach customers who were already going to buy, such as branded search and retargeting. They also lose coverage as browser restrictions and consent choices limit tracking.
Incrementality tests answer a different question: how many sales happened because of the activity. Methods include holdout groups for email and CRM, geographic tests for paid media, and on-off tests for a whole channel. Illustrative example: holding out a random share of lapsed customers from a win-back email and comparing their repeat rate with recipients gives a direct estimate of the email’s effect. A few such tests each year show how far to trust the attribution reports.
Related: Advanced analytics and AI services, Martech measurement and analytics
Merchandising, pricing, and inventory signals
Customer behavior data becomes more useful when it is joined with product and stock data. Product views, add-to-cart rates, and product-level conversion show which items attract interest and which lose shoppers on the product page. Joined with stock levels, the same data shows sales lost to out-of-stock items and slow sellers that tie up working capital. Return rates and reasons by product highlight sizing or description problems.
Pricing and markdown decisions draw on the same data. Tracking price changes against unit sales and margin by product family shows where demand responds to price and where a discount gave away margin with little extra volume. These analyses work best as standing SQL-based reports rather than one-off studies, so merchandisers find them in the same Power BI view each week.
Related: SQL for product and stock analysis, Power BI merchandising dashboards
A trading review cadence that turns metrics into action
An analytics program needs a rhythm. A daily check covers revenue, orders, conversion, and tracking health against the expected range. A weekly trading review walks the metric tree, highlights the branches that moved, and agrees actions with named owners. A monthly review looks at cohorts, margin by channel, and test results, and adjusts the plan for the coming month.
Each review should end with decisions rather than observations alone. Record the action, the owner, and the expected effect, then check it at the next review. Keep the dashboard set small, typically one trading view, one customer view, and one merchandising view built on shared definitions. The analyst work behind these reviews and the identity work behind customer views are covered in the related guides.
Related: Ecommerce data analyst role and skills, Customer data platform strategy and identity resolution, FIX Analytics data and analytics capabilities
Sequencing the analytics build for a growing retailer
Programs that try to build every report at once usually stall on definitions. A more reliable sequence starts with the order model and the revenue tree, because those answer the weekly trading questions and force agreement on revenue, returns, and margin. Cohort and retention views come next, once customer identifiers are stable enough to link repeat orders. Merchandising and stock views follow when product and inventory feeds are connected.
Incrementality testing can begin early with low-cost holdouts in email and CRM, then extend to paid media as the team gains confidence. Throughout, retire old reports as governed views replace them, so stakeholders are not choosing between two versions of the same number. Illustrative example: a team that keeps a legacy daily sales spreadsheet alongside a new dashboard will face disputes whenever the two disagree, so the cutover date should be agreed and announced. Where identity linking is weak, a customer data platform strategy is usually the next investment.
Frequently asked questions
Which metrics matter most in e-commerce data analytics?
Start with sessions, conversion rate, average order value, and repeat purchase rate, then extend to contribution margin after discounts, shipping, payment fees, and returns. Cohort retention and customer lifetime value show whether growth is durable.
What is the difference between attribution and incrementality?
Attribution assigns credit for an order to the touchpoints that preceded it. Incrementality measures how many sales happened because of an activity, usually by comparing an exposed group with a holdout group. Attribution helps optimize within channels, while incrementality tests show the real effect of a channel.
How do you measure customer retention in e-commerce?
Group customers by the month of their first order and track the share of each cohort that orders again in later months, along with cumulative revenue or margin per customer. Comparing cohorts by acquisition channel or first product category shows where retention differs.
What data is needed to start an e-commerce analytics program?
The essentials are order lines with prices, discounts, costs, and return status, plus customer and product tables, web session or event data, and marketing spend by channel and day. Stock levels add the inventory view once the core model is reliable.
Keep exploring
Related insights
E-commerce analytics
Ecommerce Data Analyst: Find Growth across the Customer Journey
Read nextCustomer analytics
Customer Data Platform Strategy: How to Unify Customer Data Across Every Channel
Read nextCase study
Case Study: From Fragmented Customer Data to AI-Powered Personalization
Read nextPredictive analytics
Predictive Analytics for Business: Forecast Better, Act Earlier
Read nextFIX Analytics
