How to Set Up Shopify GA4 Properly: So Your Data Actually Makes Sense

Updated on Dec, 2025
How to Set Up Shopify GA4 Properly: So Your Data Actually Makes Sense

You installed GA4 when Universal Analytics shut down. You see sessions and pageviews. But when you try to answer basic questions like "which products drive repeat purchases?" or "what's my actual conversion rate by traffic source?" the data doesn't add up.

You're not alone. Most Shopify GA4 setups are broken in subtle ways that make your data unreliable. And if you can't trust your data, you can't make confident decisions about where to spend your time and money.

Why Most Shopify GA4 Setups Are Incomplete

Shopify's native GA4 integration captures basic pageviews and some ecommerce events. But it misses critical data points that help you understand customer behavior and make better decisions.

Here's what typically gets missed:

  • Add to cart events from collection pages and quick-add buttons
  • Cart abandonment tracking at specific funnel stages
  • Product variant data in purchase events
  • Customer lifetime value and repeat purchase tracking
  • Proper attribution for discount codes and referral sources

The result? You're making decisions based on incomplete information. Your conversion rate looks fine in GA4 but terrible in Shopify. Your top products by revenue don't match between platforms. You can't figure out which traffic sources actually drive profitable customers.

The Real Cost: Stores with broken GA4 setups waste 30-40% of their marketing budget on unmeasured or misattributed activities. You're flying blind and calling it data-driven.

The Right Way to Set Up Shopify GA4

Proper Shopify GA4 setup has three layers: the base connection, enhanced ecommerce events, and custom tracking for your specific business model.

Layer 1: Base GA4 Connection

Start with Shopify's native integration, but verify it's actually working:

  • Connect GA4 in Shopify Admin under Settings → Apps and sales channels → Google
  • Enable Google Analytics and connect your GA4 property
  • Turn on enhanced conversions for better attribution
  • Verify the connection by checking real-time reports in GA4

This gives you basic pageviews and some purchase data. But you need more.

Layer 2: Enhanced Ecommerce Events

GA4's ecommerce events show you the complete customer journey from first view to purchase. Here's what you need tracking:

Critical Ecommerce Events:

  • view_item - Product page views with product details
  • add_to_cart - All add to cart actions, including quick-add
  • begin_checkout - When checkout process starts
  • add_payment_info - Payment method selected
  • purchase - Completed transactions with full order details

Most Shopify stores only capture purchase events reliably. The middle events—where customers actually drop off—are missing or incomplete.

For proper Shopify GA4 setup in NZ or anywhere else, you need these events firing consistently with complete product data including SKU, variant, price, and quantity.

Layer 3: Custom Dimensions and Metrics

Standard GA4 events don't capture everything that matters for Shopify stores. Add custom dimensions for:

  • Customer type (new vs. returning)
  • Discount code used
  • Product vendor or collection
  • Customer tags from Shopify
  • Order tags for segmentation

These custom dimensions let you answer questions like "do discount customers come back?" and "which collections drive the highest lifetime value?"

Common GA4 Setup Mistakes That Break Your Data

Even stores that think they have GA4 working properly often have these issues lurking in their setup:

Mistake 1: Double-Counting Purchases

If you have both Shopify's native integration and a separate GA4 tag in your theme, you're counting every purchase twice. Your revenue looks great in GA4, but it's completely wrong.

Check your GA4 real-time report while making a test purchase. If you see two purchase events, you have duplicate tracking.

Mistake 2: Missing Checkout Events

Shopify's checkout happens on a separate domain (checkout.shopify.com). If your GA4 isn't configured to track across domains, you lose visibility into the most critical part of your funnel.

Verify this by checking your GA4 funnel exploration report. If you see lots of add_to_cart events but very few begin_checkout events, your cross-domain tracking is broken.

Mistake 3: Incomplete Product Data

Your purchase events might fire, but if they don't include product variants, categories, or SKUs, you can't analyze which specific products drive results.

What Good Product Data Looks Like: A purchase event should include item_id (product ID), item_name, item_variant (size/color), item_category, price, and quantity. Missing any of these limits your ability to optimize your product mix.

Mistake 4: Ignoring Bot Traffic

Bots can represent 20-40% of your traffic. If you're not filtering them out, your conversion rates look terrible and your traffic source data is polluted.

Enable bot filtering in GA4 under Admin → Data Settings → Data Filters. Create a filter to exclude known bots and spiders.

How to Verify Your Shopify GA4 Setup Is Actually Working

Installation is one thing. Verification is what matters. Here's how to confirm your data is accurate:

Test 1: Compare Revenue Numbers

Pull last month's revenue from Shopify Analytics and GA4. They should match within 2-3%. If the gap is larger, you have a tracking problem.

Common causes: duplicate tracking, missing purchase events, or timezone mismatches between platforms.

Test 2: Check Your Funnel Completion

In GA4, create a funnel exploration report with these steps: view_item → add_to_cart → begin_checkout → purchase.

If your begin_checkout to purchase rate is below 60%, either your checkout experience is broken or your tracking is incomplete. For most Shopify stores, 65-75% is normal.

Test 3: Verify Product-Level Data

Go to Reports → Monetization → Ecommerce purchases in GA4. Click on a product. You should see variant information, categories, and accurate revenue numbers.

If you only see product names without variants or categories, your ecommerce tracking needs enhancement.

Quick Win: Set up a custom report in GA4 that shows purchases by product variant and discount code. This single report will show you which products actually drive profitable sales vs. which ones only move with heavy discounting.

Advanced Tracking for Serious Shopify Stores

Once your base setup is solid, add these tracking enhancements to unlock deeper insights:

Customer Lifetime Value Tracking

GA4 can predict customer lifetime value, but only if you're sending proper customer data with each purchase event. Include customer_id in your purchase events to enable LTV analysis.

This lets you answer questions like "which traffic sources drive customers with the highest lifetime value?" instead of just "which sources drive the most first purchases?"

Scroll Depth and Engagement Tracking

For product pages and blog content, track how far people scroll. This shows you if customers are actually reading your product descriptions or bouncing before they see your key selling points.

Form Abandonment Tracking

Track when customers start filling out checkout forms but don't complete them. This is different from cart abandonment—these people were ready to buy but something in your checkout stopped them.

What to Do After Your GA4 Setup Is Fixed

Clean data is the foundation. But data alone doesn't grow your store. You need to actually use it to make better decisions.

Start with these three reports:

  • Traffic source performance: Which channels drive customers who actually come back and buy again?
  • Product performance: Which products have the highest view-to-purchase rate?
  • Checkout abandonment: Where exactly are people dropping off in your funnel?

These three reports will show you what's actually working and what's holding your store back.

Reality Check: If you can't answer these three questions with confidence right now, your GA4 setup isn't giving you what you need. You're collecting data but not getting clarity.

When to Get Help With Your Setup

Some stores can handle GA4 setup themselves. Others need help, especially if you're dealing with:

  • Multiple sales channels (Shopify + Amazon + wholesale)
  • Subscription products with recurring revenue
  • Complex product bundles or customization options
  • International stores with multiple currencies

The more complex your business model, the more important it is to get your tracking right from the start. Fixing broken data six months later means six months of decisions based on incomplete information.

Stop Guessing About What's Working

Your GA4 setup should give you clarity, not more confusion. If you're not confident in your data, you can't make confident decisions about where to invest your time and money.

Book a Clarity Session and we'll look at your actual data together. You'll see exactly what's tracking correctly, what's broken, and what you need to fix. You keep the diagnostic dashboards forever.

Clarity Session