GA4 Setup Guide

74% of Shopify stores have Google Analytics misconfigured. Every decision you make from bad data is a bad decision.

You installed Google Analytics on your Shopify store. It shows traffic numbers. Maybe pageviews. But when you try to answer real business questions — "which channel drives the most profitable customers?" or "what is my actual conversion rate by traffic source?" — the data is either wrong, missing, or contradicts what Shopify says.

This happens because GA4 requires proper configuration to work for eCommerce. The default install tracks pageviews and sessions. That is it. Enhanced eCommerce events (add to cart, begin checkout, purchase), conversion goals, and proper attribution — all need to be configured separately. Without them, you have a traffic counter, not an analytics platform.

This guide walks through the correct GA4 setup for Shopify: enhanced eCommerce tracking, conversion events, cross-domain tracking, and validation. Follow it step by step and you will have analytics you can actually use for decisions.

74%

Stores Misconfigured

150+

Stores Configured

$23M+

Revenue Driven

2026

GA4 Updated Guide

How to fix this — step by step

1

Install GA4 through the Google channel app

Do not paste GA4 code into your theme manually. Install the "Google & YouTube" channel app in Shopify. Connect your Google account and select or create your GA4 property. The app handles enhanced eCommerce event tracking automatically — add_to_cart, begin_checkout, purchase, and view_item events all fire correctly through the official integration. Manual installation misses many of these events.

2

Verify enhanced eCommerce events are firing

Go to GA4 > Admin > DebugView. Open your Shopify store in a browser with the GA4 Debugger Chrome extension enabled. Browse a product (should see view_item). Add to cart (add_to_cart). Start checkout (begin_checkout). Complete a test purchase (purchase with revenue data). Each event should include proper parameters: item name, price, quantity, and transaction ID. If any event is missing or lacks parameters, the integration is broken.

3

Mark purchase as a conversion event

Go to GA4 > Admin > Events. Find the "purchase" event and toggle "Mark as conversion." Also mark "add_to_cart" and "begin_checkout" as conversions — these give you funnel visualization. Without marking events as conversions, GA4 treats them as regular events and they do not appear in conversion reports or attribution analysis.

4

Set up proper attribution settings

Go to GA4 > Admin > Attribution settings. Set the reporting attribution model to "Data-driven" (GA4 default in 2026). Set the conversion window to 30 days for engaged-view and 90 days for clicks — this matches eCommerce buying cycles better than the 7-day default. These settings determine how GA4 credits channels for conversions — getting them wrong means wrong data about which channels drive revenue.

5

Connect Google Ads and Search Console

Go to GA4 > Admin > Product Links. Link your Google Ads account (for cost data and ad performance in GA4). Link Google Search Console (for organic search query data). These connections give you a complete picture: paid search data from Ads, organic search data from Search Console, and on-site behavior from GA4 — all in one place.

6

Validate data against Shopify admin

Compare GA4 purchase data against Shopify admin for the same period. They will never match exactly (different attribution, different tracking methods), but they should be within 10-15% of each other for total revenue. If GA4 shows 30%+ less revenue than Shopify, tracking is broken — usually missing CAPI, checkout event issues, or ad blocker interference. If GA4 shows more revenue than Shopify, you have duplicate event firing.

Want us to handle this?

Proper GA4 setup is the foundation of data-driven marketing. Every decision — which channels to invest in, which pages to optimize, which products to promote — depends on accurate data.

If your GA4 is misconfigured (and statistically, it probably is), every marketing decision you make is based on incomplete or wrong data. We audit and fix GA4 setups as part of our analytics service. One audit shows you exactly what is broken and what it is costing you.

Get a Free Analytics AuditWe'll walk through your setup live.

Questions our best clients asked first

Is your GA4 actually telling you the truth?

Get a free analytics audit. We will compare your GA4 data against Shopify, identify configuration issues, and fix the gaps so your decisions are based on real numbers.

Pick a Time

15 minutes. No pitch deck. Just your data and our honest take.

More guides

Meta Pixel Setup Guide

Your Facebook Pixel is either not installed, installed wrong, or missing the Conversions API. All three are costing you money.

Facebook Pixel setup is broken on most Shopify stores. Here's how to install the Pixel and Conversions API correctly so your Meta Ads actually optimize for purchases.

Learn more

Product Feed Optimization

Your Google Shopping performance is only as good as your product feed. Most feeds are terrible.

Your product feed is the foundation of Google Shopping performance. Here's how to optimize titles, descriptions, images, and attributes for maximum impressions and clicks.

Learn more

Retargeting Guide

97% of first-time visitors leave without buying. Retargeting is how you bring the interested ones back.

97% of first-time visitors leave without buying. Retargeting brings them back at 3-5x the conversion rate of cold traffic. Here's how to set it up properly.

Learn more

Email ROI Tracking Guide

Can you tell exactly how much revenue email generated last month? Not "approximately" — exactly?

Can you tell your CEO exactly how much revenue email generated last month? If not, here's how to set up tracking that ties every email to actual dollars — step by step.

Learn more

Shopify Analytics

74% of eCommerce brands make decisions based on bad data. Their analytics are misconfigured and they do not know it.

Shopify analytics agency. Custom dashboards, proper GA4 setup, attribution modeling, and data-driven reporting that ties every marketing dollar to revenue. 150+ stores.

Learn more

Conversion Consulting

The average Shopify store converts at 1.4%. Our clients average 3.2%. Same traffic, different results.

eCommerce conversion consulting. Increase your store conversion rate with data-backed changes to product pages, checkout, navigation, and user experience. 150+ stores optimized.

Learn more

Need help with this?

Book a free call

Book Call