GA4 Setup for Shopify and Your Own Store

Google Analytics 4 can tell you where buyers come from and what they do before ordering, but only if the purchase is measured correctly. This guide follows Google and Shopify documentation. I did not run these steps on a live account for this post, so check the screens in your own account, as the layout can differ.

What this covers

This is for your own website. Etsy has its own Web Analytics link, but that isn’t the same as putting tags in your own site code and checkout. Don’t assume you can track Etsy checkout purchases the way you track your own store.

Path 1: any website

  1. Create a Google Analytics account, then a GA4 property under Admin, Create, Property.
  2. Pick your reporting time zone and currency for how you run the business. Selling to the US doesn’t mean you must use a US time zone.
  3. Create a web data stream with your real address and note the measurement ID, which starts with G-.
  4. Choose one way to install it: your site's built-in GA4 integration, the Google tag, or Google Tag Manager. Don’t send the same events from more than one setup.
  5. Review enhanced measurement. Seeing page views doesn’t mean ecommerce tracking is done.

Path 2: Shopify

  1. Create the GA4 property and web stream.
  2. Add the official Google & YouTube channel to Shopify.
  3. In the app's analytics setup, connect the right Google account, GA4 property and web stream.
  4. Review the Google tag and measurement settings and finish.
  5. Test the events it collects. Don’t rebuild the same purchase event again with theme code, Tag Manager and a custom pixel.

You don’t have to connect Merchant Center for GA4. Shopify says some ecommerce events are collected automatically with this integration, but confirm that in your own setup.

Events to measure

What the visitor doesGA4 event
Looks at a productview_item
Adds to cartadd_to_cart
Views the cartview_cart
Starts checkoutbegin_checkout
Adds shipping or payment infoadd_shipping_info, add_payment_info
Completes the purchasepurchase
Gets a refundrefund

Events should fire on real behaviour. If a visitor skips a step, don’t force an event for it.

Getting the purchase event right

  • Send a unique transaction_id, the currency, the amount and the items array.
  • In Google's event schema, value is the sum of price times quantity of the items. Shipping and tax go in their own fields. Example: items 80, shipping 8, tax 6. Item value is 80, not 94.
  • Count a completed order as a purchase. A click on a buy button isn’t one, and neither is a failed payment.
  • Don’t put email, phone or customer names into event parameters, URLs or UTM tags.

A test list

TestWhat you should see
Accept consent, open a productThe product event with the product ID.
Add to cart, go to checkoutEvents at the real action, with the right amount.
Complete a test orderOne purchase with the correct transaction ID.
Refresh the thank-you pageThe order isn’t counted again.
Place a second, different orderA new ID and a new purchase.
Decline consentTags behave as your consent design says.
Check currency and a refundCorrect currency and amount, refund matches the order.

Use Tag Manager Preview or Tag Assistant to see what fires, and DebugView under Admin, Data display to check events and parameters. DebugView needs debug mode on.

Consent in the US and Europe

Google Consent Mode v2 separates analytics storage, ad storage, ad user data and ad personalization. Defaults are set before tags load and updated after the visitor chooses. Basic and advanced setups behave differently when consent is declined, so "no consent means no data leaves the browser" isn’t true for every setup. Consent Mode alone doesn’t make you compliant. Talk to a professional about cookie law for your markets.

Which reports to open

  • Traffic acquisition for sessions by source and medium, for example visits from Pinterest.
  • Ecommerce purchases for product views, add-to-carts and product revenue.
  • A checkout funnel, built in Explore if there is no ready report, to see where people drop off.
  • A comparison with your Shopify orders for the same period, time zone and definitions.

Google's official Merchandise Store demo account lets you practise on real GA4 data before you touch your own.

If you want this done for you, tracking setup is part of the E-commerce Package and of what we do at siteupwell.

Try this first

  1. Pick one installation path and stick to it.
  2. Run the test list with a real test order.
  3. After a week, compare GA4 purchases to your Shopify orders and look for gaps.

Keep reading

Need your Etsy shop managed or evaluated?

I take on Etsy shop management and evaluations, listing SEO, ads and AI automation. Share your project through the contact section and I will get back to you with a quote.

Share Your Project

Sources

Rules, numbers and dates change often. This page reflects the sources below as checked on Nov 9, 2026. Confirm current figures with the official source before you act.

© 2026 Hakan Caba, All Rights Reserved.