Shopify Google Analytics Setup: The Complete Guide for NZ Stores
Most Shopify stores have Google Analytics installed. But "installed" doesn't mean "working properly." You might be tracking page views while missing the data that actually matters: where customers come from, what they do, and which channels drive revenue. This guide shows you how to do a proper Shopify Google Analytics setup NZ stores can rely on, whether you're using the native integration or need custom tracking.
Why Most Shopify GA Setups Are Broken
Here's what usually happens. You connect Google Analytics through Shopify's settings, see some numbers in your dashboard, and assume it's working. Then three months later you realize:
- Your conversion tracking is off by 30%
- Revenue numbers don't match Shopify
- You can't see which products people actually buy
- Traffic sources show "direct" for everything
This isn't your fault. Shopify's native Google Analytics integration is limited. It tracks basic page views fine, but misses crucial ecommerce data unless you configure it properly.
The Real Cost: Without accurate tracking, you're making decisions based on incomplete data. That Facebook campaign that looks profitable? Might be losing money. That blog post driving "traffic"? Could be bouncing at 90%. You need to see what's actually happening.
The Two Ways to Set Up Google Analytics on Shopify
You have two options: the native integration (easier but limited) or custom implementation (more work but complete data). Here's when to use each.
Option 1: Native Integration (Good for Most Stores)
If you're doing under $50k/month and just need basic tracking, the native integration works. You'll get traffic sources, page views, and basic conversion data. It takes 10 minutes to set up.
What you get: Traffic sources, page views, basic goal tracking, some ecommerce data.
What you miss: Detailed product performance, accurate revenue attribution, enhanced ecommerce events, checkout funnel visibility.
Option 2: Custom Implementation (For Serious Tracking)
If you're running multiple channels, testing regularly, or need accurate attribution, you need custom tracking. This means adding Google Tag Manager and configuring enhanced ecommerce properly.
What you get: Everything. Product impressions, add-to-cart events, checkout steps, accurate revenue, proper attribution, custom event tracking.
The tradeoff: Takes 2-3 hours to set up properly, requires some technical knowledge or developer help.
Step-by-Step: Native Integration Setup
Start here if you're new to analytics or just need basic tracking working. You can always upgrade to custom tracking later.
Step 1: Create Your Google Analytics 4 Property
Log into Google Analytics. Click Admin (bottom left). Under Property, click "Create Property." Name it something clear like "YourStore Shopify." Select your timezone (NZ stores: choose Pacific/Auckland). Turn on enhanced measurement.
Copy your Measurement ID. It looks like "G-XXXXXXXXXX". You'll need this in a minute.
Step 2: Connect to Shopify
In your Shopify admin, go to Settings → Apps and sales channels → Develop apps. If you haven't enabled custom app development, you'll need to do that first (it's safe, just click through).
Create a custom app. Name it "Google Analytics." Under Admin API access, enable Analytics API. Save the app.
Now go to Online Store → Preferences. Scroll to Google Analytics. Paste your Measurement ID in the Google Analytics account field. Check "Use Enhanced Ecommerce." Save.
Important: Don't paste your Measurement ID into the theme code. Use Shopify's settings. Pasting it in both places creates duplicate tracking and ruins your data.
Step 3: Verify It's Working
Open your store in a new incognito window. Browse a few pages, add something to cart. Now check Google Analytics → Reports → Realtime. You should see yourself as an active user.
If you don't see anything after 5 minutes, check: Did you paste the right Measurement ID? Did you save the Shopify settings? Is your browser blocking analytics (turn off ad blockers for testing)?
Step-by-Step: Custom Implementation with GTM
This is for stores that need complete tracking. You'll use Google Tag Manager to fire analytics events properly, capturing every important action customers take.
Step 1: Set Up Google Tag Manager
Go to tagmanager.google.com. Create an account (use your store name). Create a container (choose Web). Copy the two code snippets GTM gives you.
In Shopify, go to Online Store → Themes → Edit code. Open theme.liquid. Paste the first GTM snippet right after the opening <head> tag. Paste the second snippet right after the opening <body> tag. Save.
Step 2: Configure GA4 in Tag Manager
Back in GTM, click Tags → New. Name it "GA4 Configuration." Choose tag type "Google Analytics: GA4 Configuration." Paste your Measurement ID.
Under Triggering, choose "All Pages." Save the tag.
Step 3: Add Enhanced Ecommerce Tracking
This is where it gets powerful. You'll create tags for each important event: product views, add to cart, begin checkout, purchase.
For each event, create a new tag. Choose "Google Analytics: GA4 Event." Set the Configuration Tag to your GA4 Configuration tag. Name the event (use GA4's standard names: view_item, add_to_cart, begin_checkout, purchase).
The tricky part is getting the data layer right. Shopify doesn't push ecommerce data to the data layer by default. You'll need to add custom code to your theme or use an app like Elevar or Littledata to handle this automatically.
Real Example: A store doing $80k/month installed proper tracking and discovered 40% of their "direct" traffic was actually coming from Instagram. They'd been ignoring Instagram because the data looked terrible. Once they could see the real source, they doubled down and added $15k/month in revenue.
Step 4: Test Everything
Use GTM's Preview mode. Click Preview in GTM, enter your store URL. Browse your store in the new window that opens. GTM will show you which tags fire on each page.
Test the full funnel: view a product, add to cart, start checkout, complete a test purchase. Every event should fire. If something doesn't fire, check your triggers and data layer.
Common Setup Mistakes (And How to Fix Them)
Mistake 1: Double Tracking
You installed GA through Shopify settings AND pasted the code in your theme. Now everything's counted twice. Your bounce rate looks impossibly low, your page views are doubled.
Fix: Remove the code from your theme. Only use one installation method.
Mistake 2: Missing Ecommerce Tracking
You see traffic but no revenue data. Conversions aren't tracked. You can't see which products sell.
Fix: Make sure "Use Enhanced Ecommerce" is checked in Shopify settings. If using GTM, verify your purchase event is firing with transaction data.
Mistake 3: Wrong Timezone
Your GA timezone doesn't match your Shopify timezone. Reports show sales happening at weird times. Daily totals don't match.
Fix: Set both to Pacific/Auckland if you're in NZ. Check GA Admin → Property Settings and Shopify Settings → General.
What to Track Once It's Set Up
Having analytics installed means nothing if you don't use it. Here's what to actually look at weekly:
- Traffic sources: Which channels bring visitors? Which convert?
- Landing pages: Where do people enter your site? What's the bounce rate?
- Product performance: Which products get viewed most? Which convert best?
- Checkout behavior: Where do people drop off in checkout?
- Device split: Mobile vs desktop traffic and conversion rates
Don't just collect data. Use it to make decisions. If mobile traffic converts at half the rate of desktop, you have a mobile experience problem. If Instagram drives traffic but no sales, your targeting or landing pages need work.
Pro Tip: Set up a custom dashboard in GA4 with just the 5-7 metrics you actually check. Ignore everything else. Most stores drown in data and never look at what matters.
When to Upgrade Your Tracking
Start with native integration if you're just getting going. Upgrade to custom GTM tracking when:
- You're running multiple paid channels and need accurate attribution
- You're testing regularly and need to measure results properly
- You're over $50k/month and decisions are expensive
- You need to track custom events (quiz completions, video views, etc.)
The native integration is fine for basic visibility. But if you're serious about growth, you need complete data. That means custom implementation.
Getting Help with Setup
If this feels overwhelming, you're not alone. Most founders don't want to spend three hours configuring tag manager. They want to know what's working and what's not.
You have three options: do it yourself (use this guide), hire a developer (expect $500-$1500 for proper setup), or use a tracking app like Elevar or Littledata (costs monthly but handles everything automatically).
The important thing is getting it done. Flying blind costs more than any setup fee.