A woman at a desk looking at a laptop showing colorful line charts and bar graphs, with a notebook and a coffee cup beside her

How to Set Up Google Analytics for Shopify the Easy Way

By the Dropship Stair team. Last reviewed: November 2026.

Key takeaways

  • Google Analytics 4, or GA4, is Google’s free analytics tool. On Shopify it tracks store visits, product views, checkouts, and purchases as events.
  • Connect GA4 through the Google and YouTube app, not with pasted code, because the app sends Shopify’s shopping events automatically.
  • Confirm the setup in GA4’s Realtime report with a test order before you trust any number.
  • GA4 revenue often sits below Shopify sales, because of consent choices, ad blockers, and the way GA4 counts purchase value.

How to set up Google Analytics for Shopify is simpler than store owners expect, and it needs no code. Create a GA4 property, add a web data stream, and connect it through the Google and YouTube app. Then check that your sales data is flowing.

What does Google Analytics 4 track on Shopify?

Google Analytics 4 tracks your store as a stream of events. Every action a visitor takes is an event: a page view, a product view, an add to cart, a begin checkout, and a purchase. That event model is the big change from the old Universal Analytics, which counted sessions and pageviews first.

When you connect GA4 through Shopify’s Google and YouTube app, the app sends Shopify’s shopping events to GA4 for you. You do not paste tracking code into your theme, and you do not set up each event by hand. The app maps product views, add to carts, checkouts, and purchases.

GA4 answers different questions than Shopify’s built-in analytics. Shopify tells you what sold and for how much. GA4 tells you where buyers came from, what they looked at before buying, and where they dropped off. Our guide to Shopify analytics for beginners explains what the built-in reports cover on their own.

What do you need before you connect GA4?

You need four things before you start. First, a Google account that should own the store’s measurement, ideally the business account rather than a personal one. Second, a GA4 property with a web data stream for your store’s domain. Third, the stream’s measurement ID, which starts with G. Fourth, admin access to your Shopify store.

Check whether GA4 is already connected before you add anything. Connecting it twice leads to double counted events that make your reports unreliable. Look in your Shopify admin for the Google and YouTube app and check its Analytics section. If a property is already connected, verify it instead of connecting a second one.

Your store must not be password protected while you set this up. Google Analytics cannot track events until you turn off your online store’s private mode, so launch the store or remove the password page first. If you sell in the UK or the European Economic Area, plan to turn on Shopify’s cookie banner too, because consent rules there shape what GA4 can collect.

How do you set up Google Analytics for Shopify step by step?

The preferred way to set up Google Analytics for Shopify uses the Google and YouTube app, which Google calls strongly preferred in its own Shopify setup guidance.

Step 1: Create your GA4 property and web stream. Sign in to Google Analytics with the Google account that should manage the store’s measurement. Create an account if you do not have one, then create a property named after the store. Then create a web data stream for your store’s domain and note the measurement ID, which starts with G.

Step 2: Install the Google and YouTube app. Install it from the Shopify App Store. This is Shopify’s official channel for Google products. You do not need to connect Merchant Center to use it for Analytics.

Step 3: Connect your GA4 web stream. On the app’s Overview page, find the section that says you just want to set up Google Analytics 4 and click Get started. Select your property, click Connect, and then Confirm. The app now sends your store’s shopping events to that GA4 property.

Step 4: Use the manual option only if you have to. The app’s Settings page has a Google tags section where you can add a tag ID by hand. Use that only when the main connection flow fails, because a hand added tag can double count events if the app connection is also active.

Step 5: Link Google Ads if you run ads. Link your Google Ads account so GA4 can show which campaigns bring buyers. If you do not run ads yet, skip this step and come back to it later. For the wider traffic picture, see our guide on how to drive traffic to your Shopify store.

Step 6: Turn on the cookie banner. In your Shopify admin, go to Settings, then Customer privacy, and open the Cookie banner. With Shopify’s banner on, consent mode works automatically, so GA4 respects each visitor’s choice without extra setup.

How do you check that GA4 is receiving data?

A connected account alone does not prove that checkout tracking works. Verify the setup the same day you connect it, while the steps are still fresh in your mind.

Open GA4 and go to Reports, then Realtime. Visit your store, browse a product, add it to the cart, and watch yourself appear in the Realtime report within seconds. Then place a test order and confirm the purchase event arrives once, with the right value. One purchase event means the setup is clean. Two means something is double firing, usually a second tag or an old piece of code.

Give the standard reports time. Realtime data shows up within seconds, but standard reports take longer to process, so do not judge the setup on day one numbers. Wait a few days, then compare the GA4 purchase count with your Shopify orders.

Which GA4 reports matter most for a Shopify store?

GA4 has more reports than a small store will ever use. Start with the ones that answer real business questions.

Traffic acquisition shows where your visitors come from: search, social, direct, email, or paid ads. Pair it with the conversion rate for each channel to see which source brings browsers and which brings buyers. Our guide on Shopify store conversion rate shows how to read that number honestly.

The ecommerce purchases report shows what sells, how often, and for how much. It lists products by views, add to carts, and purchases, so you can spot the product people love but never buy. That gap usually points to a price or trust problem on the product page rather than a traffic problem.

Landing pages show which pages visitors arrive on first, and which of those pages lead to sales. A blog post that brings readers who never buy is still useful, but it should not be confused with a product page that brings buyers. Check the user acquisition and monetization overviews once a week, and act on the one change each report suggests.

Why does GA4 revenue differ from Shopify sales?

GA4 revenue will sit below Shopify’s sales figures, and most of that gap is expected.

Consent is the first cause. Visitors who decline cookies are not tracked, so their purchases never reach GA4. Ad blockers and privacy focused browsers have the same effect, and so does a buyer who leaves checkout before the purchase event fires, even though Shopify records the order.

The way GA4 counts purchase value is the second cause. Since April 24, 2025, the value on the purchase and begin checkout events is the subtotal minus item and order discounts, which excludes shipping and taxes. Shopify reports the full order total, so the two numbers describe different things. Compare GA4 revenue against itself over time.

Time zone and currency settings can add a third small gap, which is why matching them to the store during setup matters. If the gap is large and sudden, check for a real problem, such as a second tag double counting or the wrong property connected. A steady small gap is normal.

Feature Google Analytics 4 Shopify analytics
What it tracks Visitor behavior across channels and devices Orders, sales, and store performance
Best question it answers Where did buyers come from and what did they do What sold and for how much
Cost Free Included with your Shopify plan
Revenue match Often below Shopify totals The source of truth for money
Setup effort One connection through an app Works out of the box

Use GA4 to learn how buyers behave and Shopify analytics to learn what they bought.

What mistakes break GA4 tracking on Shopify?

The most damaging mistake is installing GA4 twice. The Google and YouTube app plus a hand pasted tag, or the app plus an old Universal Analytics snippet, will double count events and inflate every number. Keep one connection and remove the rest.

The second mistake is following old instructions. Universal Analytics is retired, and any guide that mentions a UA tracking ID, a View, or an Enhanced Ecommerce switch describes a different version of Analytics. If a tutorial tells you to paste code into your theme, it is almost certainly out of date for a standard store.

Other mistakes are smaller but common. A password protected store blocks tracking entirely. A missing cookie banner in the UK or EEA creates a consent gap you cannot fix later. Judging revenue on day one ignores the time standard reports need to process, and skipping the test order leaves you trusting a connection nobody verified. If you are still chasing your first orders, our guide on how to get your first sale on Shopify pairs well with the tracking setup in this article.

Frequently asked questions

Is Google Analytics free for Shopify stores?

Yes, Google Analytics 4 is free, and the Google and YouTube app that connects it to Shopify is free too. You only pay if you choose a paid analytics tool or hire someone to set it up. Any Shopify store can connect GA4, whatever plan it is on.

Do I need Google Tag Manager to set up GA4 on Shopify?

No, you do not need Google Tag Manager for a GA4 setup on Shopify. The Google and YouTube app handles the connection and the shopping events on its own. Tag Manager is useful only for custom tracking the app does not cover, such as extra events or third party tools.

Why is my GA4 revenue lower than my Shopify sales?

GA4 revenue often sits below Shopify sales, and some of that gap is normal. Buyers who decline cookies, use ad blockers, or leave before the purchase event fires never reach GA4. GA4 also counts purchase value without shipping and taxes, while Shopify reports the order total. Compare trends, not totals.

Can I use my old Universal Analytics tracking on Shopify?

No, Universal Analytics is retired, and its tracking IDs no longer collect data. If your store still has old Universal Analytics code, remove it so it does not confuse your reports. Set up a GA4 property instead, and treat Universal Analytics instructions online as history, not a guide.

How long does it take for GA4 data to show up?

Realtime data shows up within seconds, so you can check your setup the day you connect it. Standard reports take longer, often a day or two, because GA4 processes data first. Give a property a few days before you judge its numbers, and check Realtime first when something looks wrong.

How to set up Google Analytics for Shopify comes down to one clean connection and one honest test: create the property, connect it through the Google and YouTube app, and confirm a test order in the Realtime report. Dropship Stair designs Shopify stores that turn that insight into sales. See the design work in our portfolio or reach the team through contact us to talk through what your store needs next.

Sources: Shopify Help Center and Google Analytics documentation on the GA4 Shopify setup, checked November 2026.

Share the post

Scroll to Top