Skip to content

Amazon and ecommerce analytics

Analytics for Shopify stores: what to measure and how

By the editors of Analytics1.comLast reviewed 19 October 20262 min read

The short answer

Use Shopify's own analytics as the record of sales, orders and conversion rate, and GA4 for traffic sources and on-site behaviour. Connect GA4 through Shopify's Google and YouTube app or a custom pixel in Settings, Customer events, so purchases are sent from Shopify's checkout events. Then watch a short list: conversion rate by channel, average order value, repeat purchase rate, and contribution margin after ad spend.

Key takeaways

  • Shopify's own reports are the record of orders; GA4 explains sources and behaviour.
  • Connect GA4 through the Google and YouTube app or a custom pixel in Customer events, and remove old theme snippets.
  • Watch conversion by channel, order value, repeat rate and contribution margin after ad spend.
On this page 7 sections
  1. Shopify analytics vs GA4
  2. Setting up GA4 on Shopify
  3. The metrics that matter
  4. What the numbers cannot tell you
  5. Selling on Amazon too
  6. Questions
  7. Sources

Shopify analytics vs GA4

Shopify analyticsGA4
Orders and revenueThe source of truthMisses some orders (consent, blockers)
Traffic sourcesBasic referrer and UTM reportingFull channel and campaign reporting
Funnel behaviourSessions, add to cart, checkout reachedCustom funnels and paths in explorations
Ads integrationVia sales channel appsNative for Google Ads audiences and conversions
CostIncluded; more reports on higher plansFree

Setting up GA4 on Shopify

  1. Install Shopify's Google and YouTube app and connect your GA4 property; it sends the standard ecommerce events (view_item, add_to_cart, begin_checkout, purchase) from Shopify's customer events.
  2. If you need custom tracking, add a custom pixel in Settings, then Customer events, subscribing to Shopify's standard events. Shopify runs pixels in a sandbox, so code that relies on reading the page directly will not work there.
  3. Remove old hard-coded GA snippets from the theme so purchases are not counted twice.
  4. Set your store's privacy banner (Shopify's customer privacy settings) so pixels respect consent in regions that need it.
  5. Compare a closed week of GA4 purchases with Shopify orders. Expect GA4 to be lower; if it records far fewer, check the purchase event first.

The metrics that matter

  • Conversion rate by channel and device, not just sitewide.
  • Average order value and units per order.
  • Repeat purchase rate and time between orders: the base of lifetime value.
  • Contribution margin after ad spend: revenue minus product cost, shipping, payment fees, discounts and ads. A channel can have a fine ROAS and still lose money.
  • Return and refund rate by product.

Work out the return on ad spend you need to break even with the break-even ROAS calculator, and how much you can spend to win a repeat customer with the LTV to CAC calculator.

What the numbers cannot tell you

Analytics shows where shoppers drop out; it does not say why. A one-question post-purchase survey ("How did you hear about us?") catches word of mouth, podcasts and creators that attribution misses. A product-finder quiz turns browsers into qualified shoppers and gives you zero-party data on what they want.

Selling on Amazon too

If you also sell on Amazon, its data stays inside Seller Central and does not reach GA4. See Amazon seller analytics.

Questions

Why does GA4 show fewer purchases than Shopify?
Visitors who decline consent or block scripts are not recorded by GA4, and some purchases fail to send if the purchase event is not wired to Shopify's checkout events. Shopify's order count is the record of sales; use GA4 for sources and behaviour.
Can I add Google Analytics code to the Shopify checkout?
Shopify has moved checkout tracking to customer events (pixels) in Settings, Customer events, rather than scripts pasted into checkout pages. Use the Google and YouTube app or a custom pixel.

Sources

Next step

Try the break-even roas calculator

Related guides