In this article
- GA4 doesn’t collect ecommerce events automatically, so a store without them sees traffic but not what it bought.
- A purchase event missing a required parameter becomes a custom event and drops out of GA4’s ecommerce reports.
- Shopify’s GA4 setup collects begin_checkout, add_payment_info and purchase automatically, but not add_shipping_info, which Checkout journey needs.
- GA4 offers three attribution models, with a default 90-day lookback window for most key events.
- Behavioral modeling needs at least 1,000 daily users with consent granted, so stores below that get no modeled data.
Ecommerce analytics is the practice of measuring how shoppers find your store, browse your products and buy, so you can see which products, channels and pages make money. In Google Analytics 4, that means sending a set of ecommerce events, from viewing a product to completing a purchase, and reading them in GA4’s monetization reports alongside the handful of metrics that tell you whether the store is healthy.
None of it happens on its own. Google states that ecommerce events are not collected by Google Analytics automatically, so a property without them shows traffic but not what that traffic bought. This guide covers what to measure, how to set it up on a custom site, Shopify or WooCommerce, which reports to read, and where GA4’s attribution and consent handling leave gaps you need to know about.
Which ecommerce analytics metrics matter most?
Data analytics in ecommerce comes down to six numbers that tell you whether a store is healthy, and GA4 can supply most of them once your ecommerce events are in place. The table shows where each one comes from.
| Metric | What it tells you | Where GA4 has it |
|---|---|---|
| Revenue | What the store sold | Purchase revenue, which subtracts refunds, and Gross purchase revenue, which doesn’t |
| Conversion rate | How many visits end in a sale | Session key event rate, the share of sessions with a key event, once purchase is a key event |
| Average order value | What a typical order is worth | Average purchase revenue, or Purchase revenue divided by Ecommerce purchases |
| Customer acquisition cost | What a new buyer costs you | Not directly. Google Ads cost arrives when you link Google Ads, and other spend only through Campaign data import |
| Lifetime value | What a customer is worth over time | LTV in the User lifetime exploration |
| Funnel and checkout drop-off | Where shoppers leave | The Purchase journey and Checkout journey reports |
Two of these need care. Customer acquisition cost divides marketing spend by new customers, and most of a store’s spend, from paid social to email software, lives outside GA4, so you usually work it out from your ad platforms and your store’s count of first-time buyers. GA4’s First time purchasers metric, the users who made their first purchase in the period, gives you one side of that division.
Lifetime value is the other. The User lifetime exploration shows LTV by acquisition source, as a total, an average or a percentile, but Google notes that percentiles are often zero because most users never buy. Filtering to purchasers gives a more useful picture. It also works better with User-ID, which links signed-in activity across devices. Our breakdown of ecommerce metrics looks past the ROAS figures that ad platforms report.
Which GA4 ecommerce events does a store need?
Google’s developer guide describes a typical ecommerce implementation as measuring item lists and item details, adding and removing products from a cart, starting checkout, purchases and refunds, and promotions. Each of those has a recommended event name, and GA4 only fills its ecommerce reports when you use those names.
| Shopper action | GA4 event |
|---|---|
| Sees a list of products, then picks one | view_item_list, select_item |
| Views a product page | view_item |
| Adds to or removes from the cart, or views it | add_to_cart, remove_from_cart, view_cart |
| Saves for later | add_to_wishlist |
| Starts checkout, adds shipping, adds payment | begin_checkout, add_shipping_info, add_payment_info |
| Buys, or gets a refund | purchase, refund |
| Sees or clicks an internal promotion | view_promotion, select_promotion |
The products themselves travel in an items array inside each event. Google’s guide allows up to 200 items per array and up to 27 custom parameters in it on top of the prescribed ones. Two parameters do most of the work. Set currency at the event level whenever you send a value, and send a transaction_id with every purchase and refund, because Google marks it as required for both and uses it to match a refund to its order.
Get the parameters right before you trust a report. Google warns that if an ecommerce event is missing a required parameter, GA4 treats it as a custom event and it won’t appear in the Ecommerce purchases report at all, so a broken purchase tag looks like a quiet week rather than an error.
How do you set up GA4 ecommerce tracking?
Setting up Google Analytics 4 for ecommerce has two starting points, Google says. Website builders such as Shopify and WooCommerce often have ecommerce events built into the site code, so you can start analyzing right away after connecting GA4. A custom site or app, or a builder you want more from, needs a developer to add the events by hand, with one of three methods.
- The Google tag. Place each ecommerce event anywhere below the Google tag on the page.
- Google Tag Manager. Push each event to the data layer, then create a GA4 Event tag for it, with a trigger for the moment it should fire.
- The Firebase SDK, for mobile apps, which uses the same events with app code snippets.
Test before you wait. Google says reports and explorations can take up to 24 hours to show ecommerce data, but debug mode and DebugView let you watch events arrive in real time, so you can check each one fires once, with the right parameters, at the right step. Our walkthrough of Google Tag Manager conversion tracking covers the container side if you go that route.
Then decide which events count as key events, the name GA4 now uses for what it used to call conversions. Google renamed them to align the term conversion between Google Ads and Analytics. A key event is an action that matters to your business, and a conversion is created from a key event when you want to optimize Google Ads campaigns toward it. If you also advertise products on Google, our Merchant Center account setup walkthrough covers the product side.
How does GA4 connect to a Shopify store?
Shopify routes GA4 through its Google & YouTube sales channel. Its setup guide runs in four steps. Create a Google account and an Analytics account, create a GA4 property and a web data stream and note its Tag ID, add the GA4 tags through the Google & YouTube channel, and link your Analytics property to Google Ads. Shopify prompts you to install the channel if you haven’t, and you don’t have to connect Merchant Center to finish the GA4 tags. Our guide to connecting Shopify to Merchant Center covers that part of the same channel.
Once the tags are in place, Shopify collects the core checkout events for you. Google’s help notes that Shopify automatically collects begin_checkout, add_payment_info and purchase, and Shopify’s own help page listed page_view, search, view_item and add_to_cart among its tracked events too. The gap to know about is add_shipping_info. Google says you have to set that event up yourself to get data in the Checkout journey report.
One more Shopify detail stops new stores. Shopify notes that Google Analytics can’t track events until you remove password protection from your online store, so a store still behind its password page records nothing. Shopify also has its own ecommerce website analytics, available on every plan, with a customizable dashboard of metric cards, reports and a Live View page, which is often the faster place to answer simple questions about sales.
How does GA4 connect to a WooCommerce store?
WooCommerce uses a free extension, Google Analytics for WooCommerce. After installing it, go to WooCommerce, then Settings, then Integration, open the Google Analytics tab and enter your GA4 measurement ID, the one beginning with G-. WooCommerce says the connection can take up to 48 hours to start working.
The extension’s settings let you track add to cart and remove from cart events, and 404 errors so you can find broken links. WooCommerce also offers a Pro version for more advanced ecommerce tracking. To check the setup, connect Google’s Tag Assistant to your site, add a product to the cart and start checkout, and confirm the events appear as hits sent.
Consent is the part WooCommerce warns about most. Its documentation says consent mode passes each visitor’s cookie choice to Google’s tags, that the extension doesn’t provide a cookie banner, and that you may see differences between your store’s data and Google Analytics as a result. It recommends one of Google’s recommended consent management platforms with a WordPress plugin that works with the WP Consent API.
Which GA4 reports should a store check first?
Three pre-made reports cover most of what a store needs to check each week, and all three sit in the Monetization topic of the Life cycle collection in Reports. The Checkout journey report also appears under Drive online sales in the Business objectives collection.
- Ecommerce purchases shows performance by product, using dimensions such as item name, item ID, item brand and up to five levels of item category, and metrics such as items viewed, items added to cart, items purchased and item revenue. Use it to decide which products to restock, promote or drop.
- Purchase journey shows how many users drop off between starting a session, viewing a product, adding to cart, beginning checkout and purchasing. Use it to find the step to fix first.
- Checkout journey shows the same for the checkout itself, from beginning checkout through adding shipping and payment to the purchase. Use it to test changes such as shipping costs or a guest checkout.
Read item revenue carefully. Google defines it as revenue from items only, price times quantity, excluding tax and shipping, so it won’t match the order totals in your store’s admin. If a report is missing from your navigation, it may have been removed from the default view, and editors and above can add it back.
These reports answer what happened in GA4. They don’t combine your ad spend, store orders and email results in one place, and that is the job of an ecommerce marketing dashboard built on top of GA4 and your platform data.
Where do shoppers drop off between product and payment?
The Purchase journey and Checkout journey reports exist to answer this. Both use a closed funnel by default, which counts users only if they complete each step in order, so a shopper who skips a step drops out of later steps. The Purchase journey report lets you switch to an open funnel, where users can enter at any step, which Google suggests for spotting broken experiences, journeys split across devices or imported events.
The Checkout journey report shows an abandonment rate under each step. Google’s example is 200 users completing the first step and 140 completing the next, an abandonment rate of 30% and a retention rate of 70%. Its own suggestions for a large drop between adding shipping and adding payment are high shipping costs or forcing shoppers to log in with no guest checkout option. Earlier in the funnel, Google points to the same suspects between beginning checkout and purchase, such as shipping costs or buttons and links that don’t work.
Neither report can be customized. If you want a different sequence, such as adding a wishlist step or splitting new and returning buyers, build a custom funnel report in Explore. And check the inputs first. The Checkout journey report needs begin_checkout, add_shipping_info, add_payment_info and purchase, and a missing event shows up as a step that looks like everyone abandoned.
How does GA4 decide which channel gets credit for a sale?
GA4’s attribution reports offer three models. Data-driven attribution uses your property’s data, from converting and non-converting paths, to estimate how much each touchpoint contributed and splits the credit accordingly. Paid and organic last click gives 100% of the credit to the last channel clicked before the purchase. Google paid channels last click gives all the credit to the last Google Ads channel clicked, and falls back to paid and organic last click when the path has no Google Ads click. Google says all three exclude direct visits from receiving credit, unless the whole path was direct.
You set the model in Admin, under Data display, Events, then Attribution settings, and the change applies to historical and future data. It affects reports that use event-scoped traffic dimensions, such as Source, Medium, Campaign and Default channel group, and it doesn’t change user- or session-scoped dimensions such as First user medium or Session source. With data-driven attribution, purchase revenue can show decimals, because one sale’s credit is split across several touchpoints.
The lookback window decides how far back a touchpoint can earn credit. For most key events the default is 90 days, with 30 or 60 days available. For acquisition key events such as first_visit, the default is 30 days, with 7 available. A long consideration cycle, such as furniture or high-ticket electronics, is a reason to keep the full 90 days.
Where does GA4 attribution fall short?
Attribution in GA4 is a model of what GA4 can see, and its limits are worth stating before anyone argues over channel budgets.
- Fewer models to compare. First click, linear, time decay and position-based models have not been available since November 2023, so you can’t check a data-driven result against them in GA4.
- Two default views of the same sale. GA4 reports credit paid and organic channels by default, while Google Ads reports credit only Google’s paid channels by default. The same purchase can count differently in each.
- Numbers that move. Google says data-driven attribution can reattribute conversions for up to 7 days after they happen, so last week’s channel split isn’t final.
- Gaps from consent. Visitors who decline cookies are missing from observed data unless modeling fills the gap, which depends on thresholds covered below.
Ad platforms add their own versions of the truth. A Performance Max campaign reports conversions inside Google Ads, and other ad platforms report from their own tracking, so the totals often disagree with GA4 and with each other. Our guide to Performance Max for stores explains what that campaign type optimizes toward.
What GA4 can’t measure
GA4 also stops at revenue. It doesn’t know what your products cost, so it can’t show profit or margin per order, and it only sees the orders your site sends it, so phone, wholesale and in-person sales stay out unless you send them yourself. A return shows up only if your store sends a refund event with the order’s transaction_id. When you need channels, costs and orders in one view, the ecommerce analytics tools beyond GA4 are where to look, starting with your store’s own order data as the reference point.
What does consent mode change in your numbers?
Consent mode passes each visitor’s cookie choice from your consent banner to Google’s tags, which then adjust what they collect. It doesn’t provide a banner itself. Google describes two ways to implement it.
- Basic consent mode blocks Google tags until the visitor interacts with the banner. If they decline, nothing is sent to Google, not even the consent state, and conversion modeling in Google Ads uses a general model.
- Advanced consent mode loads the tags right away with consent denied by default unless configured otherwise. While consent is denied, the tags send cookieless pings, and full measurement data flows only after consent is granted. Google says this supports an advertiser-specific model rather than a general one.
GA4 can then estimate some of the missing behavior with behavioral modeling, but only for properties with enough data. Google’s eligibility criteria are at least 1,000 events per day with analytics_storage denied for at least 7 days, and at least 1,000 daily users sending events with analytics_storage granted for at least 7 of the previous 28 days. Google adds that meeting those thresholds doesn’t guarantee eligibility. When modeling is active, you see it by choosing the Blended reporting identity.
For a store below those thresholds, GA4 counts only the visitors who accepted cookies and models nothing for the rest. Treat GA4’s totals as a consistent trend line rather than a count of every order, and keep your store’s order records as the figure you report.
Get the purchase event right, then reconcile it with your orders
If we were setting up ecommerce analytics for a store tomorrow, we would ignore dashboards for the first week and work on one event. The purchase event carries the revenue, the transaction ID that ties it to an order, the currency and the items, and every report on this page depends on it. We would place test orders, watch them arrive in DebugView, then compare a week of GA4 purchases against the store’s own order list.
- Place a real test order with a real card, the way a shopper would.
- Watch it arrive in DebugView, and confirm the purchase event fires once, not twice.
- Check its parameters, a transaction_id that matches the order number, a value, a currency and the items.
- Find the order in the Ecommerce purchases report once the data has processed, which Google says can take up to 24 hours.
- Refund the order in your store and check whether a refund event with the same transaction_id arrives. If it doesn’t, GA4 keeps counting revenue that came back.
Then repeat the comparison weekly, GA4 purchases against the orders in your admin.
The two will not match exactly, and they shouldn’t be forced to. Declined cookies, ad blockers and JavaScript errors all stop events from firing, and WooCommerce’s own documentation lists ad blockers and page errors among the things that block tracking. Item revenue also leaves out tax and shipping, and Purchase revenue subtracts refunds, so compare like with like before you call a gap an error. What you want is a gap that is small and stable, so a sudden change in it means something broke.
Only then would we add the funnel events, from view_item to add_payment_info, including the add_shipping_info event that Shopify stores have to add themselves. We would set event data retention to 14 months, the longest a standard property allows, because Google says the retention setting limits explorations and funnel reports, and the 2-month option leaves almost no history to compare against. And we would report revenue from the store’s records, using GA4 for the questions it answers best, which are where shoppers come from and where they leave.
Should you run ecommerce analytics yourself?
Our stake first. We report on orders, AOV and CAC to LTV for the online stores on our retainers, so we gain when you hand the work over. Weigh what follows with that in mind.
A Shopify or WooCommerce store with one market and a standard checkout can get reliable GA4 data from the platform integration and an afternoon of testing. Outside help earns its fee when the checkout is customized or headless, when you sell in several countries with different consent rules, when ad platforms and GA4 disagree enough to change budget decisions, or when you need cost, order and lifetime value data in one weekly view rather than four separate tools.
Either way, start with the purchase event, reconcile it against your orders, and only then build reports on top. If you would rather have that reporting done for you, every tier of our ecommerce marketing retainer reports on orders, AOV and CAC to LTV every Friday.
Frequently asked questions
What is analytics in e-commerce?
Ecommerce analytics is measuring how shoppers find a store, browse and buy, so you can see which products, channels and pages bring in revenue. It combines your store platform's order data with behavior data from a tool such as Google Analytics 4, which only reports sales once your site sends ecommerce events such as view_item, add_to_cart, begin_checkout and purchase. The point is better decisions on stock, pages and spend.
Does Shopify have built-in analytics?
Yes. Shopify Analytics is available on every Shopify plan, with a customizable dashboard of metric cards such as net sales by channel and sessions by device type, a Reports page for deeper analysis and a Live View of current traffic. Staff need the Analytics permissions to see it. It answers most sales questions directly, while GA4 adds traffic sources and funnel behavior.
How do I give access to Google Analytics 4?
In Admin, open Access Management under Account or Property, click to add a user, enter the email address of their Google Account or Google Workspace account, choose their permissions and click Add. You can also tick the option to notify the new user by email. Access at the account level applies to every property in the account, so grant property-level access where that is enough.
Is Google Analytics 4 free or paid?
Both. The standard version of Google Analytics 4 is free, and Google Analytics 360 is the paid version that requires a 360 contract. Google says 360 gives higher limits for data collection, reporting, retention and BigQuery export, including retention options of up to 50 months, where standard properties stop at 14 months for most event data.
What are the different types of events in Google Analytics 4?
Google groups them into four kinds. Automatically collected events arrive by default when you set up GA4. Enhanced measurement events arrive when enhanced measurement is on. Recommended events have names and parameters Google defines, which is where all the ecommerce events sit. Custom events are ones you define yourself, and they don’t appear in most standard reports.
What are the downsides of using Google Analytics?
Several. Ecommerce data needs events a developer or platform has to send, and reports can take up to 24 hours to fill. Visitors who decline cookies are missing unless your property qualifies for behavioral modeling. Thresholds can withhold rows in small reports, and standard properties keep event-level data for at most 14 months, which limits explorations and funnel reports.
What are the top KPIs for e-commerce?
Six cover most stores. Revenue, conversion rate and average order value show what you sell and how well visits turn into orders. Customer acquisition cost and lifetime value show whether each buyer is worth what it cost to win them. Checkout drop-off shows where you lose sales. GA4 reports purchase revenue, session key event rate and average purchase revenue directly, while acquisition cost usually comes from your ad platforms.



