Setting up Google Analytics 4 on Shopify

Updated tutorial walks you through how to dive deeper in your website visits and customer data using the free Google & YouTube App. Plus other tracking options you can consider based on your goals.

Key topics

Woman shopping at a Shopify store to understand how to setup Google Analytics 4

If you’re running a Shopify store, you’ll want to understand your website visits and customers further with a free tool like Google Analytics 4.

The best and easiest way to connect your Shopify store to Google Analytics is to use the free Google & YouTube app.

Since July 2026, the app uses built-in web and server-side tracking, a reliable method to track website visits and transactions.

Previously, the app would rely on web-side tracking, meaning you’d lose some of this data when browser or cookie blockers got in the way. Or when a checkout thank you page did not load. We estimated around 20% of purchases were missing in GA4 reports before July 2026.

The Google & YouTube app offers a number of features including:

  • Connect to Google Analytics
  • Set up Google Ads or integrate your Google Ads tracking
  • Add, manage or create a Product feed with Google Merchant Center
  • Sync product shipping and details easily
  • Use Product Studio to make AI-powered imagery and content with your products
  • Set up automated Customer Match lists (Audiences) for Google Ads
  • Share customer data securely to target audiences with Google Ads

This article has been updated in August 2026.

We will explore the following:

  1. What the Shopify Google & YouTube app tracks
  2. New events from 17 August 2026
  3. Updated limitations of the app
  4. How to install the Google & YouTube app (Video + List)
  5. How to add and use Google Tag Manager for Shopify
  6. Other ways to connect your website (Paid)
  7. Customer Events (Pixels)
  8. How we can help you track your Shopify store better

What the Shopify Google & YouTube app tracks

At a high level, it tracks:

Event nameEvent description
page_viewPage title (name), path, etc.
searchA customer viewed a product on your online store. It will show the first variant of a product with the product’s full name, e.g. 100% Recycled Flower – Blue. If you have more than one variation (e.g., 100% Recycled Flower – Red), this event will not fire when the customer changes the variation on the same page.

The integration sends the product ID, not the variant ID, to GA4.
view_itemWhen you view a product’s individual page.
add_to_cartA customer presses the add to cart button for a product in your store/adds further quantity on the product page. The event does not fire when quantity is added/deleted in the view cart page. Some payment gateway add-to-cart events will not fire, e.g., Shop Pay quick checkout buttons.
begin_checkoutA customer started the checkout process. If the customer goes to view the checkout again in the same session, GA4 receives this event only once.
add_payment_infoA customer successfully enters payment information.
purchaseA customer completed their checkout. This event will fire once only, even if the customer reloads the page. The value does not include shipping or tax.

Upsells shown post-purchase do not have revenue, item view or information sent to GA4.

GA4 does receive the customer information for the purpose of Google Ads if you have connected this.

In August 2024, Shopify started to close a loophole that allowed users not on Shopify Plus to add additional tracking to their checkout and thank you pages.

From 26 August 2026, all remaining thank you and order status pages will be migrated to the new version, along with the removal of Additional Scripts in the checkout settings.

New events from 17 August 2026

Four new events will be added to the app from 17 August 2026.

Event nameEvent description
view_item_listA customer views your product category or collection page.
remove_from_cartWhen a customer adds a product to their shopping cart, then decides to remove it from the cart.
view_cartIf the customer goes to view their cart, this event should fire. We would expect it to include the sidebar view cart experiences in most themes.
add_shipping_infoAt the checkout, when the customer provides their shipping or address details.

In addition, Google will also add extra information to some existing events, including:

Event nameAdditional information (parameters)
view_itemValue, Currency, Item SKU, Coupon, Variant ID and Quantity
add_to_cartSKU, Variant ID and Coupon
begin_checkoutSKU, Variant ID for each item in the cart
add_payment_infoValue, Payment Type (payment gateway), List of cart items associated with item data and Coupon. Also, the non-standard “total” is changed to “value”
purchaseCoupon, Item SKU, Variant ID, Market ID (Localisation information) and Affiliation (includes hostname, which is the website URL) data.

These additional events and information are likely for future use, not historical. However, they will fill up many of the gaps currently in the Monetization (eCommerce) reports that Shopify users face in GA4.

If you wish to exclude any of these events, the app adds a new parameter so you can create a filter with the parameter equals shopify_event_name (event name is the event name you wish to exclude; see table above).

What limitations does the Google & YouTube app have?

The Google channel app still has some gaps after 17 August, including:

  • Collection/category page item list clicks (select_item_list)
  • Wishlist adds: manual tags can achieve this.
  • Upsells: the tool cannot pick up revenue received from this Shopify tool.*
  • Refunds*
  • Subscriptions: recurring payments will not feed back into GA4 data.*

*These data points are usually only achievable with custom server-side tracking tools or apps.

The following events have some limitations:

  • Variant information: a variable product does not appear as being viewed if the customer changes between products on the same page.

How do I add the GA4 tag to my Shopify website?

How to install Google Analytics 4 using the Google & YouTube channel app

Watch this tutorial video below or see detailed steps underneath.

Step 1) Install the official Google & YouTube app

  1. Log in to your Shopify Admin.
  2. In the Shopify search bar (top centre), type Google & YouTube.
  3. Confirm you are selecting the official Google & YouTube app.
  4. Click Install.

Step 2) Connect the correct Google account

  1. When prompted, click Connect.
  2. Sign in with the Google account that has access to the Google accounts you will link.
  3. Confirm the account can access:
    • Google Analytics (GA4)
    • Google Merchant Center (Product feed tool)
    • Google Ads (only if you plan to connect it)
  4. Select the correct Google account to associate with your Shopify store.

Step 3) Connect Google Merchant Center (product feeds)

If you prefer to use another app or don’t have this, go to the right-side banner (usually has a Google Ads message), then select the arrow to choose the next slide. You’ll have an option to just install Google Analytics instead.

The right side bar banner on slide 2 shows the option to install only Google Analytics if you do not want to install Merchant Center
  1. In the Merchant Center step, choose the Merchant Center account you want linked.
  2. If you already have a feed set up, select Connect.
  3. If you don’t have one, choose Create new.
  4. Review the Merchant Center requirements Google shows (for example you need valid payment methods, refund and return policy on website and a way for customers to contact you).
  5. Agree to the terms and complete the connection.

Step 4) Connect Google Analytics to the correct GA4 property

  1. Select the correct GA4 property from the list.
  2. If no suitable property exists yet, choose Create.
  3. Click Confirm to link the selected GA4 property.
  4. Verify the property you selected matches the store you’re configuring.

Step 5) Confirm Google tag settings and complete tag setup

  1. Review the Google tag prompt shown by the app.
  2. Confirm the settings are correct.
  3. If you use Google Tag Manager (GTM), note that Google is consolidating tag management under the Google tag.
  4. Continue with the option the app provides to manage/confirm your tag setup.

Step 6) Decide whether to connect the YouTube sales integration (optional)

  1. Review the prompt about selling via your YouTube channel.
  2. If you have an active YouTube channel you want to use for sales, proceed with the connection.
  3. If not, select Skip.
  4. Confirm the app shows that Google & YouTube integrations are connected before moving on.

Step 7) Review connected products and manage settings

  1. Go to the app dashboard and confirm connections are Active.
  2. In Merchant Center, check product approval status (you may need to wait 24-48 hours).
  3. Use bulk edit options (within the app if available) to manage products/variants when needed.
  4. Open Merchant Center settings from within the app to review configuration.

Step 8) Migrate Google tags if prompted (prior to 26 August 2026)

  1. If Shopify or Google shows a warning about tag migration, open the migration prompt.
  2. Review migration details carefully.
  3. Choose one of these:
    • Migrate the selected tag, or
    • Ignore the tag if it’s no longer needed.
  4. If the system asks to remove duplicates, follow the prompt to complete migration.

Step 9) Account for Shopify tracking changes (use supported methods)

  1. Be aware Shopify is restricting where certain custom scripts/tracking code can be added.
  2. Prefer supported approaches via:
    • The Google & YouTube app integration
    • Customer Events where you need additional supported tracking needs
  3. If you specifically need Customer Events setup, search for Customer Events inside Shopify search bar (top centre).

Step 10) Verify tracking with Google Tag Assistant (post-setup)

  1. After setup, test the store using Google Tag Assistant.
  2. Visit tagassistant.google.com
  3. Start a test session.
  4. Perform a test user journey:
    • browse a product
    • add to cart
    • begin checkout
    • complete a purchase (test order)
  5. Check what events appear in GA4 and Google Ads (Goals > Conversions > Summary > Diagnostics).
  6. Look for:
    • duplicate tags
    • unexpected event counts
    • suspicious spikes (for example, unusually high add-to-cart or page_view counts from a single action)
  7. Troubleshoot any inconsistencies.

Note: Your checkout and payment page will disconnect Tag Assistant. You can check Google Analytics 4 in 24 hours or use GA4 Debugview.

Hot tip: To test that your full setup is working, you can create a discount code for your product and shipping. Then use this as a guest checkout. Make sure the discount is only set to specific users (your email), or has a long code and restricted usage setting (quick expiry) to avoid a 100% coupon from going into the wrong hands. Also, cancel the order post-testing.

Further reading: 10 steps to set up your GA4 property

How to install Google Tag Manager to Shopify

You must follow a different process to install Google Tag Manager in Shopify.

This video also shows you how to install Google Analytics using your theme code, if you do not want the Shopify Google & YouTube app method. Note that the app gives you more information unless you add custom tags afterwards.

How to check if the tag is working

If there is no traffic result in the real-time report, double-check the steps or use Google Tag Assistant to verify which tags are firing.

Other ways to connect your website (Paid)

If you want server-side tracking and support to troubleshoot issues, these paid options may be for you.

Note: You can get server-side tracking already when using Shopify apps like Meta.

Littledata

Littledata offers server-side tracking for Google Analytics, Google Ads, along with third-party tools such as Meta (Facebook/Instagram), Klaviyo (Email Marketing), TikTok and Pinterest.

The tool starts with its Flex plan that charges $0.35 USD per order. It also has a $199 USD plan for those with 1,500 orders per month.

Elevar

Elevar also offers server-side tracking across multiple platforms, including Google Analytics, Meta, Google Ads, TikTok and Klaviyo.

Pricing starts from $225 USD per month for sites with up to 2,000 orders.

Analyzify

Analyzify offers server-side tracking as well for Google Analytics, Meta, TikTok and integrates with Google Tag Manager.

It starts from $145 USD per month, with up to 5,000 orders included.

Custom tag solutions – Cookie-Based/Server-side

We provide custom tag solutions for clients depending on their business and needs.

For most eCommerce stores, you will want to track the following:

  • Customer last order
  • Customer order count
  • Customer ID
  • Payment type
  • Product brand and category
  • Product name, price and quantity
  • Product SKU
  • Product variant ID and title
  • Shipping and tax
  • User type
  • Currency
  • Total purchase value

In addition, you’ll want to ensure you capture the best practice settings for GA4. You may also want to track the following:

  • Email clicks
  • Email subscription opt-ins, including via Klaviyo and other tools
  • User logins or registrations for your store
  • Third-party payment clicks, e.g. Google Pay or Afterpay
  • Add to cart clicks (not supported by app, e.g. Shop Pay button)
  • Accordion/collapsible container usage, e.g. Frequently asked questions
  • Telephone clicks
  • Contact/online form submissions
  • Button clicks on key buttons to build audiences for retargeting those who abandon their purchase
  • Clicks on filters, e.g. product size, colour

These items are useful for understanding user behaviours better and can be reused for Google Ads remarketing to tailor messages to your audience.

A good use case is to build an audience of those who select Afterpay but forget to check out, and you show an ad on Google Ads that mentions Afterpay, or track what size or colour different customers like to segment them for Google Ads/new products later.

Customer Events (Pixels)

Customer Events allow you to add custom tracking or apps to your Shopify Store.

To get there, head to your Shopify Admin dashboard, then type into the top search bar “Customer events”.

You’ll find the Google & YouTube app (if set up).

Shopify customer events displays active custom pixels and apps tracking on your site and the method they are using

Other common use cases:

  • Google Tag Manager code
  • Google Search Console verification code
  • Meta
  • Microsoft (Bing Ads)
  • Microsoft Clarity (Screen Recording tool)
  • Klaviyo (Email Marketing)
  • Judge.me (Online reviews)

Select the tag to edit it. You can also disconnect or delete the custom pixel.

Need help setting up Google Analytics 4 on Shopify?

Our GA4 eCommerce Package can take care of this.

For this package, we will combine the Shopify Google & YouTube app and Google Tag Manager to track events in your store.