Guide · Analytics and metrics

Ecommerce analytics: turning store data into decisions

What ecommerce analytics is, its types, the use cases that pay off, why tracking alone is not enough and how to build one view of marketing and profit.

Updated · 8 min read

By the ROASaurus team

The short answer
  • Ecommerce analytics is collecting a store's data (orders, traffic, ads, customers, costs) and turning it into decisions about spend, products, prices and stock.
  • It comes in three types: descriptive (what happened), diagnostic (why) and predictive (what will happen); prescriptive analytics adds what to do about it.
  • The useful questions are few: which spend earns money, which products carry the margin, which customers come back and where the site loses buyers.
  • Separate tools each tell their own story; a unified view joins orders, ad spend and costs so every channel is judged by the same numbers.
  • Steer on contribution margin, not revenue or platform ROAS: it is what pays the fixed costs.

Every webshop collects more data than it reads: Shopify orders, GA4 sessions, Meta and Google Ads reports, email stats, supplier invoices. Ecommerce analytics is the work of turning that data into decisions: where to put the next euro of ad spend, which products to push or drop, what to reorder and why conversion fell last week. This guide explains what it is, its types and use cases, the problem with a fragmented setup, and how to make analytics answer the question that matters most: is the store making money?

What is ecommerce analytics?

Ecommerce analytics is the collection, joining and analysis of an online store's data to understand performance and decide what to do next. It covers five data sources:

  • Orders: what sold, at what price and discount, to whom, refunds.
  • Traffic and behaviour: sessions, sources, product views, carts, checkout steps.
  • Marketing: ad spend, impressions, clicks and conversions per platform and campaign, email and SMS.
  • Customers: first and repeat orders, cohorts, lifetime value.
  • Costs: product cost, shipping, payment fees, returns handling, overheads.

Most tools cover one or two of these. Analytics becomes useful when they are joined, because nearly every important question crosses at least two: "is this campaign profitable" needs marketing, orders and costs.

The core benefits of ecommerce analytics

  • Spend where it earns. Budget follows profit per channel and campaign instead of the loudest dashboard.
  • Know your margins per product. Push the products that carry the store, fix or drop the ones that do not.
  • Spot problems early. A broken checkout on one browser, a tracking gap or a cost increase shows in days, not at the quarterly accounts.
  • Plan stock and cash. Sales velocity and seasonality turn into reorder dates and cash needs.
  • Grow repeat revenue. Cohorts show whether customers come back and what brings them back.

The main types of ecommerce analytics

TypeQuestionStore example
DescriptiveWhat happened?Net sales, orders and ad spend last month, by channel
DiagnosticWhy did it happen?Conversion fell because mobile checkout broke after a theme update
PredictiveWhat is likely to happen?Expected repeat revenue from this month's new customers; stock running out in 12 days
PrescriptiveWhat should we do?Move budget from a campaign that loses money per order to one with margin left
Most stores start with descriptive reports. Value comes from moving down the list.

Swipe the table sideways to see every column.

Use cases of ecommerce analytics

Use caseData neededDecision it supports
Marketing budgetAd spend, attributed orders, order costsScale, hold or cut each campaign
Product mix and pricingSales, product costs, returns, discountsWhich products to promote, reprice or drop
Inventory planningSales velocity, stock, lead timesWhat to reorder and when
RetentionOrders per customer, cohorts, products bought firstWhich first products and offers bring customers back
ConversionSessions, funnel steps, devices, landing pagesWhich page or step to fix first

Swipe the table sideways to see every column.

The metrics that ecommerce analytics rests on

A handful of metrics cover most decisions: revenue and net sales, orders, average order value, conversion rate, ad spend, ROAS and MER, customer acquisition cost, contribution margin, net profit, repeat rate and lifetime value. The guide to ecommerce metrics and KPIs defines each with its formula; this guide is about using them together.

How data analytics drives business decisions

QuestionWhich campaigns should get more budget?
DataSpend, attributed orders and order costs per campaign
MetricContribution after ad spend per campaign
DecisionShift 20% of budget
MeasureCompare the next 4 weeks with the 4 before
A decision loop. Start from the question, not from the dashboard.

The loop sounds obvious; the common failure is skipping steps. Reading a dashboard without a question produces observations, not decisions. Deciding without measuring afterwards means the same debate next month.

Two campaigns, two viewsSample data
Campaign A: spend / revenue€5,000 / €20,000
Campaign A: ROAS4.0
Campaign A: contribution before ads (35% of revenue)€7,000
Campaign A: contribution after ad spend€2,000
Campaign B: spend / revenue€5,000 / €15,000
Campaign B: ROAS3.0
Campaign B: contribution before ads (55% of revenue, higher-margin products)€8,250
Campaign B: contribution after ad spend€3,250
Example numbers for a fictional store. The campaign with the lower ROAS earns more, because it sells products with a higher margin.

The problem with a fragmented analytics setup

A typical store reads five reports that disagree:

  • Shopify knows every order but little about ads.
  • GA4 knows sessions and sources but misses orders (consent, blockers) and has no costs.
  • Meta Ads Manager and Google Ads each count conversions under their own attribution, including view-through and modelled conversions, so their totals add up to more orders than the store had.
  • Email tools credit themselves for orders that followed an opened email.
  • The spreadsheet with product costs is out of date.

The result is that each channel looks profitable in its own report while the store's profit falls. Reconciling by hand each week costs hours and is still done with different definitions.

What unified marketing analytics means

Unified marketing analytics means one dataset and one set of definitions: every order counted once, credited to channels under one attribution model you choose, with the ad spend of every platform and the costs of each order next to it. From that dataset you can show ROAS, contribution and profit per channel, campaign and product that add up to the store total.

Separate reports
  • Each platform claims its own conversions
  • Totals exceed real orders
  • Revenue, not profit
  • Definitions differ per tool
One view
  • Each order counted once
  • Channels add up to the store total
  • Costs and ad spend per order
  • One definition of every metric

The difference shows in budget meetings: the discussion moves from whose numbers are right to what to do.

Why tracking alone is not enough

Better tracking (server-side events, first-party cookies, consent handled properly) fixes how many conversions reach the ad platforms and your reports. It is a prerequisite, not the answer. A store with perfect tracking can still scale a campaign that sells low-margin products at a loss, because the tracking reports revenue and the platforms optimise for it. See ecommerce ad tracking for the tracking part.

What turns tracking into analytics is the join with costs: product cost per item, shipping per order, payment fees per gateway, returns, and ad spend per day.

Why good data changes the outcome

Analytics is only as good as its inputs. The usual weak spots:

  • Product costs missing or years old.
  • Shipping charged to customers counted as revenue, but the carrier invoice not counted as cost.
  • Refunds and chargebacks left out.
  • Ad spend in different currencies or time zones from the orders.
  • Test orders and internal orders left in.
  • Conversions counted twice by a browser pixel and a server event without a shared event id.

Fix these before building more reports. A precise report on wrong costs is worse than a rough one on the right costs.

Contribution margin: the number to steer on

Contribution margin=Net sales − product cost − shipping and fulfilment − payment fees − ad spend
Net sales
Sales after discounts and refunds, without tax
Variable costs
Every cost that grows with each order
Ad spend
Marketing spend for the same period

Contribution margin is what each order (or channel, or product) leaves to pay fixed costs and profit. Unlike ROAS, it includes the product's margin and the order's costs, so it can be compared across products and channels. Many stores track it in steps: CM1 after product cost, CM2 after fulfilment and fees, CM3 after marketing. See the profitability analysis guide for the full breakdown.

Making every euro of ad spend count

The last euro spent on a campaign earns less than the average one, because platforms find the most likely buyers first. So the question for scaling is not "is this campaign profitable on average" but "does the next euro still earn more than it costs". Watch contribution after ad spend as spend rises: when it stops growing, the campaign has reached its useful size. A break-even ROAS per product (1 ÷ contribution margin before ads) tells you the floor below which a sale loses money.

Simplify ecommerce analytics through automation

Manual analytics fails on consistency: the weekly report gets skipped in busy weeks, exactly when it matters. Automate the parts that repeat:

  • Data collection: orders, ad spend and costs imported daily, not copied from exports.
  • Scheduled reports: the same dashboard emailed every Monday.
  • Alerts: a message when orders, ROAS or spend move outside a range, or tracking stops.
  • Written summaries: a short weekly digest of what changed and why.

Keep a human step for decisions: automation should bring the question to you, not answer it on its own.

Choosing an ecommerce analytics tool

Questions to ask any tool, including ROASaurus:

  • Does it count each order once and let me choose the attribution model?
  • Does it include product costs, shipping, payment fees, refunds and ad spend from every platform I use?
  • Can I see profit per order, product, campaign and channel, not only revenue and ROAS?
  • Can I get the raw data out (export, API, warehouse) if I outgrow its reports?
  • How is it priced: by orders, by revenue or by ad spend? Pricing tied to revenue or spend grows as you grow, whether the tool does more or not.
  • Which platforms does it really support today, and which are still waiting for approval?

Ecommerce analytics in ROASaurus

ROASaurus joins orders from your store, ad spend from the platforms, costs from your settings and its own first-party tracking into one dataset, then shows it as dashboards and reports.

In ROASaurusReports › Dashboards
  1. Connect your store and ad accounts, and enter product costs, shipping rules and payment fees under Settings › Costs.
  2. Open Today › Dashboard for revenue, net profit, ad spend, ROAS and orders against the previous period.
  3. Open Reports › Dashboards and start from the Executive overview, Paid media, Profit, Retention or Products template; add your own metrics as formulas.
  4. Schedule a dashboard by email for the team, and use Today › Alerts and Reports › AI digests for changes you should look at.
  5. For the detail: Marketing › Attribution for channels under 12 attribution models, Profit › Products for margin per product, Customers › Cohorts for retention.
The ROASaurus Mac app showing the Dashboard for the last 30 days: revenue, net profit, ad spend, ROAS and orders against the 30 days before. Fictional demo store, simulated data.
The ROASaurus iPhone app showing the Dashboard for the last 30 days: revenue, net profit, ad spend, ROAS and orders against the 30 days before. Fictional demo store, simulated data.
Today › Dashboard: revenue, net profit, ad spend, ROAS and orders with the change against the previous period. Fictional demo store, simulated data.

Start freeOpen the live demo14-day trial of every feature, no credit card.

Wrapping up: where to start

Start with one question that costs money if answered wrong (usually: which campaigns earn after costs), get the data for it right, and build the habit of a weekly look and a monthly decision. Add the next question only when the first is routine.

Sources

  1. Google Analytics Help: Get started with attribution
  2. Shopify Help Center: Shopify Analytics

More guides on analytics and metrics · All guides

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is ecommerce analytics?

It is the collection and analysis of an online store's orders, traffic, marketing, customer and cost data to understand performance and decide what to do next, such as where to spend, which products to push and what to reorder.

What are the types of ecommerce analytics?

Descriptive analytics shows what happened, diagnostic analytics explains why, and predictive analytics estimates what will happen. Prescriptive analytics goes one step further and suggests what to do.

How does ecommerce data analytics affect an online business?

It moves decisions from opinion to evidence: budget follows profit per channel, products are judged on margin, stock is ordered on sales velocity, and problems such as a broken checkout show up in days.

What is unified marketing analytics for Shopify?

One dataset that joins Shopify orders, ad spend from every platform and order costs, with each order counted once under one attribution model, so channel reports add up to the store total.

Is Google Analytics enough for ecommerce analytics?

GA4 covers traffic and on-site behaviour well, but misses orders it did not receive and has no product costs, fees or most ad spend. It is one input, not the whole picture.

Which metric should an online store steer on?

Contribution margin after ad spend: revenue minus product, fulfilment, payment and ad costs. It shows what each order, product or channel leaves to pay fixed costs and profit.

What comes next after setting up analytics?

Pick one recurring decision, such as the weekly budget split, define the metric for it, and review it on a fixed day. Add automation (scheduled reports, alerts) once the habit exists.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.