Quick answer: In Shopify, install Google's Google & YouTube sales channel (or add your GA4 measurement ID in the Customer Events/pixel settings), connect the right Google account and GA4 property, then place a test order and confirm a purchase event with the correct value shows up in GA4's real-time or DebugView reports. Don't stop at "it's installed." The test is the part that matters.
A lot of stores have analytics that look installed but quietly miss things: purchases counted twice, revenue missing, or no add-to-cart events at all. Then decisions get made on bad numbers. Here's how to set up GA4 properly and check it works.
Before you start
- You'll need a Google account with edit access to a GA4 property (create one at analytics.google.com if you don't have it).
- Find your Measurement ID in GA4: Admin โ Data Streams โ your web stream. It looks like
G-XXXXXXXXXX. - Decide who owns the property. Always create it under an account you control, not a freelancer's.
Step 1: connect GA4 to Shopify
There are two common routes in the Shopify admin. Which one you see depends on your store's setup, so look for these options:
- Google & YouTube channel. Add the sales channel, connect your Google account, then choose your GA4 property when prompted. This also connects Merchant Center, which helps with free product listings.
- Customer events (pixels). In Settings โ Customer events, you can add a Google tag using your measurement ID or install a custom pixel.
Pick one method. Installing GA4 in two places is the number one reason purchases get counted twice.
Step 2: make sure the key events exist
GA4 should record at least these ecommerce events as people move through your store:
-
view_item: someone views a product page add_to_cartbegin_checkout-
purchase: with the order value, currency and items
In GA4, go to Reports โ Monetization โ Ecommerce purchases once data arrives. If these events are missing, your funnel reports will be empty or misleading.
Step 3: test with a real order
This is the five-minute check that catches most problems.
- Open GA4 โ Admin โ DebugView (or Reports โ Realtime) in one tab.
- In another tab, visit your store, view a product, add it to the cart and begin checkout.
- Complete a small order (use a real payment method and refund it afterward, or use Shopify's test mode if your payment provider supports it).
- Back in GA4, confirm you see
view_item,add_to_cart,begin_checkoutandpurchase. - Click the
purchaseevent and check: value matches the order total (or subtotal, depending on how you track), currency is USD, and the transaction ID appears once.
Common problems and fixes
- Purchases show twice. You have GA4 installed in two places (for example the sales channel and a theme code snippet). Remove one.
- Revenue is zero or missing. The purchase event isn't passing value. Check the pixel setup and make sure it fires on the order confirmation (thank-you) page.
- Numbers don't match Shopify. Some difference is normal because tools define sessions and attribution differently, and consent banners can block some tracking. A gap of a few percent is normal; a gap of 30% means something is broken.
- Your own visits are included. Filter internal traffic so you aren't polluting data.
- No events from the checkout. Shopify's checkout is hosted by Shopify, so checkout events usually come through Shopify's own integration rather than theme code. Don't paste GA4 snippets into the theme hoping to track checkout.
Don't forget consent and privacy
If you sell in regions with consent rules, or you serve California customers, make sure your cookie and privacy settings match how you track. We cover the basics in our privacy policy and cookie banner guide. This isn't legal advice, so confirm requirements for your situation.
What to look at once it works
- Funnel drop-offs: where do people leave between viewing a product and buying?
- Traffic sources that actually sell, not just send visits.
- Top landing pages and their conversion rates.
- New channels, such as referral traffic from AI assistants, which we discuss in our AI shopping guide.
Want a second pair of eyes?
We set up GA4, Meta Pixel and (where relevant) TikTok and Google Ads tracking, then verify everything with real test purchases and give you a short handover document. See our GA4 and Meta Pixel tracking setup, or request a written quote. If you're unsure why your store gets traffic but no sales, start with our checklist of nine checks.
Frequently asked questions
Why are my GA4 purchases different from Shopify's orders?
Some difference is normal because the tools define sessions and attribution differently, and consent banners can block some tracking. A gap of a few percent is typical. A gap of 30 percent usually means something is broken.
Why is my GA4 purchase event firing twice?
The most common cause is GA4 installed in two places, such as the Google & YouTube channel and a snippet pasted into the theme. Remove one.
Do I need Google Tag Manager for Shopify?
Not for a basic setup. The Google & YouTube channel or Shopify's customer events cover standard ecommerce tracking. Tag Manager helps if you need advanced custom events.
How long does it take for GA4 data to appear?
Real-time reports update within seconds to minutes. Standard reports can take 24 to 48 hours to fully populate.
Related services
- GA4 & Meta Pixel Tracking Setup for Shopify โ GA4 and Meta Pixel tracking verified with test purchases
- Shopify CRO Audit & Quick Fixes โ a ranked audit of your buying path, with the quick fixes applied
- Google Merchant Center & Shopping Feed Setup โ Merchant Center connected, feed errors fixed, free listings on