HomeBlogGA4 for Shopify
Analytics

GA4 for Shopify: The Complete Implementation Guide

Server-side events, enhanced ecommerce and conversion modelling — the right way to set GA4 up on Shopify, not the way Shopify's default integration does it.

MC
Head of Growth
12 min read 10 April 2026
GA4

Shopify and GA4 don't play well together by default. Shopify's native GA4 integration captures basic page views and a watered-down version of enhanced ecommerce, but anyone who's tried to debug attribution or build cohort analysis off it knows the gaps. This guide walks through the implementation we use on every Shopify store, from basic setup through to server-side tracking and conversion modelling.

Why default GA4 on Shopify is broken

Shopify's default GA4 integration has three significant limitations:

  1. Checkout events are unreliable. The "begin_checkout", "add_shipping_info", and "add_payment_info" events fire inconsistently — particularly on Shopify Plus checkout extensions or accelerated checkouts (Shop Pay, Apple Pay).
  2. Cross-domain tracking is broken when checkout is on checkout.shopify.com rather than your domain. Users get attributed as new sessions when they hit checkout, breaking funnel analysis.
  3. No server-side option natively. Everything fires client-side, which means iOS users with ITP, ad blockers, or aggressive cookie restrictions vanish from your data — typically 15-25% of traffic.

You can work around all three, but you have to actually do the work — it doesn't happen by default.

The basic setup (and why it's not enough)

The minimum viable GA4 setup on Shopify:

  1. Create GA4 property, get Measurement ID (G-XXXXXXXX)
  2. Shopify Admin → Online Store → Preferences → paste Measurement ID into Google Analytics field
  3. Verify events firing in GA4 → Reports → Realtime

This captures page views, basic events, and Shopify's built-in ecommerce events. It's fine for showing your boss a chart, but it's not fine if you actually need to make decisions from the data.

The right setup involves Google Tag Manager and (for serious operations) GTM Server-side. Walk-through below.

Enhanced ecommerce events

The core ecommerce events GA4 needs:

EventWhen it firesCritical for
view_item_listCollection/category page loadProduct discovery analysis
select_itemProduct card clickCollection page CRO
view_itemProduct detail page loadPDP conversion analysis
add_to_cartAdd to cart actionFunnel analysis
view_cartCart page viewCart abandonment
begin_checkoutCheckout initiationCheckout funnel
add_shipping_infoShipping info enteredStep-by-step funnel
add_payment_infoPayment method selectedStep-by-step funnel
purchaseOrder completionEverything

Shopify fires most of these automatically when you enable enhanced ecommerce, but with edge cases. The fix is to fire them yourself via GTM with proper data layer pushes.

Where Shopify falls short specifically

Server-side tracking via GTM Server

This is where the real wins are. Without server-side, you're losing 15-25% of conversions to client-side blocking. With server-side, you recover most of them and improve attribution accuracy.

How GTM Server works

Instead of GA4 events firing from the user's browser directly to Google, events fire to your own server (a tagging server you run on Google Cloud), which then forwards to GA4. From the user's browser, this looks like calls to your own domain — bypassing ad blockers and ITP.

What you need

It takes a developer 4-8 hours to set up properly. Worth every minute — typically recovers 15-25% of "lost" conversions in attribution.

Bonus benefit

Once you have GTM Server, you can also use it for Meta's Conversions API, Google Enhanced Conversions, TikTok Events API, and other server-side endpoints. One infrastructure investment unlocks better data on every paid channel.

Custom dimensions and conversions

Default GA4 reports are generic. Make GA4 useful by adding custom dimensions that match how you actually run the business.

Custom dimensions we set up by default

Conversions to mark

By default only "purchase" is a conversion. Also mark as conversions:

GA4 audit — free

Send us a sample of your GA4 property. We'll audit event firing and identify what's missing or broken.

Request audit →

Conversion modelling and attribution

GA4 uses data-driven attribution by default (Google's machine learning model). For most accounts this is fine — but you need to verify your data quality is good enough for the model to work.

Conditions for trustworthy attribution

Without these conditions, GA4's attribution model falls back to "last click" effectively, even though it claims to be data-driven.

How to debug what's broken

Tool 1: GA4 DebugView

Real-time event firing visible to authorised debuggers. Add ?gtm_debug=1 to any URL and your session appears in DebugView. Useful for verifying events fire correctly on staging.

Tool 2: Google Tag Assistant (Chrome extension)

See every tag firing on the current page, including parameters and timing. Critical for debugging Shopify's checkout pages.

Tool 3: GA4 → Admin → Data Quality

GA4 now has a built-in data quality dashboard showing issues with event parameter format, missing required parameters, and other red flags. Check this monthly.

Common issues we see

"GA4 isn't broken. Default Shopify-to-GA4 setups are broken. The fix is engineering, not magic."

Need this set up properly?

We do full GA4 implementations including GTM Server-side. Typical setup takes 1-2 weeks.

Book a free call →
MC

Head of Growth, Groweyo

E-Commerce Strategy

I run growth at Groweyo. We work with UK e-commerce brands across Shopify, paid media, email and marketplaces.