Knowledge base article
GA4 vs Shopify analytics: understanding data discrepancies
If you’re running an ecommerce business on Shopify and using Google Analytics to track your marketing performance, you’ve likely noticed frustrating discrepancies between the two platforms. One day, Google Analytics shows 50 orders while Shopify reports 65. The next day, your revenue figures don’t match either. These inconsistencies aren’t errors, they are the result of differences in how each platform collects, processes, and reports data.
Understanding these discrepancies is crucial to make informed decisions. When you know why the numbers differ, you can interpret your data more accurately and choose the right platform for specific insights.
Platform purposes and differences
Google Analytics and Shopify Analytics serve different purposes, which dictates how they collect data. Google Analytics is a web analytics platform designed to track user behavior across websites, measure marketing attribution, and provide insights into cross-domain customer journeys. It gives you an understanding of how users interact with your site, which marketing channels drive the most valuable traffic, and how different touchpoints contribute to conversions.
Shopify Analytics, on the other hand, is built specifically for ecommerce operations. It focuses on sales performance, order management, and customer lifetime value because it’s integrated directly into your store’s backend. When someone completes a purchase, Shopify knows about it immediately and accurately because the transaction happens within its own system.
The tracking methods reflect these different purposes. GA4 relies on JavaScript-based tracking and cookies, which means it depends on code running in users’ browsers. On Shopify that code now runs as a web pixel, usually installed through the Google & YouTube app. Shopify’s order and sales figures come straight from its own order data. Its session and visitor numbers, however, are also based on cookies, so they have some of the same limits as GA4. Let’s look at some more differences between the two.
Common discrepancies between GA4 and Shopify
The difference between sessions and visitors
The most obvious discrepancies appear in basic traffic metrics. The platforms define sessions differently and use different scripts, so they never count exactly the same visits. Ad blockers and privacy-focused browsers can prevent Google Analytics from loading entirely, creating blind spots in your data. Both tools also filter bots in their own way.
Shopify changed how it measures sessions in September 2026. A Shopify session now ends after 30 minutes of inactivity instead of at midnight UTC, some sessions without a pageview (such as a visitor going straight to checkout from a cart link) are now counted, and identified bot sessions are filtered out of session reports by default. Session counts and conversion rates can shift around that date without any real change in traffic. Orders and sales are not affected.
Order and transaction differences
The most critical discrepancies occur in order and revenue reporting. Google Analytics underreports transactions compared to Shopify’s actual sales data. This happens for several reasons. A GA4 purchase on Shopify is normally sent from Shopify’s checkout_completed event, which fires on the Thank you page (or on the first upsell page). If that page doesn’t load, the event isn’t triggered at all. JavaScript errors and missing consent can also stop the tag, and ad blockers can block the ecommerce tracking entirely.
Shopify’s transaction numbers represent actual sales recorded in the system. When someone completes a purchase, Shopify knows about it immediately because the transaction happens within its platform. Shopify’s sales reports also include orders that never went through the online checkout, such as converted draft orders, while test orders are left out. This makes Shopify the source for actual sales data, while Google Analytics provides estimates based on successful tracking implementations.
Revenue calculation differences
Even when both platforms track the same transaction, they might report different revenue amounts. Shopify reports several sales metrics. Gross sales is revenue before discounts and returns. Net sales subtracts discounts and returns. Total sales also adds taxes, duties, fees and shipping. Which one you compare against GA4 matters a lot. GA4 tracks revenue through tracking tags, which you configure to send specific values. Google’s own event reference says the purchase value should not include tax or shipping (those go in separate parameters), so GA4 revenue will usually sit below Shopify’s total sales. Refunds only reduce GA4 revenue if you send them as refund events.
Different attribution models
GA4 offers attribution modeling with customizable lookback windows. You can choose how credit gets distributed across touchpoints in a customer’s journey: data-driven attribution (which uses machine learning to assign credit), paid and organic last click, or Google paid channels last click. First-click and other rule-based models are no longer available.
Shopify bases attribution on the referrer and UTM parameters it records in its own sessions. Its reports now support five models: last non-direct click, last click, first click, linear and any click. The Performance by marketing channel report uses last non-direct click by default, while other reports with a sales metric and a marketing dimension default to last click. Shopify doesn’t see off-site touchpoints the way Google Analytics does. If a customer discovers your brand through a Google ad, researches on social media, and then returns directly to purchase, Shopify’s last-click view might attribute the sale to direct traffic while Google Analytics could give credit to the Google ad.
Technical limitations and external factors
The influence of ad blockers
Ad blockers and browser privacy features significantly impact GA4 data collection. Modern browsers increasingly block tracking scripts by default, and privacy-conscious users actively install ad blockers that prevent it from functioning. These same tools do not affect Shopify’s order count, because the order is created on Shopify’s servers.
Cookie consent and privacy regulations
Cookie consent banners add another layer of complexity. Users might reject GA4 tracking cookies but still complete purchases on your site. This creates a scenario where Shopify records the sale, but Google Analytics has no visibility into that customer’s journey or conversion.
Shopify’s own customer privacy settings also affect measurement in Shopify. In regions where the cookie banner is active, Shopify only collects analytics data after the visitor consents, which lowers its session counts and changes conversion rates. If you use a third-party banner instead of Shopify’s own, it has to pass consent to Shopify through the Customer Privacy API, and the consent regions in both tools must match. When you use the Google & YouTube app with Shopify’s banner or a compatible consent app, Google consent mode is set automatically. So don’t blindly trust what Shopify is presenting to you.
Time zone mismatches
Different time zone settings between platforms can cause discrepancies in daily reports. If Google Analytics is set to Pacific Time but Shopify uses Central European Time, the same purchase might appear in different days’ reports.
Event-based vs transaction-based tracking
GA4’s event-based model requires the setup of ecommerce events like ‘purchase’, ‘add_to_cart’, and ‘begin_checkout’. On Shopify these are built on Shopify’s standard customer events, such as product_viewed, product_added_to_cart, checkout_started and checkout_completed. Each of these events must be properly configured and tested to ensure accurate tracking. If any part of this implementation fails, you’ll see gaps in your GA4 ecommerce data.
Old tracking scripts in checkout.liquid and the Additional scripts box no longer work. checkout.liquid is unsupported for the Information, Shipping and Payment steps, and it was switched off for the Thank you and Order status pages on 28 August 2025. Script tags on the Order status page stopped running on 28 August 2025 for Plus stores and on 26 August 2026 for all other stores. Tracking now has to go through app pixels or custom pixels. A store that relied on them may have lost its purchase tracking without noticing.
Shopify tracks based on backend events that happen automatically when customers interact with your store. When someone adds a product to their cart or completes a purchase, Shopify knows about it because these actions happen within its system. This makes Shopify’s ecommerce tracking more reliable for basic transaction data.
Implementation errors that cause discrepancies
Many discrepancies stem from technical implementation issues. Misconfigured GA4 setups are quite common, including missing purchase events, incorrect currency settings, and purchases tracked twice by both the Google & YouTube app and a custom pixel or theme code. UTM parameters might be missing or incorrect, causing channel misattribution that makes your marketing performance appear different in Google Analytics compared to Shopify’s referrer data. Moving to web pixels can also change event counts compared to the old setup.
These technical issues can compound over time, for example when many different people work on the store, making discrepancies larger and more difficult to diagnose without careful analysis of your tracking implementation.
When to trust which platform
The key to working with both platforms effectively is understanding their strengths and using each for its intended purpose. Trust Shopify for actual revenue, order counts, refunds, and any financial reporting. Shopify is your source of truth for what actually happened in terms of sales and fulfillment.
Use GA4 for marketing attribution, channel performance analysis, and understanding user behavior on your site. Google Analytics excels at showing you how different marketing channels contribute to your success and how users interact with your website before making purchases.
There is one situation where you cannot trust either platform’s traffic data: when Shopify’s customer privacy settings, or the connection between your cookie banner and the Customer Privacy API, are not set up correctly. Then even Shopify itself cannot measure sessions and conversion rates properly. So be careful when setting up your cookie banner in Shopify.
How to get the most accurate insights?
Rather than trying to make the numbers match exactly, develop a strategy for using both platforms together. Use Google Analytics for traffic insights, funnel analysis, and calculating marketing return on ad spend. Rely on Shopify for backend performance metrics and financial reporting that needs to be precise.
Consider implementing server-side tracking solutions like server-side Google Tag Manager to reduce the gap between platforms. This approach processes tracking data on your server rather than relying entirely on client-side JavaScript, making it more resistant to ad blockers and browser privacy features.
Moving forward with confidence
Data discrepancies between Google Analytics and Shopify Analytics are normal given their different purposes. Instead of viewing these differences as problems to solve, treat them as complementary views on your performance.
Focus on trends and relative changes rather than absolute numbers when comparing platforms. If GA4 shows your conversion rate improving by 15% and Shopify shows similar positive trends in sales, that’s more meaningful than worrying about the exact numerical differences between platforms.
By understanding why these discrepancies occur and using each platform for what it does best, you can make better decisions about your marketing and your business. The goal isn’t perfect data alignment, it is using the right data from the right platform to answer your specific business questions.
Happy analysis!

