Where is the official GA4 ecommerce events documentation?
Google keeps it in three places, and each does a different job:
- The Recommended events reference lists every event with its fields and which ones are required.
- The Measure ecommerce developer guide walks the whole shopping path, step by step.
- The Set up ecommerce events help page explains how to send events with the Google tag, Google Tag Manager or Firebase (Google's tool for phone apps).
All three are written for developers. None gives a Shopify seller one checklist.
Which ecommerce events does GA4 recommend?
GA4 recommends 14 shopping events, grouped by step in the buying path. The list below comes from Google's Recommended events reference.
| Step | Event | What it records |
|---|---|---|
| Browse | view_item_list | A shopper sees a list of products, like a collection page |
| Browse | select_item | A shopper clicks a product in that list |
| Browse | view_item | A shopper opens a product page |
| Cart | add_to_cart | A product goes into the cart |
| Cart | add_to_wishlist | A product is saved for later |
| Cart | view_cart | The shopper opens the cart |
| Cart | remove_from_cart | A product comes out of the cart |
| Checkout | begin_checkout | The shopper starts checkout |
| Checkout | add_shipping_info | The shopper enters a shipping address |
| Checkout | add_payment_info | The shopper enters payment details |
| Money | purchase | The order is placed |
| Money | refund | Money goes back to the buyer |
| Promotions | view_promotion | A shopper sees a banner or pop-up |
| Promotions | select_promotion | A shopper clicks that banner |
Google's help page says to use these built-in names instead of making up your own. GA4 only fills its shopping reports when the names match exactly.
What parameters does each event need?
A parameter is a detail sent along with an event, like the price or the order number. GA4 splits them into two levels:
- Event level. Facts about the whole action: value, currency, transaction_id, coupon, shipping and tax.
- Item level. Facts about each product, inside a list called the items array: item_id, item_name, price, quantity, item_variant and more.
Here are the rules that matter most, from the Recommended events reference:
- Every item needs item_id or item_name. Google recommends both.
- If you send value, you must send currency, as a three-letter code like USD.
- On purchase, transaction_id is required. It is the order number, and it stops GA4 from counting the same sale twice.
- On purchase, value is the sum of price times quantity for every item. Google says not to include shipping or tax in it.
What is the items array and what are its limits?
The items array is the list of products attached to an event. Google's Measure ecommerce guide says it can hold up to 200 items. It also allows up to 27 custom item fields on top of Google's own.
If you skip quantity, GA4 treats it as 1. For a print-on-demand store, item_variant is worth filling in. It lets you see whether the black hoodie in size L sells better than the white one in size M.
How do I tell new buyers from returning buyers?
Add customer_type to the purchase event, set to "new" or "returning". The Recommended events reference suggests a 540-day window by default. A buyer who has not bought from you in that time counts as new. Google says to leave it blank if you are not sure, such as with a guest checkout.
How do Shopify events map to GA4 events?
On Shopify, you usually do not write any of this by hand. The free Google & YouTube app listens to Shopify's own store events and turns them into GA4 events. Google lists the mapping on its Shopify event parameters page:
| What the shopper does on Shopify | GA4 event sent |
|---|---|
| Opens any page | page_view |
| Opens a collection page | view_item_list |
| Opens a product page | view_item |
| Adds a product to the cart | add_to_cart |
| Opens the cart | view_cart |
| Removes a product from the cart | remove_from_cart |
| Starts checkout | begin_checkout |
| Enters a shipping address | add_shipping_info |
| Submits payment details | add_payment_info |
| Completes checkout | purchase |
| Searches the store | search |
Three details on that page change how you read your reports:
- Discounts. Since April 24, 2025, purchase and begin_checkout values from the app are the subtotal minus discounts, per Google. Reports from before that date can look higher.
- Shipping step. add_shipping_info only fires on checkouts with Checkout Extensibility turned on. That is Shopify's newer, app-based checkout.
- Missing events. The app does not send select_item, add_to_wishlist, refund, view_promotion or select_promotion. You add those yourself if you need them.
How do I turn on the Google & YouTube app?
Follow these steps in order:
- Make a Google account and a GA4 property if you do not have one. A property is the GA4 home for one website. Shopify's Google Analytics setup page covers this first step.
- In Shopify, install the Google & YouTube app and sign in with that Google account.
- In the app settings, connect your GA4 property.
- Remove any old GA4 code pasted into your theme. Two tags on one page means two of every event.
- Place a real test order with a discount code, then refund it.
How do I check that my events are firing?
Use DebugView. It is a live screen in GA4 that shows each event as it arrives. Normal reports can take up to 24 hours to fill in, according to Google's help page, so DebugView is how you test today.
In GA4, go to Admin, then DebugView. Turn on debug mode with Google's Tag Assistant and click through your store. Click any event name to see its fields. If the event has products, you will see an extra tab for the items array.
Walk this path once and tick each step:
- Open a collection: view_item_list shows.
- Open a product: view_item shows with the right price.
- Add to cart, then open the cart: add_to_cart and view_cart show.
- Start checkout and pay: begin_checkout, add_payment_info and purchase show.
- The purchase has a transaction_id that matches the Shopify order number.
Why is an ecommerce event missing or counted twice?
Google's validation guide lists the usual causes:
- A typo in the event name. "add_to_basket" is not "add_to_cart". GA4 treats a wrong name as a custom event and leaves it out of shopping reports.
- A missing required field. The event still shows up, but GA4 files it as a custom event.
- A reused transaction ID. GA4 keeps the first purchase with that ID and drops the second, even if the values changed.
- Two tags on the page. Using the Google tag and Google Tag Manager together double counts events. On Shopify, this often happens when an old theme snippet stays after you install the app.
Duplicate purchase events are the costly one. If your Meta pixel shows the same problem, our Facebook pixel tracking setup guide walks through the same check on the Meta side.
How do I track promotions and refunds?
Promotions are banners or pop-ups on your own site that point to a sale. Send view_promotion when one is seen and select_promotion when one is clicked. Google's help page says to use the same promotion_id and promotion_name every time. To link a sale back to a banner, carry one of those fields into the later cart and purchase events.
Refunds use the refund event with the original transaction_id. A full refund lists every item. A partial refund lists only the returned items, per Google. Since the Shopify app does not send refunds, most small stores skip this. That means GA4 revenue stays higher than your real revenue after returns and reprints.
Will GA4 revenue match my Shopify admin?
No, and it is not meant to. Here is a worked example. Say your store does 340 orders a month at a $31 average order value:
- Shopify shows 340 × $31 = $10,540 in sales.
- Now say 12% of buyers block tracking or decline the cookie banner. GA4 sees 340 × 0.88 = about 299 orders.
- GA4 revenue is then about 299 × $31 = $9,269, before any refunds come out.
The 12% is only an example. Your real gap depends on your buyers. Two things make it bigger:
- Safari. Safari limits tracking cookies set by scripts to 7 days, per Stape. A buyer who clicks on day one and buys on day nine can show up as a new visitor.
- iPhones. Safari runs about half of US mobile sessions, per Backlinko's browser share data. For a US store, this is not a rare case.
Other gaps are built in. GA4 value leaves out shipping and tax. Shopify sales reports count them in their own way. Refunds only reach GA4 if you send them. Use Shopify for the order count, and GA4 for the shape of the buying path. Our attribution, pixels and tracking guide explains which tool to trust for which question.
Should I use the Shopify app or a custom GA4 setup?
Start with the app. It is free, covers the core path, and needs no code. A custom Google Tag Manager setup adds refunds, promotions and select_item, but costs developer time.
| Google & YouTube app | Custom Tag Manager setup | |
|---|---|---|
| Cost | Free | Developer or agency time |
| Core path events | Yes | Yes |
| Refund, promotions, select_item | No | Yes |
| add_shipping_info | Only with Checkout Extensibility | Only with Checkout Extensibility |
| Risk of duplicates | Low if no old code remains | Higher |
The event coverage in this table comes from Google's Shopify event parameters page.
A store under a few hundred orders a month rarely needs the custom route. Your time is better spent on clean UTM tags, which are the labels you add to ad links so GA4 knows where a visitor came from.
What GA4 cannot tell you: profit per order
GA4 stops at revenue. It does not know what Printify charged you for the shirt, what Shopify took in fees, or what you spent on Meta to get the sale. A $31 order can look great in GA4 and lose money once a $13 print cost, $5 shipping and $14 of ad spend come out.
PodVector AI is the print on demand AI. Victor, its AI employee, runs the work of a print-on-demand store: designs, listings, orders, customer service, ads and email. One of his jobs is the numbers. He knows the real cost and profit of every order: sales minus supplier cost, fees, shipping, refunds and ad spend. He also sets up the Meta pixel and checks your ad accounts every day, so your tracking and your spending stay in step. You can start with Victor here.
If you want to go further on credit for sales, compare AI marketing attribution software. To test what your ads truly cause, read about incrementality testing in marketing.
FAQs
Does Shopify send GA4 ecommerce events automatically?
Yes, once you install the free Google & YouTube app and connect a GA4 property. It sends view_item, add_to_cart, begin_checkout, purchase and several more, per Google's Shopify mapping page. It does not send refunds or promotion events.
Which GA4 events matter most for a small store?
Start with view_item, add_to_cart, begin_checkout and purchase. Those four show where shoppers drop off between seeing a product and paying. Add the rest only when you have a question they would answer.
Why does GA4 show fewer purchases than Shopify?
Ad blockers, cookie banners and Safari limits stop some purchase events from reaching GA4. Shopify records every order on its own servers, so it is the true order count. Use GA4 for trends, not for your sales total.
Should GA4 purchase value include shipping and tax?
No. Google's Recommended events reference says value should be price times quantity for all items, without shipping or tax. Send shipping and tax in their own fields.
How long until ecommerce data shows in GA4 reports?
Up to 24 hours, according to Google's help page. Use DebugView to check your events right away instead of waiting.