Skip to content
Shopify

Shopify GA4 Conversion Tracking: Complete Setup Guide (2026)

By Omar Faruk · ·10 min read ·Last updated
Shopify GA4 conversion tracking setup guide featured graphic with purchase event flow

Shopify GA4 conversion tracking breaks quietly. Revenue shows up in Shopify, but GA4 shows fewer purchases, duplicate orders, or no ecommerce data at all. I set up and audit tracking for Shopify stores every week. This guide is the exact process I use to get GA4 counting purchases correctly and to prove that it works.

By Omar Faruk, Shopify tracking developer · Last updated: October 31, 2026

Quick answer: To set up Shopify GA4 conversion tracking, create a GA4 property and web data stream, install Shopify's Google & YouTube app, and connect that GA4 property. Shopify then sends ecommerce events, including purchase, automatically. Confirm purchase is marked as a key event, then verify with a test order in GA4 Realtime.

What is Shopify GA4 conversion tracking?

Shopify GA4 conversion tracking is the process of sending store events, mainly completed orders, from Shopify to Google Analytics 4. Each order becomes a purchase event with revenue, currency, tax, shipping and product data. GA4 can then attribute sales to channels, campaigns and landing pages.

Two terms cause most of the confusion:

  • Events are every action GA4 records, such as view_item or add_to_cart.
  • Key events are the events you flag as important. Google renamed "conversions" to "key events" in GA4 in 2024. In Google Ads, the word "conversion" is still used.

So when people say "GA4 conversion tracking," they usually mean two things. First, the purchase event fires with the right value. Second, it is marked as a key event so it shows in conversion reports.

Which ecommerce events does Shopify send to GA4?

When you connect GA4 through the Google & YouTube app, Shopify sends the core funnel events for you. You do not need theme code for these.

Event When it fires Why it matters
page_view Every page load Traffic and landing page reports
search Storefront search Shows what shoppers look for
view_item Product page view Product interest and audiences
add_to_cart Item added to cart Funnel drop-off analysis
begin_checkout Checkout started Checkout abandonment
add_payment_info Payment info submitted Late-funnel friction
purchase Order confirmed Revenue and conversion reporting

Need more events, like view_item_list or add_shipping_info? You will need a custom pixel or Google Tag Manager. I cover that in the methods section below.

Which setup method should you use?

There are four realistic ways to send Shopify data to GA4 in 2026. Pick one main method. Running two at once is the number one cause of duplicate purchases.

Comparison of four Shopify GA4 conversion tracking methods: native app, GTM custom pixel, third-party app, server-side
The four setup paths, from simplest to most accurate.
Method Setup effort Event coverage Accuracy Best for
Google & YouTube app (native) 15 minutes Core funnel events Good Most small and mid-size stores
GTM in a Shopify custom pixel 2–6 hours Anything you build Good, if tested well Stores that need custom events or many tags
Third-party tracking app 30–60 minutes Full GA4 ecommerce spec Good to very good Merchants who want more without code
Server-side (sGTM or app) 1–3 days Full, plus server events Best High ad spend, heavy ad-blocker loss

My default advice: start with the native app. Move to a custom pixel or Shopify server-side tracking only when you have a clear reason. Common reasons are missing events, high ad-blocker loss, or many platforms to feed.

How to set up Shopify GA4 conversion tracking (step by step)

This is the native setup. It covers most stores and takes about 15 minutes. You need admin access to Shopify and Editor access (or higher) to GA4.

Step 1: Create a GA4 property and web data stream

  1. Open Google Analytics and go to Admin → Create → Property.
  2. Name it after your store. Set the reporting time zone and currency to match Shopify. Mismatched time zones make daily totals disagree.
  3. Choose your industry and business size, then pick the ecommerce-related objectives.
  4. Create a Web data stream with your primary domain, for example https://yourstore.com.
  5. Leave Enhanced measurement on. Copy the Measurement ID (it starts with G-).

Step 2: Install the Google & YouTube app in Shopify

  1. In Shopify admin, open the Shopify App Store and install Google & YouTube.
  2. Connect the Google account that has access to your GA4 property.
  3. Make sure your online store is not password protected. Shopify notes that Analytics cannot track events while the store is in private mode.

Step 3: Connect your GA4 property

  1. In the app, open Settings and find the Google Analytics section.
  2. Select your GA4 property from the list and click Connect.
  3. Shopify now adds the Google tag through its own app pixel. It loads on storefront and checkout pages, including the Thank you page.

Step 4: Remove old or duplicate tags

This step gets skipped the most, and it causes the most damage. Check each place a GA tag might still live:

  1. Theme code: search theme.liquid for gtag(, G- and GTM-.
  2. Settings → Customer events: look for custom pixels that also send GA4 events.
  3. Apps: other analytics or "all-in-one pixel" apps may also send GA4 data.
  4. Legacy checkout scripts: old "Additional scripts" on the Order status page are deprecated now that Thank you pages run on checkout extensibility. Remove any leftover purchase code there.

Step 5: Link Google Ads (optional but recommended)

In GA4, go to Admin → Product links → Google Ads links and link your account. This lets you share audiences and import key events. For bidding, I still recommend a direct Google Ads purchase conversion. See my guide to Google Ads conversion tracking on Shopify.

How do you mark purchases as key events in GA4?

GA4 normally treats purchase as a key event by default. Still, check it, because a renamed or custom purchase event will not be flagged.

  1. In GA4, go to Admin → Data display → Events.
  2. Find purchase. It appears after the first event is received, which can take up to 24 hours.
  3. Make sure the Mark as key event star or toggle is on.
  4. Optional: mark begin_checkout as a key event for analysis. Do not import it into Google Ads as a primary bidding goal.
Shopify GA4 purchase event data flow from checkout Thank you page through app pixel to GA4 key events
How a Shopify order becomes a GA4 key event.

Consent affects how many purchases GA4 can see. US states such as California, Colorado, Virginia and Texas now have privacy laws that cover opt-out of sale or targeted ads. If you sell into the EEA or UK, Google requires Consent Mode v2 for ad personalization.

  • Turn on Shopify's Customer privacy settings and cookie banner, or use a consent app that supports Shopify's Customer Privacy API.
  • The Google & YouTube app reads Shopify's consent state and passes it to Google tags.
  • Expect some modeled or missing data from visitors who decline. This is normal, not a broken setup.

How to verify tracking is working

Never assume tracking works because the app says "connected." I run this five-part check on every store.

1. Place a real test order

Use Shopify Payments test mode or a 100% discount code on a cheap product. Use a browser with no ad blocker, and accept cookies in the banner.

2. Watch GA4 Realtime

Open Reports → Realtime. Within a minute or two you should see page_view, add_to_cart, begin_checkout and purchase in the event card.

3. Check DebugView for parameters

Open Admin → DebugView with debug mode on, for example via the Google Tag Assistant. Click the purchase event and confirm these parameters:

  • transaction_id matches the Shopify order number or ID
  • value matches the order total you expect
  • currency is correct, such as USD
  • items contains each product with name, ID, price and quantity
GA4 DebugView verification checklist for a Shopify purchase event showing transaction_id, value, currency and items
The four parameters to check on every test purchase.

4. Confirm it fires once

Refresh the Thank you page. GA4 should not log a second purchase with the same transaction_id. If it does, you still have a duplicate tag.

5. Compare after 48 hours

After two days, compare GA4 Ecommerce purchases to Shopify orders for the same dates. A gap of 5–15% is normal. A gap above 25% needs troubleshooting.

Troubleshooting: GA4 not tracking Shopify purchases

Symptom Likely cause Fix
No purchases at all Store in password mode, or wrong property connected Remove the password and reconnect the right GA4 property
Purchases doubled App plus theme gtag, or app plus custom pixel Keep one method and delete the other tags
Revenue is $0 or wrong Custom event missing value or currency Send both parameters on every purchase
Revenue in wrong currency GA4 property currency differs from store Align currency, and send currency per event
All sales show as "Direct" or referral from a payment site Payment gateway or PayPal domain breaking sessions Add payment domains to List unwanted referrals
Purchases appear a day late Time zone mismatch Match GA4 time zone to Shopify
Big gap only on iPhone/Safari ITP, ad blockers, consent declines Consider server-side tracking

If purchases still look wrong, check whether an upsell or post-purchase app creates extra orders. Those orders may not send their own GA4 event.

Why GA4 and Shopify numbers never match exactly

Shopify counts every order in its database. GA4 only counts orders where its tag loaded in the shopper's browser. These are the usual gaps:

  • Ad blockers and privacy browsers block the Google tag.
  • Declined consent limits or removes the event.
  • Non-web orders such as POS, draft orders, subscriptions and marketplace sales never touch the storefront.
  • Refunds and edits update in Shopify but not in GA4 unless you send refund events.
  • Time zone and attribution differences shift orders between days and channels.

Use Shopify for revenue truth. Use GA4 for behavior, channels and funnel analysis.

Next steps: build the rest of your tracking stack

GA4 is one part of your measurement. Most stores also need ad platform tracking. Use these guides from the same series:

Official references: Shopify Help Center: Setting up Google Analytics 4 and Google Analytics Help: Automatically collected events.

Conclusion

Good Shopify GA4 conversion tracking comes down to three habits. Use one tracking method. Mark purchase as a key event. Check every setup with a real test order. Do that, and GA4 becomes a reliable view of which channels drive revenue.

Want someone to set it up or audit it for you? I do this for Shopify stores through my Shopify store and tracking service. Contact me for a tracking audit, and I'll show you exactly where your conversions are leaking.

About the author: Omar Faruk is a web developer who builds and fixes Shopify, WordPress and Laravel sites. He specializes in GA4, Meta, TikTok and Google Ads conversion tracking and Merchant Center fixes.

Written by

Full-Stack Developer — WordPress, Laravel & Shopify

I'm a full-stack web developer who has shipped news portals, company sites, multi-user web apps and Shopify stores for clients around the world. I care about clean code, fast pages and websites that actually bring in sales.

Need help with this on your site?

I can set it up for you — quick turnaround, fixed price.

Hire me

// faq

Frequently asked questions

Does Shopify automatically track conversions in GA4?

Yes, once GA4 is connected through the Google & YouTube app. Shopify then sends page_view, view_item, add_to_cart, begin_checkout, add_payment_info and purchase events without theme code. You still need to confirm purchase is marked as a key event in GA4 and verify it with a test order.

How do I connect GA4 to Shopify?

Create a GA4 property and web data stream, then install Shopify's Google & YouTube app. Connect your Google account, open the app settings, choose your GA4 property and click Connect. Remove any old gtag or GTM code from your theme so purchases are not counted twice.

Why is GA4 not tracking Shopify purchases?

The most common causes are a password-protected store, the wrong GA4 property connected, consent being declined, or ad blockers. Check GA4 Realtime during a test order. If begin_checkout appears but purchase does not, a checkout app or leftover legacy script is usually interfering.

Why does GA4 show duplicate purchases on Shopify?

Duplicates happen when two methods send the same purchase, such as the Google & YouTube app plus theme gtag code, a custom pixel, or another tracking app. Keep one method only. Each purchase should have a unique transaction_id, which also lets GA4 ignore some repeats.

What is the difference between a key event and a conversion in GA4?

They are the same idea with new names. In 2024 Google renamed GA4 conversions to key events. In Google Ads, the term conversion is still used. You mark key events in GA4, then import or create conversions in Google Ads for bidding.

Should I use Google Tag Manager for Shopify GA4 tracking?

Use GTM only if you need events or tags the native app does not provide. On Shopify, GTM for checkout must run inside a custom pixel under Customer events. That takes more setup and testing. For most stores, the Google & YouTube app is accurate enough and easier to maintain.

Why don't GA4 and Shopify order numbers match?

Shopify records every order, while GA4 only records orders where its tag loaded in the browser. Ad blockers, declined consent, POS and draft orders, refunds and time zone differences all widen the gap. A difference of 5–15% is normal for most US stores.

How do I test GA4 purchase tracking on Shopify?

Place a real test order with Shopify Payments test mode or a 100% discount code. Watch GA4 Realtime for the purchase event, then open DebugView to confirm transaction_id, value, currency and items. Refresh the Thank you page to make sure the purchase does not fire twice.

Related articles