Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

Shopify Google Analytics 4 Setup: Connect GA4 and See What It Tracks Automatically

A step-by-step guide for Shopify store owners connecting GA4 through the Google & YouTube app: the setup, which Shopify events map to which GA4 events, what the integration leaves out, consent effects and how to check it works.

The EndFrame Team7 min read

The supported way to put Google Analytics 4 on a Shopify store is the Google & YouTube app (Shopify lists it as a sales channel). You create a GA4 property, install the app, connect the property, and the app starts sending page views, product views, cart activity, checkout steps and purchases without any code. This guide walks through the setup, lists exactly which Shopify events arrive in GA4 under which names, including four events Google told merchants it would add from 17 August 2026, and covers the three things that cause most bad Shopify data: events the app never sends, consent, and a second GA4 tag left over from an older setup.

Before you start

  • A Google account. Shopify notes that an account you already use for Gmail or Google Ads will do.
  • The Editor role on a Google Analytics account, which Google requires to add a property. If you created the account, you already have it.
  • The store must be out of private mode. Shopify states that Google Analytics cannot track events until you turn off private mode (password protection) for the online store.
  • No Google Merchant Center account is needed. Shopify says plainly you do not have to connect it to complete the GA4 setup.

How to connect GA4 to Shopify

  1. 1In Google Analytics, go to Admin, click Create, then Property. Enter a name and choose the reporting time zone and currency. Pick the same time zone and currency as your Shopify store, or daily counts and revenue will not line up.
  2. 2Still in Admin, under Data collection and modification, click Data streams, then Add stream, then Web. Enter the store's URL and a stream name and click Create stream. Note the Measurement ID, which starts with G-.
  3. 3In Shopify, open the App Store, search for Google & YouTube and install it.
  4. 4On the app's Overview page, find the section called Just want to set up Google Analytics 4 and click Get started. Connect your Google account, select the property you created and click Connect, then Confirm.
  5. 5If you lack access to the property through that Google account, or need to send data to several properties, use the alternative: Settings, Google tags, Manage, add the G- tag, Save, then Complete setup.

Google says the Overview page route is strongly preferred unless one of those exceptions applies. Linking GA4 to Google Ads is a separate step done inside Google Analytics, covered in our guide to linking GA4 to Google Ads. If you also want the app to create Google Ads conversion actions, that is another setup again, explained in Google Ads conversion tracking on Shopify.

Which Shopify events become which GA4 events

Shopify records shopper actions as standard customer events, such as checkout_completed. The app translates them into GA4's recommended ecommerce event names. It also sends GA4's standard measurement events such as session_start, first_visit and user_engagement. The table combines Google's developer reference for the app with its Shopify setup page. Google's setup page lists the four new events without a date; the 17 August 2026 start comes from Google's email to merchants as reported in the trade press.

GA4 eventSent whenNotes
page_viewAny page loads (Shopify event page_viewed)Original mapping
view_itemA product page is viewed (product_viewed)Original mapping
add_to_cartA product is added to the cart (product_added_to_cart)Original mapping
begin_checkoutCheckout starts (checkout_started)Original mapping
purchaseAn order is completed (checkout_completed)Carries transaction_id, value, tax, shipping, coupon and items
view_item_listA shopper views a collectionNew from 17 August 2026
remove_from_cartAn item is removed from the cartNew from 17 August 2026
view_cartThe cart is viewedNew from 17 August 2026
add_shipping_infoShipping or address details are entered at checkoutNew from 17 August 2026; needs Checkout Extensibility
searchA storefront search is submitted (search_submitted)In the developer reference, not on the help page
add_payment_infoPayment details are submitted (payment_info_submitted)In the developer reference, not on the help page

Every event the app sends includes a parameter called shopify_event_name, holding the original Shopify event. Google suggests using it to build filters in Google Analytics, for example to keep the newer events out of a report if they upset comparisons with earlier months. To see it in reports, register shopify_event_name as an event-scoped custom dimension under Admin, Data display, Custom definitions.

Two parameter details matter for revenue. Google's reference says value includes item and order discounts but excludes shipping and tax, so GA4 purchase revenue will normally sit below Shopify's total sales, which include shipping and tax. It also says currency defaults to USD when the event carries none. Our guide to Shopify vs GA4 revenue works through the reconciliation.

Is the purchase event server-side now?

Trade press reported that from July 2026 Google began receiving the purchase event directly from Shopify's servers for stores using the app, with no merchant action needed, while every other event still comes from the shopper's browser. The reports quote a Google email and practitioners rather than a help page, and neither Google's Shopify setup page nor its developer reference describes it at the time of writing. Treat it as reported, not documented. If true, purchases are less exposed to ad blockers than the other events, which would explain a funnel where purchases look healthier than add_to_cart.

What the integration does not send

Anything outside the table above is missing. The gaps that usually matter are:

  • refund: refunds happen in the Shopify admin, not in a shopper's browser, so no pixel fires. See how to track refunds in GA4 for the server-side approach.
  • select_item, view_promotion and select_promotion: list clicks and promotion banners are not in Google's mapping.
  • Lead and account events such as sign_up or generate_lead for newsletter forms.
  • Subscription renewals and post-purchase upsell transactions, which a practitioner quoted in the trade press lists among the app's gaps.

To add a missing browser event, the usual route is a custom pixel under Settings, Customer events that listens for a Shopify standard event and sends only the GA4 events the app does not. If the pixel loads the Google tag for the same Measurement ID, set send_page_view to false in its config call and never send purchase or add_to_cart from it, or those events double. Events with no Shopify standard event behind them need extra development work. Our explainer on Shopify custom pixels and customer events covers the full event list and sandbox limits, and Google Tag Manager on Shopify covers running a container in a pixel.

Avoid a second GA4 tag

The most common Shopify GA4 fault is two tags sending to the same property: the app, plus a gtag.js snippet pasted into theme.liquid years ago, a GA4 tag inside Google Tag Manager, or a custom pixel. Page views, product views and cart events have no unique ID, so GA4 simply counts both copies. Your engagement rate, page views per session and funnel steps all inflate.

Purchases behave differently. Google Analytics deduplicates purchase events that share the same transaction_id, so two tags sending the same order with the same ID count once. Two traps remain. If the old tag sends a different value, for example the order number while the app sends another identifier, GA4 sees two purchases. And Google warns never to send an empty string: Google Analytics deduplicates all purchase events that have an empty transaction_id, so genuine orders disappear from your reports.

To find leftovers, search your theme code for G- and GTM-, and check Settings, Customer events for custom pixels. The free pixel inspector lists the GA4 and Tag Manager tags it finds in a page's initial HTML, which is where a snippet pasted into theme code shows up. Shopify runs app pixels and custom pixels in a separate sandbox, and the inspector cannot see tags injected later, so a clean scan does not rule out a duplicate inside a custom pixel or a Tag Manager container. The same rule applies to server-side tools. EndFrame, for example, can forward conversions to GA4 through the Measurement Protocol, but while the app sends purchases to a property, a second purchase feed into that property only adds risk. Send each conversion to GA4 from one source.

Consent: why GA4 will count fewer orders than Shopify

The app works through Shopify's pixel system, which follows the store's customer privacy settings. Shopify's documentation says that in markets that require consent, such as the EEA and the UK, pixels run only after the visitor grants the permissions the pixel needs, and new pixels require Marketing and Analytics permission by default. A visitor who declines the banner sends GA4 nothing from the browser. Shopify's own order count will normally be higher than GA4's purchase count for that reason alone, before ad blockers are considered. If you use a third-party consent banner app, check with its developer that it records consent through Shopify's Customer Privacy API, which is how consent decisions reach Shopify's pixels; otherwise pixels may not run even for visitors who accepted. Neither Google nor Shopify has documented how consent applies to the reported server-side purchase feed.

How to check it works

  1. 1Confirm password protection is off and the app shows the property as connected.
  2. 2Open the store in a normal browser window, accept the cookie banner, view a collection and a product, add to cart, view the cart and start checkout.
  3. 3In Google Analytics, open Reports, then Realtime, and look for view_item_list, view_item, add_to_cart, view_cart and begin_checkout in the Event count by event name card. Google notes that data can take up to 30 minutes to start arriving after setup.
  4. 4Place a test order. Check that purchase appears in Realtime, then open the event and confirm transaction_id is filled in and value and currency look right.
  5. 5For parameter-level detail use Admin, Data display, DebugView. It needs debug mode, normally switched on through Tag Assistant. If Tag Assistant cannot connect to the store, rely on the Realtime report instead, and do not treat an empty DebugView as proof that tracking failed.
  6. 6The next day, compare GA4's purchase count with Shopify's order count for the same date and time zone. A modest gap is expected; close to double the orders points to a duplicate tag.

Frequently asked questions

Do I need Google Merchant Center to connect GA4 to Shopify?

No. Shopify's help page states that you do not have to connect Google Merchant Center to finish the GA4 setup. The Google & YouTube app uses Merchant Center for product listings and Shopping ads, but the Google Analytics connection works on its own, so you can skip the Merchant Center steps if you only want analytics.

Can I send Shopify data to two GA4 properties?

Google's setup page says the manual route, adding tags under Settings, Google tags, Manage in the Google & YouTube app, is the one to use when you need to send data to more than one property. The recommended one-click connection on the Overview page links a single property.

Why does GA4 show my purchases in USD when my store sells in euros?

Google's reference for the app says the currency parameter falls back to USD when no currency is present in the event data. Check the currency parameter on a test purchase in DebugView. Also check that the GA4 property's reporting currency, which you choose when creating the property and can change later in the property settings under Admin, matches the store's.

How do I stop the Google & YouTube app sending data to GA4?

Disconnect the Google Analytics integration in the Google & YouTube app settings in your Shopify admin. Google's documentation says this stops all Google Analytics data from the app, including purchase events, so only do it once another setup is ready to take over, or you will have a gap in your reports.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading