CartSpy
Guide · Google Analytics and Shopify · 2026

Google Analytics and Shopify: setting up GA4 (2026)

How do I use Google Analytics with my Shopify store?

Create a Google Analytics 4 property with a web data stream, then install Shopify's Google & YouTube sales channel and set up your Google tag; certain ecommerce events are then tracked automatically. GA4 shows Google's view of your traffic. For a quick live overview of each shopper's cart, checkout and order, CartSpy is an app for Shopify built for that.

The setup steps, what GA4 records, and why its numbers differ from Shopify's, with the Shopify Help Center pages behind each fact.

Built for Shopify Built for Shopify

Set up Google Analytics 4 on Shopify, step by step

  1. Google account and Analytics account. Sign in with a Google account (the one you use for Gmail or Google Ads works) and create a Google Analytics account.
  2. GA4 property and web data stream. Create a Google Analytics 4 property, or move one you made earlier, then create a web data stream. Note its Tag ID.
  3. Google tag from Shopify. Install the Google & YouTube sales channel in your Shopify admin and follow Google's steps to set up your Google tag. You don't have to connect Google Merchant Center.
  4. Google Ads (optional). Link your Google Analytics property to your Google Ads account to measure key events and build audiences.

Google Analytics can't track events while your online store is in private mode, so open the store first.

What GA4 records on your store

Once the tags are set up, certain ecommerce events are tracked automatically: for example a customer viewing a product, adding a product to the cart or completing a purchase. You can add other recommended or custom events yourself, as Google's help describes.

Shopify's Help Center describes Google Analytics as the tool for questions that Shopify's own analytics can't answer. For sales, orders, sessions and conversion, the Analytics dashboard and Reports in your Shopify admin are already there: see Shopify analytics: what you can see where and Shopify reports.

GA4 or Shopify Analytics: which one answers what

You want to knowWhere to look
Sales, orders and profitShopify: Analytics and Reports (the source for what sold)
Sessions, conversion rate and traffic by sourceShopify: Reports (Acquisition, Behavior, Marketing); GA4 as Google's second view
Events and audiences for Google AdsGA4, linked to your Google Ads account
Which shopper has what in their cart, live, and where they came fromCartSpy: one card per cart, as it happens

Why Google Analytics and Shopify show different numbers

Each tool counts visitors and sessions in its own way. Shopify's Help Center says Live View data might vary from analytics tools from other companies, and that Google does not reveal how it determines its real-time visitor count. Shopify also changed how it measures sessions in September 2026, so session-based numbers in Shopify can differ from earlier months.

A practical rule: take orders and sales from Shopify, and read GA4 as a second view of your traffic.

CartSpy: the quick live overview

Three Live View cards: an add to cart, an order and a checkout, each with the shopper's name or masked IP and city, the product and variant, the cart value, and icons for device, browser and traffic source
One card per shopper: the latest step, the product, the cart total, the city, the device and the source. From the CartSpy demo store.

CartSpy (one word) is a live feed of every cart, checkout and order in your store, shopper by shopper. It installs from the Shopify App Store and listens through Shopify's web pixel, so there is nothing to add to your theme. It keeps every abandoned cart with its products and sums up yesterday's carts in a short email each morning.

Related: traffic sources that buy · are my ads working? · analytics apps for Shopify

Questions about Google Analytics and Shopify

How do I connect Google Analytics 4 to Shopify?

Create a Google Analytics account and a GA4 property, add a web data stream and note its Tag ID, then install the Google & YouTube sales channel in Shopify and follow Google's steps to set up your Google tag. You don't have to connect Google Merchant Center for this.

What does Google Analytics track on a Shopify store?

After the GA4 tags are set up, certain ecommerce events are tracked automatically, such as a customer viewing a product, adding a product to the cart or completing a purchase, according to Shopify's Help Center. You can add other recommended or custom events yourself.

Why doesn't Google Analytics match Shopify?

The tools count in different ways. Shopify's Help Center says Live View data might vary from analytics tools from other companies, and that Google does not reveal how it determines its real-time visitor count. Use Shopify for orders and sales, and GA4 as a second view of your traffic.

Why is Google Analytics showing no data from my Shopify store?

Shopify's Help Center notes that Google Analytics can't track events until you deactivate private mode for your online store. Check that the store is open and that the Google tag was set up through the Google & YouTube channel.

Can Google Analytics show what each shopper has in their cart?

GA4 reports events and totals across your visitors. To see each cart on its own, live, with the products, the cart value and where the shopper came from, add CartSpy, an app for Shopify.

Sources

More guides

Add the quick live overview

Install, and every cart shows up as shoppers shop. 7-day free trial, cancel any time.

Start free trial