Guide · Tracking and data

GA4 ecommerce events on Shopify: every event and how to check it

Every GA4 ecommerce event a Shopify store should send, with parameters, where to find each in GA4, what the native app leaves out and how to test.

Updated · 11 min read

By the ROASaurus team

The short answer
  • The core GA4 ecommerce events are view_item_list, view_item, add_to_cart, remove_from_cart, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase.
  • Each needs currency, value and an items array with item_id, item_name, price and quantity; brand, category and variant make product reports useful.
  • Shopify's Google & YouTube app maps most core events from Shopify's standard events; select_item, promotions, wishlists and refunds need another method.
  • Check every event in DebugView with a test order, and compare purchase transaction ids against Shopify's orders.
  • Use one source per event: GA4 deduplicates purchases by transaction id, not page views or cart events.

GA4's ecommerce reports are built from a fixed set of recommended events. If an event is missing or its parameters are wrong, the matching report is empty or misleading. This guide lists every ecommerce event a Shopify store should send, what each parameter does, how to find each event in GA4, what Shopify's native integration covers, and the common problems per event.

The core GA4 ecommerce events for Shopify stores

Browseview_item_list, select_item
Productview_item
Cartadd_to_cart, view_cart, remove_from_cart
Checkoutbegin_checkout, add_shipping_info, add_payment_info
Orderpurchase, refund
GA4's recommended ecommerce events along a Shopify shopping journey.
GA4 eventFires on Shopify whenShopify standard eventFeeds
view_item_listA collection or search results page shows productscollection_viewed, search_submittedItem list performance
select_itemA shopper clicks a product in a list(none: theme code)Item list click-through
view_itemA product page loadsproduct_viewedEcommerce purchases (items viewed), Purchase journey
add_to_cartA product is added to the cartproduct_added_to_cartItems added to cart, Purchase journey
remove_from_cartA line is removed or its quantity loweredproduct_removed_from_cartCart behaviour
view_cartThe cart page or drawer openscart_viewedCart behaviour
begin_checkoutCheckout openscheckout_startedCheckout journey, Purchase journey
add_shipping_infoA shipping method is submittedcheckout_shipping_info_submittedCheckout journey
add_payment_infoPayment details are submittedpayment_info_submittedCheckout journey
purchaseThe order is completedcheckout_completedEvery monetization report
refundAn order is refunded (server-side)(none: order webhook)Refund amount, net revenue
Shopify standard event names from the Web Pixels API. Server events such as refunds come from Shopify's order data, not the browser.

Swipe the table sideways to see every column.

The parameters every ecommerce event needs

Google's ecommerce guide defines one shape for all these events: event-level parameters plus an items array.

A purchase in GA4's recommended format (example values)
{
  "event": "purchase",
  "transaction_id": "1042",
  "value": 110.00,
  "currency": "EUR",
  "tax": 23.10,
  "shipping": 4.95,
  "coupon": "SPRING10",
  "items": [{
    "item_id": "SHIRT-LIN-M-BLU",
    "item_name": "Linen shirt",
    "item_brand": "Demo Studio",
    "item_category": "Shirts",
    "item_variant": "M / Blue",
    "price": 55.00,
    "quantity": 2,
    "discount": 5.00
  }]
}
  • currency and value are needed for revenue to be counted. Google asks that value be the sum of price times quantity, without shipping and tax, which go in their own parameters.
  • transaction_id identifies the order. GA4 uses it to drop a second purchase with the same id.
  • items: each item needs item_id or item_name. Add item_brand, item_category (up to five levels), item_variant, price, quantity and discount to break reports down by them.
  • Pick one id for item_id (SKU, variant id or product id) and use it in every event and in your Merchant Center feed, or product reports and Google Ads remarketing will not join up.

What the Google & YouTube app does not track

Google's reference for the Shopify integration lists the Google tag events the app maps from Shopify's standard events: page_view, view_item_list, view_item, add_to_cart, remove_from_cart, view_cart, search, begin_checkout, add_shipping_info (only with Checkout Extensibility), add_payment_info and purchase. Its purchase carries the transaction id, value, tax, shipping, coupon, items and whether the customer is new.

Covered by the app
  • Product, cart and checkout events
  • Purchase with transaction id, tax, shipping and coupon
  • Search terms
  • New or returning customer on purchase
Needs another method
  • select_item (clicks in lists)
  • view_promotion and select_promotion
  • add_to_wishlist (no native Shopify wishlist)
  • refund (happens after the visit)
  • Custom item parameters your reports need

Add the missing events with Google Tag Manager and a data layer, a custom pixel or an app, and send only those, so the app's events are not duplicated. See Google Tag Manager on Shopify.

Additional GA4 ecommerce events worth tracking

  • select_item with item_list_name: which collection or recommendation block gets clicks.
  • view_promotion / select_promotion with promotion_name and creative_slot: whether home page banners lead anywhere.
  • add_to_wishlist: interest in products shoppers are not ready to buy.
  • refund: lets GA4 subtract returned revenue. Send it server-side with the original transaction_id; a full refund needs only the id, a partial one also the items.
  • sign_up, login, generate_lead: account creation and newsletter sign-ups as their own events.

The purchase event

purchase is the event every revenue figure in GA4 comes from. It is a key event by default. On Shopify it fires on the thank-you page through the checkout pixel, or from a server when the order is paid.

Finding the purchase event in GA4

  1. Realtime and DebugView

    Place a test order and watch purchase arrive in Admin › DebugView with its parameters (with debug mode on, or Tag Assistant connected).

  2. Events report

    Reports › Engagement › Events › purchase shows the count, the users and the parameters received.

  3. Monetization

    Reports › Monetization › Overview and Ecommerce purchases show the revenue and items from purchase events.

  4. Order level

    An exploration with Transaction ID shows each order once; a duplicated id means two tags.

The add_to_cart event

add_to_cart fires when a shopper adds a product: from a product page, a quick-add button on a collection or an upsell in the cart drawer. Its value is price times the quantity added, and items holds the variant added.

How to find add_to_cart in GA4

  1. Add a product in a test session

    Use DebugView to confirm one add_to_cart per click, with the right variant and quantity.

  2. Open the Events report

    Reports › Engagement › Events › add_to_cart for counts and users over time.

  3. Check product level

    Reports › Monetization › Ecommerce purchases shows items added to cart per product.

Which reports use add_to_cart and the cart events

  • Ecommerce purchases: items added to cart and the cart-to-view rate per product.
  • Purchase journey: the add-to-cart step and the drop-off after it.
  • Funnel explorations: any funnel with a cart step, including view_cart and remove_from_cart.
  • Audiences: "added to cart, did not purchase" for remarketing.

Quick-add buttons and cart drawers often bypass the product form the integration listens to. Test every way a product can be added.

The view_item_list event

view_item_list fires when a list of products is shown: a collection page, search results, a "you may also like" block. It carries item_list_id, item_list_name and the items with their index (position in the list).

How to find view_item_list in GA4

  1. Open a collection page in a debug session

    Check view_item_list arrives once per list with the visible items.

  2. Register the list dimension if needed

    Item list name is a built-in item-scoped dimension; use it in Ecommerce purchases or an exploration.

  3. Compare lists

    In an exploration, use item list name with items viewed in list and items clicked in list (needs select_item) for list click-through rate.

Parameters of view_item_list

  1. item_list_id and item_list_name

    For example the collection handle and title, or "search_results".

  2. items[]

    Each product shown, with item_id, item_name, price and index. Long collections are often sent in batches as the shopper scrolls.

  3. Keep lists the same across events

    Send the same item_list_name on select_item and add_to_cart, so GA4 can credit the sale to the list.

The view_cart and remove_from_cart events: common issues

  • Cart drawers: themes with a slide-out cart never load the cart page, so view_cart must fire when the drawer opens, not on page load.
  • Quantity changes: lowering a quantity from 3 to 1 is a remove_from_cart of 2; raising it is an add_to_cart. Many setups only catch the remove button.
  • Value: view_cart value is the cart total of item prices; remove_from_cart value is the removed lines only.
  • Repeated firing: drawers that re-render send view_cart several times per opening.

The add_shipping_info event

add_shipping_info fires when the shopper submits a shipping method in checkout. Its parameters are currency, value, coupon, shipping_tier (the chosen method, such as "Standard" or "Express") and items.

Finding it and add_payment_info in GA4

Both show in Reports › Engagement › Events and as steps of the Checkout journey report. In an exploration, break add_shipping_info down by shipping tier to see which methods shoppers choose before buying.

Parameters of add_shipping_info

  1. shipping_tier

    The method name as shown in checkout. Keep names stable, or reports split one method into several.

  2. value and currency

    The items' value, like begin_checkout; shipping cost itself is not part of value.

  3. coupon and items

    The discount code entered so far and the items in checkout.

Common issues with add_shipping_info, add_payment_info and add_to_wishlist

  • Older checkouts: Shopify's native integration sends add_shipping_info only with Checkout Extensibility.
  • One-page checkout: shipping and payment are submitted together, so both events fire at the same moment and the Checkout journey shows no drop-off between them.
  • Express wallets (Shop Pay, Apple Pay, Google Pay, PayPal) can skip shipping and payment steps; purchases arrive without them.
  • add_payment_info should carry payment_type (card, PayPal); it fires per submit, so a failed card and a retry count twice.
  • add_to_wishlist: Shopify has no native wishlist, so the wishlist app or theme must push the event with the item.

Checkout events together

The checkout events are begin_checkout, add_shipping_info, add_payment_info and purchase. On Shopify they come from the checkout pixel (Settings › Customer events), because themes cannot run scripts in checkout.

Finding checkout events in GA4

Reports › Engagement › Events for counts, Reports › Monetization › Checkout journey for the step-by-step view, and DebugView for single test checkouts.

Parameters of the checkout events

EventRequiredRecommended
begin_checkoutcurrency, value, itemscoupon
add_shipping_infocurrency, value, itemscoupon, shipping_tier
add_payment_infocurrency, value, itemscoupon, payment_type
purchasetransaction_id, currency, value, itemstax, shipping, coupon
From Google's recommended events reference. "Required" means needed for the event to count in ecommerce reports.

Swipe the table sideways to see every column.

GA4 reports that cover checkout events

The Checkout journey report (begin checkout to purchase), the Purchase journey report (session start to purchase), funnel explorations and the Ecommerce purchases report. For the full report list, see GA4 ecommerce reports.

How to test your GA4 ecommerce events

  • Open DebugView and run through the journey: collection, product, add to cart, cart, checkout, shipping, payment, purchase.
  • Each event appears once, with currency, value and items.
  • Item ids match across events and your product feed.
  • The purchase transaction id equals the Shopify order number or id you chose, and appears once.
  • Value excludes tax and shipping; tax and shipping arrive as their own parameters.
  • A visitor who declines consent sends what your consent setup allows, nothing more.
  • After a day, compare GA4 purchases to Shopify orders and note the gap.

Browser events, server events and duplicates

Events can reach GA4 from the browser (the Google tag) or from a server through the Measurement Protocol. Server events help with purchases the browser missed and with refunds, which happen after the visit. They join the visitor's session only if they carry the browser's client_id (from the _ga cookie) and session id, and the Measurement Protocol accepts events up to 72 hours old.

GA4 drops a purchase whose transaction id it already has, so a purchase may come from both browser and server. It does not deduplicate page views or cart events, so send those from one place only. See GA4 enhanced measurement for the events GA4 records on its own.

GA4 events in ROASaurus

ROASaurus sends GA4 events two ways: from its server through the Measurement Protocol, and, if you switch it on, through a GA4 browser tag on your storefront.

The GA4 browser tag

The GA4 destination has an option, off by default, to also load the GA4 tag on the storefront, with full ecommerce events. The ROASaurus storefront script then loads the Google tag for your measurement id (with GA4's own automatic page view off) and sends page_view, view_item, view_item_list, search, add_to_cart, remove_from_cart and view_cart from the browser, plus generate_lead for site forms. Items carry item_id (the variant id, the same id as the server purchase), item_group_id (the product id), item_sku, name, price and quantity, and on lists the list name and position. Leave the option off if the GA4 tag is already on your store through Shopify's Google & YouTube app, the theme or GTM, or the events count twice.

What the browser tag does not send on Shopify: the checkout events and the purchase, because Shopify's checkout runs outside the theme. The purchase stays on the Measurement Protocol, deduplicated by transaction id. select_item, promotions and a view_item on variant change are not detected.

The server events

The Measurement Protocol side is mostly unchanged. A new GA4 destination sends Purchase and Refund by default, since GA4 deduplicates purchases by transaction id but not page views or cart events. You can tick page view, view item, add to cart, begin checkout and lead, and by hand the extra events: view item list, search, view cart, remove from cart, add to wishlist, and Shopify's checkout steps as add_shipping_info and add_payment_info. Tick the browsing and cart events only when no GA4 tag runs in the browser, the ROASaurus one included.

Server events carry the same parameters as before: purchases the transaction id, value without tax and shipping, tax, shipping, currency, and items with id, name, price and quantity; searches the search term and lists the list name. For consenting shoppers a purchase can also carry the order's contribution margin, a predicted lifetime value and new or returning customer. Coupon, item discount, brand, category and variant name are not sent, by the browser tag or the server. The GA4 client id and session id are read from the browser when the visitor consented.

In ROASaurusConnections › Tracking & destinations
  1. Add GA4 as a destination with your measurement id and a Measurement Protocol API secret.
  2. If no GA4 tag runs on your store yet, tick "Also load the GA4 tag on the storefront, with full ecommerce events". Leave it off if Shopify's Google & YouTube app, the theme or GTM already loads it.
  3. Keep Purchase and Refund ticked for the server. Tick the browsing and cart events for the server only if no GA4 tag runs in the browser; tick add_shipping_info and add_payment_info if you want Shopify's checkout steps in GA4.
  4. Turn on test mode to send server events to GA4's validation server first; it checks each event and records nothing.
  5. Check each delivery and GA4's answer under Data quality › Deliveries, and the browser events in GA4's DebugView.
  6. Read your GA4 numbers back under Website › Search › GA4 and compare them with Website › Funnel.
The ROASaurus Mac app showing Deliveries: each server event per platform with its status and the platform's answer. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Deliveries: each server event per platform with its status and the platform's answer. Fictional demo store, simulated data.
Data quality › Deliveries: each server event per platform with its status and the platform's answer. Fictional demo store, simulated data.

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

Sources

  1. Google for Developers: Measure ecommerce (GA4)
  2. Google for Developers: Recommended events reference
  3. Google for Developers: Shopify event parameters for the Google tag
  4. Google for Developers: Measurement Protocol (GA4)
  5. Shopify Dev: Web pixels API standard events
  6. Google Analytics Help: Checkout journey report

More guides on tracking and data · All guides

FAQ

Questions, answered

More answers in the FAQ and the help center.

What are the core GA4 ecommerce events for a Shopify store?

view_item_list, view_item, add_to_cart, remove_from_cart, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, with refund sent from the server. select_item, promotions and wishlists add detail.

What is the GA4 purchase event on Shopify?

The event GA4 records when an order is completed, with transaction id, value, currency, tax, shipping, coupon and items. All of GA4's revenue reports are built from it.

Why does GA4 show more purchases than Shopify orders?

Usually two tags send the purchase, for example the Google & YouTube app and a GTM tag, with different transaction ids or none. Send purchase from one source, or make sure every source uses the same transaction id.

Does the Shopify Google & YouTube app send add_shipping_info?

According to Google's reference for the Shopify integration, only on stores with Checkout Extensibility. Older checkouts need another method.

Should the purchase value include shipping and tax?

No. Google asks for value as the sum of item price times quantity, with tax and shipping in their own parameters.

Can I send GA4 events server-side from Shopify?

Yes, through the Measurement Protocol with an API secret. Include the browser's client id and session id to join the session, and send events within 72 hours.

How do I track add_to_wishlist on Shopify?

Shopify has no built-in wishlist, so the wishlist app or theme has to push the event, with the item, into the data layer or call gtag directly.

Every sale, traced to the ad that earned it

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