Home / Insights / Shopify Google Analytics: set up GA4 and read it right
Sales · 13 min read
Shopify Google Analytics: set up GA4 and read it right
Connecting GA4 to a Shopify store is the easy part. Trusting it is harder, because the two never quite match. Here is the setup Shopify and Google recommend, what GA4 records on its own, and how to read it against the orders Shopify records.
The short answer
To set up Shopify Google Analytics, create a GA4 property with a web data stream, install Shopify's Google & YouTube app and connect the property there. The app then sends 11 ecommerce events to GA4, including purchase. Skip any second GA4 tag, and judge GA4 against Shopify's own reports, not the other way round.
Shopify Google Analytics means a Google Analytics 4 property connected to your store, usually through Shopify’s Google & YouTube app. GA4 records what visitors do on your online store: the pages they land on, the products they view, the carts they build and the purchases they finish.
It is the only version left. Shopify’s guide to migrating to Google Analytics 4 notes that Universal Analytics stopped processing new data on July 1, 2023, and that its interface closed after July 1, 2024.
That design lets GA4 fill some gaps when cookies are missing, and it is also why part of what GA4 shows is estimated rather than counted.
So why run it at all, when Shopify analytics is built in? Shopify’s help center puts it simply: use Google Analytics when your questions cannot be answered with the data in Shopify’s analytics. GA4 shows the path through the site and which marketing campaigns brought engaged visitors, and it feeds audiences and conversions to Google Ads.
How do you set up GA4 on Shopify?
Create the property in Google Analytics first, then connect it inside Shopify’s Google & YouTube app. Setting up Shopify Google Analytics this way needs a Google account, a GA4 property and one free app. The steps below follow Shopify’s guide to setting up Google Analytics 4 and Google’s matching instructions:
Sign in with a Google account and create a Google Analytics account. Any Google sign-in works, including the one you use for Gmail or Google Ads.
Create a GA4 property and a web data stream. Note the Tag ID. Google says tags that start with G- are generally Google Analytics tags. You need the editor role on the account to create the property.
Install the Google & YouTube app from the Shopify App Store. You do not have to connect Google Merchant Center to finish the GA4 setup.
Connect your GA4 property from the app’s Overview page, in the section for setting up Google Analytics 4. Google calls this option strongly preferred over pasting a tag by hand.
Take the store out of private mode.Private mode is the setting that shows visitors a password page. Shopify says Google Analytics cannot track events until it is off.
Link GA4 to Google Ads if you run Google ads, so key events and audiences flow into your campaigns.
Check that it works. Place a test order or watch GA4 while you browse, and use Google Tag Assistant to troubleshoot the tag.
Only add a Google tag by hand if you cannot connect the property, or you need to send data to more than one GA4 property. Google lists both as the reasons to use its alternative option.
Which events does GA4 track on Shopify automatically?
Once the property is connected, the app sends 11 ecommerce events, mapped from Shopify’s standard events. Google’s developer reference for Shopify event parameters lists them, along with standard events such as session_start and first_visit:
GA4 event
What it records
page_view
A customer visited a page
view_item_list
A customer visited a product collection page
view_item
A customer visited a product details page
search
A customer searched the storefront
add_to_cart and remove_from_cart
A product went into or out of the cart
view_cart
A customer viewed the cart page
begin_checkout
A customer started the checkout process
add_shipping_info and add_payment_info
A customer submitted shipping information, then payment information
purchase
A visitor completed a purchase
GA4 does not collect ecommerce events on its own. Google’s help page for the Ecommerce purchases report says they must be sent, and that on a Shopify store some are collected for you. To track specific actions the app does not send, such as a quiz or a wholesale form, you add recommended or custom events yourself.
Why does GA4 show less revenue than Shopify?
Because GA4 counts a narrower number from fewer people. Its purchase value leaves out shipping and tax, and it misses every visitor whose browser does not run its tag.
What does each tool put in revenue?
What differs
Shopify
GA4 through the Google & YouTube app
Who is counted
Every order the store takes
Visitors whose browser runs the tag and who allow tracking
Revenue on each order
Total sales include shipping, taxes, duties and fees
Purchase value is the subtotal minus discounts, without shipping or tax
Returns
Come off as sales reversals when processed
Only if a refund event is sent
Gaps in data
Orders are recorded at checkout; session counts depend on cookies
Partly filled with modeled data from machine learning
Google’s parameter reference says that since April 24, 2025, purchase values from the app take discounts into account and do not include shipping charges and taxes. Its list of app events has no refund event, which GA4 uses for money given back, so check your property before comparing a month with many returns.
Then there is who gets counted. Shopify’s page on analytics discrepancies says Google can only count visitors with JavaScript and cookies on, and that browser extensions can block it. Its Live View guide adds that a cookie consent banner can stop third-party analytics tracking visitors who do not consent, while Shopify’s own tracking is not affected.
“modeling to fill in the gaps where the data may be incomplete”
Modeled numbers are fine for spotting a trend and no use for settling what sold, which is the job of Shopify’s own reports.
Why don't GA4 and Shopify agree on traffic?
Because they count visits by different rules, and neither one sees every visitor. Shopify’s page on analytics discrepancies says it is unlikely that two services use identical tracking, so visitors are not recorded equally. If the two have never agreed on a single week of traffic, that is expected, not a sign the setup failed.
The same page adds that Google counts every page reload. Some of the rules lower GA4’s count and others raise it:
Rule
Shopify
GA4
When a session ends
After 30 minutes of no activity, and at midnight UTC, according to its acquisition reports
Only visitors with JavaScript and cookies on, and browser extensions can block it
Before you compare the two, line them up:
Rule out a second GA4 tag. Shopify warns that adding Google Analytics through Tag Manager on top of its built-in integration can result in duplicate tracking.
Filter the bots in Shopify. Its bot filtering page suggests the filter when you compare your analytics with platforms that filter bots differently.
Match the dates and the time zone. Shopify notes that different reporting time zones introduce discrepancies of their own.
Compare trends, not totals. Two lines that rise and fall together tell you both tools are working.
Shopify analytics vs Google Analytics: which should you use?
Use both, for different questions. Shopify answers what sold and which visit came right before each order. Google Analytics answers how people moved through the site and which tagged campaigns sent engaged visitors.
Your question
Open this
What did the store take last month?
Shopify, Total sales over time
Which channel sent the buying visits?
Shopify, Total sales by referrer
Which landing pages lead to add to carts?
GA4, landing page and ecommerce reports
Which email or ad campaign sent engaged visitors?
GA4, Traffic acquisition, with UTM tags
Which searches show your pages on Google?
Google Search Console
Did a channel pay for itself?
Shopify revenue by referrer, against the ad cost
When they disagree about orders, Shopify wins, because Shopify is where the orders are placed.
When they disagree about behavior, such as which page loses customers before checkout, GA4 usually has the detail Shopify does not. A good reporting strategy uses each tool for what it measures and stops asking it for the rest. Your marketing budget follows Shopify’s numbers; your site fixes follow GA4’s.
In a GA4 Shopify setup, send each purchase once, from one place. If GA4 ever shows more purchases than Shopify, look for a duplicate tag first.
Do not add GA4 twice. If you are using Shopify’s built-in connection, stop there. Shopify’s page on Google Tag Manager recommends its built-in integration and warns that adding Google Analytics through Tag Manager as well can result in duplicate tracking.
Check custom pixels and theme code. Google’s Shopify article tells you to check for duplicate tags if conversions run through the app and also through the storefront or a custom pixel.
Keep the transaction ID. Google’s help page on transaction IDs says GA4 deduplicates purchase events with the same transaction ID. The app sends one with every purchase.
Clear out old checkout scripts. Shopify says automatic upgrades began in January 2026, and customizations using additional scripts on the Thank you and Order status pages are lost. If your purchase tracking lived there, it has stopped.
If you must use Tag Manager, Shopify says it runs through a custom web pixel. Treat that as a developer job, and remove the app’s GA4 connection first so the two never overlap.
What does GA4 show on a store that just installed it?
Nothing from before the day the tag went in, and, for the first weeks, numbers that need cleaning before they mean anything. Two stores outside the case study show the pattern.
On one store, the GA4 tag was installed on September 5, 2026. There is no data before that date, and there never will be, because GA4 starts counting when the tag starts running.
Search Console, verified on the same store on September 8, worked the other way. Google backfilled its search data to August 30, so the search report reached back further than the analytics report did. Source: the store’s data report of September 18, 2026.
On a second store, the GA4 numbers did not mean anything until a cleaning rule was in place: one country only, with two states marked as internal traffic and the data-center cities filtered out. Source: the store’s GA4 account, checked September 23, 2026.
The same store had a Meta pixel that a scan of the page’s raw source did not show. Shopify’s Facebook channel had installed it, and it only appeared when the live page was checked in a browser. For the duplicate-tag check above, that is the lesson: read the live page, not only the theme code.
What this does not prove: two weeks of data on one store, and a cleaning rule on another, say nothing about how much either store sells. They show what Shopify Google Analytics looks like in its first weeks, before it can be trusted.
How do you tag links so GA4 credits the right channel?
Shopify Google Analytics is only as good as the tags on your links. Add UTM parameters to every link you control: marketing emails, social media posts, influencer links and ads. Without them, GA4 guesses from the referrer, and a lot of good traffic to your online store lands in Direct or Unassigned.
Google’s guide to URL builders says to always use utm_source, utm_medium and utm_campaign, and warns that values are case sensitive, so utm_source=google and utm_source=Google show as two sources. Pick one spelling and keep it.
What do GA4’s channel names mean?
GA4 sorts visits into a default channel group. As of September 2026, Google’s help center defines Organic Search as non-ad links in search results, including Google’s AI Overviews and AI Mode.
Direct means a saved link or a typed URL. Unassigned is what Analytics uses when no channel rule matches, so a campaign tagged with a medium Google does not recognize can end up there.
Which domains should you exclude?
Shopify’s page on excluding referrer domains suggests adding your own domain, checkout.shopify.com, shop.app and any external payment provider, such as paypal.com, to GA4’s referral exclusion list. Otherwise a customer who goes to checkout and then comes back to keep shopping can show up as a referral from the checkout page. Tagging email links matters for the same reason, as the guide to whether your email is really working shows.
Which GA4 reports should a Shopify owner read?
Three reports and one setting cover most of what a store owner needs from GA4 to judge site and campaign performance.
Traffic acquisition
Google’s help page for the Traffic acquisition report says it shows where new and returning users come from. Search for google / organic in the table to see organic Google Search traffic on its own.
Ecommerce purchases
It shows each product’s items viewed, items added to cart and items purchased, using the events the app sends. Its item revenue excludes tax and shipping, according to Google’s help page for the report. Use it to find products that customers look at and do not buy.
Key events
Google now calls events that measure actions important to the success of your business key events, and keeps the word conversion for actions used to measure ad campaigns. Check that purchase is marked as a key event, then link GA4 to Google Ads if you advertise there.
Data retention
Change it on day one. Google’s page on data retention says standard properties can keep user-level data for 2 or 14 months, and that the setting affects explorations and funnel reports, not standard reports. Choose 14 months so you can compare this season with last.
Does Google Analytics help your Shopify SEO?
No. Installing Google Analytics does not move your rankings, and removing it does not hurt them.
GA4 does not tell you what you earned, what your ads cost outside Google, or which channel actually paid for itself. It measures behavior on your online store, partly modeled, for the visitors it can see.
Profit. GA4 has no idea what your products cost you.
Meta and email marketing truth. It only knows about a Facebook ad or an email if the link carried tags.
The customer journey before the site. Search impressions live in Search Console, and ad impressions in each ad platform.
That is why Shopify’s own reports come first. On one store, Shopify’s attribution report put its two biggest sources of visits side by side:
Google search, not paid24 ordersfrom 1,720 visits: 1.4 percent bought
Google search brought in more than 3.5 times the sales of the paid ads, from under a fifth of the traffic.
Source: Shopify’s sales attribution report for the 90 days before September 3, 2026. Google search brought $8,316 in sales and paid Facebook and Instagram $2,322, as charged. What it does not prove: the report credits each order to the visit it came from, so an ad that first introduced a buyer who later searched Google gets no credit.
On the same store, Shopify’s referrer report showed revenue from Google, meaning organic search and free listings rather than paid ads, going from $354 in the 30 days before the work began (May 5 to June 3, 2026) to $5,418 in the 30 days about three months in (August 17 to September 15, 2026). The product pages were rewritten and the best products published to free listings in the same weeks, and it is one store. More on the free side is in Google free listings, and on paid search in Google Ads vs Facebook ads.
What does a Shopify Google Analytics setup you can trust look like?
One GA4 property, connected once through the Google & YouTube app, with no second tag anywhere. Every email, post and ad link carries the same UTM spelling.
Data retention is set to 14 months. Once a month, GA4’s purchases sit next to Shopify’s order count for the same dates, and the gap between them stays about the same size.
When that holds, Shopify Google Analytics does its real job: showing which pages and campaigns bring people who buy, while Shopify keeps the books. If the gap suddenly widens, look for a new app, a theme change or a consent tool before you blame the marketing or your customers.
The same comparison, across Shopify, Klaviyo, GA4 and Google, is the first stage of The Traffic to Sales Method. You can start it with the free Traffic to Sales Check, or have it done inside your own accounts as part of a Shopify store audit. Leave it unchecked and the wrong channel keeps getting the credit, and the budget.
The proof, from one store
Straight from the case study, with the source and what it does not prove. See all five results.
Result 3 · Google
Sales from Google: $354 to $5,418 in about 90 days
Before the work$354
→
About 90 days in$5,418
15x
Baseline: the 30 days before the work began
$354 from 2 orders that came in from Google, May 5 to June 3, 2026. The highest-value products in the catalog had never been published through the store's Google channel.
The work: what changed
Rewrote product names, titles, descriptions and search snippets around the terms buyers search, with real weights (August 7 to 30). Built six city landing pages (August 1 and 2). Published the store's highest-value products to the Google channel so they could show in free Shopping listings (August 24). Cleaned up crawl errors and expanded thin product pages to more than 400 words (August 27 to 30).
Result: about three months in
$5,418 from 17 orders that came in from Google, August 17 to September 15, 2026, 15 times the baseline.
Evidence source
Shopify Analytics, Total sales by referrer, Google row, pulled September 18, 2026.
What this does not prove
Shopify does not split Google search from free Shopping listings, so this cannot say which sold more. Four of the 17 orders were deposit orders, worth $2,070. Google Search Console only started collecting data on July 28, 2026, so there are no clicks from before the work to compare.
Test it on your store
In Shopify, open the Google and YouTube channel and check that your best sellers are published to it. In Search Console, open Performance, sort queries by impressions, and note the ones in positions 5 to 15. Then compare the Google row in Total sales by referrer for your most recent 30 days with the 30 days before your last change.
Yes. Shopify Google Analytics costs nothing to set up: Google's Shopify setup article says you can integrate a Shopify account with Google Analytics for free, and Google's product page says Analytics gives you its tools free of charge. The Google & YouTube app is free to install. You need a Google account, a GA4 property and a web data stream.
How do I add Google Analytics 4 to Shopify?
Create a GA4 property and a web data stream in Google Analytics, then install Shopify's Google & YouTube app and connect the property from its Overview page. Google calls connecting the property strongly preferred over pasting a tag. Take the store out of private mode, because Google Analytics cannot track events while it is on.
Does Shopify send purchases to GA4 automatically?
Yes, once GA4 is connected through the Google & YouTube app. Google's reference lists 11 events the app sends, including view_item, add_to_cart, begin_checkout and purchase. The purchase value is the subtotal minus discounts, without shipping or tax, so it will not equal Shopify's total sales for the same orders.
Why doesn't GA4 match my Shopify reports?
GA4 only counts visitors whose browsers run its tag and allow tracking, so ad blockers, cookie banners and disabled JavaScript all shrink it. Its purchase value also leaves out shipping and tax, and part of its data is modeled. Shopify counts every order, so judge GA4 against Shopify, not the other way round.
Can I use Google Tag Manager with Shopify?
Yes, through a custom web pixel, but Shopify recommends its built-in Google Analytics integration instead. Shopify warns that adding Google Analytics through Tag Manager as well as the built-in integration can result in duplicate tracking. If you use Tag Manager, disconnect the app's GA4 connection so every purchase is sent once.
Why is GA4 showing no data from my Shopify store?
Check three things. The store must be out of private mode, because Google Analytics cannot track events while it is on. The property must be connected in the Google & YouTube app. And your own browser may block the tag, so test in a private window without extensions before assuming the setup failed.
Does Google Analytics affect SEO on Shopify?
No. Google's John Mueller has said Google does not use Google Analytics in Search, so installing or removing it does not change rankings. Use it to measure what search visitors do once they arrive, and use Google Search Console to see the searches, positions and clicks before they reach the store.
Do you need Shopify Plus to track checkout in GA4?
No. Once GA4 is connected through the Google & YouTube app, Google's reference lists the checkout events the app sends, including begin_checkout, add_shipping_info, add_payment_info and purchase. Shopify also says Google Tag Manager is available to all Shopify stores through a custom web pixel, though it recommends the built-in integration.
Why does GA4 show more traffic than Shopify?
Usually because the two count and filter visits differently. GA4 estimates its session and user counts, counts every page reload and excludes known bots automatically, while Shopify labels each session human or bot for you to filter. A second GA4 tag can also cause duplicate tracking, so rule that out first, then compare trends, not totals.