GA4 Shopify purchase not tracking
Introduction
If your Google Analytics 4 (GA4) property is not tracking purchases from your Shopify store, you are not alone. Many ecommerce store owners and marketers experience this issue, which can impact campaign optimization and reporting accuracy. This article explains why this happens, common causes, and how to fix it step by step.
Why This Issue Happens
GA4 relies on accurate event tracking to record purchases. If your Shopify store is not sending the correct purchase events to GA4, you will see missing or incomplete data. This can result from misconfigured tags, app conflicts, or checkout settings that break the tracking flow.
Common Causes
- Incorrect or missing GA4 Measurement ID in Shopify settings
- Improper setup of Google Tag Manager (GTM) or conflicting tags
- Shopify checkout on a different domain (Shopify Plus custom domains or third-party checkouts)
- Script blocking by browser privacy settings, ad blockers, or cookie consent banners
- Multiple analytics scripts causing double-counting or missed events
- Not using the updated Google & YouTube app for Shopify
- Theme customizations that remove or break tracking scripts
Step-by-Step Checklist to Fix It
- Verify GA4 Measurement ID: In your Shopify admin, go to Online Store > Preferences and check that the correct GA4 Measurement ID is entered.
- Use the Official Google & YouTube App: Install and configure the official Google & YouTube app for Shopify. This app supports GA4 and ensures purchase events are sent properly.
- Check for Duplicate or Conflicting Tags: If you use Google Tag Manager, make sure you are not also using the Shopify native GA4 integration. Only one method should send purchase events to GA4.
- Test the Purchase Event: Use Google Tag Assistant or GA4 DebugView to simulate a test purchase and confirm the
purchase event is firing with the correct parameters.
- Review Checkout Domain Settings: If you use Shopify Plus or a custom checkout domain, ensure cross-domain tracking is set up correctly in GA4 and GTM.
- Check Theme Code: If you have customized your theme, ensure you have not removed or altered the tracking scripts in the checkout.liquid or thank_you pages.
- Review Cookie Consent Apps: Make sure your consent banner is not blocking analytics scripts before consent is given. Configure it to allow GA4 tracking on the thank you page.
What Does NOT Work
- Relying on Universal Analytics (UA) tags—these are no longer supported for new data
- Adding GA4 scripts manually to every page without using Shopify's integration or GTM
- Assuming the old Google Analytics UA app in Shopify supports GA4
- Ignoring browser privacy and cookie consent issues
How Reviews or Checks Work
After making changes, use GA4's DebugView and Google Tag Assistant to verify that purchase events are firing correctly. Perform a test purchase and check that the event appears in real-time reports with the correct transaction data. If you use Google Tag Manager, use the Preview mode to ensure tags trigger only once on the order confirmation page.
FAQ
-
Why do I see some purchases in GA4 but not all?
This can be caused by users blocking scripts, checkout on a different domain, or inconsistent tag firing. Review your setup and test across different browsers.
-
Can I track purchases with both Shopify's native integration and Google Tag Manager?
It is not recommended. Choose one method to avoid duplicate or missing events.
-
Do I need to update my setup for GA4 if I previously used Universal Analytics?
Yes, GA4 requires a different setup. The old UA integration does not send data to GA4.
-
How long does it take for purchase data to appear in GA4?
Purchase events usually appear in real-time within a few minutes. For standard reports, allow up to 24 hours.
-
What if I use a third-party checkout or app?
Ensure the app supports GA4 and is properly configured to send purchase events. Test thoroughly after setup.
Related tracking issues
Main guide:
Tracking