Skip to content
CRO

Ecommerce Analytics: A Complete Guide for Online Stores

A complete ecommerce analytics guide: acquisition, product, funnel, customer, revenue, retention, merchandising, UX and experimentation, plus data quality.

Quick answer

Track what answers your business questions. For most stores that means revenue, orders, average order value and margin from the commerce platform; sessions, conversion and the funnel from product view to purchase by channel and device from web analytics; new versus returning customers and repeat purchase for retention; and returns and stock-outs for operations. Write a measurement plan, implement standard ecommerce events, validate them against real orders, treat the commerce platform as the source of truth for revenue, and review data on a daily, weekly and monthly rhythm.

Start With Questions, Not Reports

Stores drown in dashboards because tracking starts with tools rather than questions. List the decisions you make regularly and what you'd need to know to make them better. The diagram above shows the cycle: questions shape the event plan, collected data is validated, reported and used to decide, and decisions raise new questions.

QuestionMetricSource
Are we growing profitably?Net revenue, gross margin, contribution after marketingCommerce platform, finance
Which channels bring buyers?Revenue, orders and conversion by channelWeb analytics, ad platforms
Where do shoppers drop off?Stage-to-stage funnel rates by deviceWeb analytics
Which products sell and which don't?Views, add-to-cart rate, sales, returns by productWeb analytics, commerce platform
Do customers come back?Repeat purchase rate, cohort revenueCommerce platform
Is search working?Zero-result queries, search conversionWeb analytics, search tool

Sources and What Each Is Good For

SourceBest forLimits
Commerce platformOrders, revenue, refunds, customers, productsLimited view of pre-purchase behavior
Web analytics (e.g. GA4)Sessions, journeys, funnel, channels, eventsConsent and blocking gaps; modelled data
Search ConsoleOrganic queries, clicks, indexingSearch only
Ad platformsSpend, impressions, platform-attributed conversionsEach claims credit its own way
Email and CRMEngagement, lifecycle, retentionOwned channels only
Heatmaps, recordings, surveysWhy people behave as they doSamples, not totals

Pro tip

Decide once which source is the truth for each number. Revenue and orders from the commerce platform; behavior from analytics. Most reporting arguments come from mixing them.

The Event Plan

Google documents a standard set of recommended ecommerce events for GA4 (Google Analytics developer documentation). Using them, rather than inventing names, makes the built-in ecommerce reports work.

  • Every event carries an items array with item_id and item_name at minimum
  • Events with revenue send value and currency
  • purchase sends a unique transaction_id so duplicates can be removed
  • Custom events only for questions the standard set can't answer (size guide opened, filter applied)
EventWhen it fires
view_item_list / select_itemA product list is seen / a product in it is clicked
view_itemA product page is viewed
add_to_cart / remove_from_cartItems are added or removed
view_cartThe cart is opened
begin_checkoutCheckout starts
add_shipping_info / add_payment_infoShipping and payment steps are completed
purchase / refundAn order is placed / refunded
view_promotion / select_promotionA promotion is seen / clicked

Validate Before You Trust

Tracking breaks quietly: a theme update removes a script, checkout moves to a new domain, an app fires a second purchase event. Validate after every release.

  • Place test orders and check they appear once, with the right value and currency
  • Compare analytics revenue with platform revenue weekly; investigate sudden changes in the gap
  • Check sessions aren't split when shoppers move to checkout
  • Confirm consent settings behave as intended
  • Look for self-referrals from payment providers
  • Keep a change log so data shifts can be explained

What to Track by Area

AreaCore metrics
AcquisitionSessions, conversion rate and revenue by channel, campaign and landing page; cost per acquisition
FunnelProduct view rate, add-to-cart rate, cart-to-checkout rate, checkout completion, by device
MerchandisingProduct list click-through, views, add-to-cart rate and sell-through by product and category
Search and discoverySearch usage, zero-result queries, search exits, filter use
CustomersNew vs returning revenue, repeat purchase rate, cohort revenue, lifetime value
EconomicsAverage order value, discount rate, gross margin, returns rate
ExperienceCore Web Vitals, JavaScript errors, payment failures

Conversion and Funnel Reporting

A single conversion rate hides where problems are. Report stage-to-stage rates by device and channel so you can see whether shoppers fail to find products, fail to add them, or fail to finish checkout. See ecommerce conversion rate and ecommerce conversion funnel.

Not sure your store's data can be trusted?

ZSpace audits ecommerce tracking against real orders and fixes the gaps before you base decisions on it.

Start a Project

Attribution: Useful, Not Exact

Every attribution model assigns credit by rules, and ad platforms each count conversions their own way, so their totals rarely add up to your actual orders. Use attribution to compare channels directionally, check platform claims against total revenue, and run holdout or incrementality tests for large budget decisions.

Customer and Retention Analytics

Conversion rate measures first purchases; the economics of most stores depend on the second. Track repeat purchase rate, time to second order and revenue per customer by acquisition cohort. See ecommerce cohort analysis.

Qualitative Evidence

Numbers show where; qualitative evidence shows why. Pair funnel data with session recordings, heatmaps, on-site surveys, support tickets, reviews and usability tests before deciding what to change. See ecommerce heatmaps and customer journey analytics.

Reporting Rhythm

CadenceFocusAudience
DailyRevenue vs expected, tracking health, errors, stock-outsEcommerce manager
WeeklyChannels, funnel by device, top products, searchEcommerce, marketing, merchandising
MonthlyCohorts, margin, returns, experiments, trendsLeadership

Respect consent choices, avoid sending personal data such as emails in event parameters, and document what's collected. Expect gaps: some visitors won't be tracked or will be modelled. Design reports around trends and ratios that tolerate gaps rather than exact counts.

The Analytics Domains of an Online Store

Ecommerce analytics isn't one report. It's a set of domains, each answering different questions for different teams. A complete practice covers all of them at the depth your business needs, built on shared definitions.

DomainCore questionsDeeper guide
AcquisitionWhich channels bring profitable customers?Attribution and channel reporting
ProductWhich products and categories perform, and why?Product analytics
FunnelWhere do shoppers drop off?Funnel analytics
CustomerWho are our customers and how do they behave?Segmentation, cohorts
RevenueWhat drives revenue and margin?Dashboards, driver trees
RetentionDo customers come back?Cohorts, repeat purchase
MerchandisingIs the catalog organized to sell?Merchandising metrics
UXWhere do interfaces cause friction?Event tracking, research
ExperimentationDid a change cause an improvement?Testing programmes

How the Pieces Fit Together

This guide is the hub for a set of deeper articles. Analytics architecture covers where data comes from and how it's combined. Event tracking covers what to measure and how to name it. Funnel analytics covers drop-off diagnosis, product analytics covers product performance, KPI dashboards cover metric selection and dashboard design covers presentation. For segments and cohorts, see customer segmentation and cohort analysis.

An Analytics Maturity Path

StageCharacteristicsNext step
BasicPlatform reports, page views and purchasesTracking plan with core ecommerce events
StructuredEcommerce events, funnels, shared definitionsProduct and category analysis, segmentation
IntegratedOrders, refunds, marketing and CRM joinedCohorts, margin, experimentation programme
AdvancedModelled metrics, forecasting, automationContinuous optimization and governance

Common Analytics Mistakes

  • Tracking everything and deciding nothing
  • Reporting analytics revenue as if it were accounting revenue
  • Duplicate purchase events inflating conversion
  • One site-wide conversion rate with no segments
  • Summing ad platform conversions
  • No change log, so data shifts can't be explained

Want analytics that lead to decisions?

Talk to ZSpace about CRO and analytics audits and tracking implementation.

Start a Project

Conclusion

Good ecommerce analytics answers specific questions with validated data. Start with the decisions you make, implement standard events, validate them against real orders, report by segment and funnel stage, and combine numbers with qualitative evidence. For Shopify's tools, see Shopify analytics; for turning metrics into a view leaders use, see ecommerce KPI dashboard.

For related guides, see customer analytics, ecommerce attribution and ecommerce data warehouse.

FAQ

Common questions

Collecting and analysing data about how shoppers find, browse and buy from an online store, and about the customers and orders that result, so the business can make better decisions about marketing, merchandising, UX and operations.

Get in touch

Have a project in mind?

Whether you're building a new digital product, improving an existing website, or looking to automate part of your business — let's talk.