Stocky shut down on 31 August 2026. See your replacement options Stocky closed 31 Aug: export window and replacements
Pricing verified: 15 October 2026
Published: 16 April 2026 ·Updated · 9 min read · Ad Tracking

How to Set Up Google Analytics 4 on Shopify for Free (and Avoid Double-Counting)

Google Analytics 4 connects to Shopify free through the Google & YouTube app: install it, choose the Google Analytics 4 setup on its Overview page, and connect your GA4 property. Shopify then sends standard ecommerce events, including purchases. Never add a GA4 tag to your theme too, and treat Shopify's order count, not GA4's, as the true number of sales.

GA4 tells you where your visitors come from and where they leave. It is free, and on Shopify it takes one app to connect. The setup is the easy part. Most of the mistakes come afterwards: adding a second tag, trusting GA4’s order count, or bolting on a server-side fix that makes the numbers look better while making them less accurate. This guide covers both.

Before you start

You need:

Step 1: Connect GA4 through the Google & YouTube app

These steps follow Google’s own article, Shopify: Set up your Google tag, read on 15 October 2026:

  1. In Shopify admin, search for Google & YouTube and install the app.
  2. On the app’s Overview page, find the section for setting up Google Analytics 4 only and click Get started.
  3. Under Your Google Account, choose to connect a property.
  4. Select your GA4 property, click Connect, then Confirm.

You do not need Google Merchant Center for this. Shopify’s help page says so directly.

What Shopify sends

Once connected, the app sends standard ecommerce events, including product views, cart additions, checkout starts and purchases. Google’s article lists the events added most recently: view_item_list when a collection is viewed, remove_from_cart, view_cart, and add_shipping_info when shipping details are entered at checkout. That is enough to build the funnel described below without Tag Manager.

Step 2: Check it is recording

  1. In GA4, open Reports → Realtime.
  2. In another browser, visit your store and click through a few products. You should appear as an active user within a minute.
  3. Place a test order, for example with a 100% discount code. A purchase event should appear in Realtime shortly afterwards.

If nothing appears, check in this order: the app shows your property as connected; the store is not password protected; your own browser is not blocking Google Analytics (try a private window without extensions); and no cookie banner choice is preventing collection for your visit.

Step 3: Change the two settings that matter

Data retention. GA4 keeps detailed event data for two months by default, which is too short to compare this month with the same month last year in Explorations. In Admin → Data collection and modification → Data retention, set event data retention to 14 months, the maximum on the free version.

Search Console link. In Admin → Product links → Search Console links, link your Search Console property. GA4 then shows which Google searches bring visitors to your store.

purchase is treated as a key event by default, so you do not need to mark it yourself.

Why GA4 will always show fewer orders than Shopify

Shopify records every order on its own servers. GA4 records a purchase only when the Google tag runs in the shopper’s browser. It will not run, or will run with limited data, when:

So a gap between Shopify orders and GA4 purchases is normal, and its size depends on your visitors. Use Shopify’s order count as the true number of sales. Use GA4 for what it does better than Shopify: traffic sources, landing pages and the path visitors take.

Why this guide no longer recommends a Measurement Protocol “fix”

An earlier version of this guide, like many others, suggested sending every Shopify order to GA4 from a Make.com scenario through Google’s Measurement Protocol, using the customer’s ID as the client_id. We have removed it because it does more harm than good:

The result is a GA4 purchase count that moves closer to Shopify’s for the wrong reason. If you need complete conversion data for ad bidding, that is a different problem with a different fix: see Google Ads conversion tracking for Shopify and, for Meta, CAPI Shield.

The reports worth opening

Reports → Acquisition → Traffic acquisition. Sessions by channel. Add the purchases column to see which channels convert, not just which bring visitors.

Reports → Engagement → Landing page. Which pages visitors arrive on. A landing page with many sessions and few engaged sessions needs work before it gets more traffic.

Reports → Monetisation → Checkout journey. Where shoppers leave between starting checkout and buying.

Explore → Funnel exploration. Build the steps view_item, add_to_cart, begin_checkout, purchase, and break it down by device or by session default channel group. Compare each step with your own previous months; the step that has weakened is the place to look. The free conversion rate optimisation guide shows what to do once you have found it.

A one-week check

After seven days, compare:

If the purchase gap shrinks to almost nothing without you changing anything, look for a duplicate tag before celebrating.

Key facts, checked on the source

How to cite this page: Sandelands, L. (2026). How to Set Up Google Analytics 4 on Shopify for Free (and Avoid Double-Counting). Stack Architect. https://stackarchitect.xyz/blog/shopify-google-analytics-4-setup-free-2026/ These facts are published as open data under CC BY 4.0: key-facts.json. Found one out of date? How we check and correct.

Luke Sandelands
Written by Luke Sandelands
Founder, Stack Architect · Shopify Automation Specialist
Developer of StockLog and author of the open-source shopify-capi-validator npm package. Builds Shopify server-side tracking, Meta CAPI and Google Apps Script automations.
Full profile

Updated

Frequently Asked Questions

How do I connect Google Analytics 4 to Shopify?

Create a GA4 property with a web data stream, then install Shopify's Google & YouTube app. On the app's Overview page, find the section for setting up Google Analytics 4 only, click Get started, choose your property under your Google account, click Connect and then Confirm. Google documents these steps in its help article Shopify: Set up your Google tag.

Do I need Google Tag Manager to use GA4 on Shopify?

No. The Google & YouTube app sends Shopify's standard ecommerce events to GA4 without Google Tag Manager. If you add GA4 through Tag Manager, a theme snippet or a custom pixel as well, the same visit and purchase can be recorded twice, so use one method only.

Why does GA4 show fewer purchases than Shopify?

Shopify records every order on its own servers. GA4 only records a purchase if the tag in the shopper's browser runs, and ad blockers, declined cookie consent and browser privacy limits all stop it. A gap is expected. Use Shopify's order count as the true figure and use GA4 for what it is good at: where visitors come from and where they leave.

Should I send Shopify purchases to GA4 through the Measurement Protocol?

Usually not. Google's Measurement Protocol documentation says the client_id should match the ID generated by the Google Analytics tag on your site, which a Shopify order webhook does not contain. Sending purchases with another ID, such as the customer number, creates purchases with no traffic source and risks counting orders twice alongside the browser tag.

Is GA4 free for Shopify stores?

Yes. The standard version of Google Analytics 4 is free, and so is Shopify's Google & YouTube app. The paid version, Google Analytics 360, is aimed at very large sites and is not needed by a typical Shopify store.