Analytics Setup Guide
You can't optimize what you can't measure. And most Shopify analytics setups are broken.
Here's what we see when we audit a typical Shopify store's analytics: GA4 is installed but not configured for eCommerce events. The Meta Pixel is firing on every page but not tracking purchases correctly. Google Ads conversion tracking is counting page views as conversions. And nobody has looked at the data in months because it doesn't make sense.
Broken analytics means every marketing decision you make is a guess. You don't know which ad campaign actually drives sales. You don't know which landing page converts best. You don't know where visitors drop off.
Setting up analytics properly isn't glamorous work. But it's the foundation for every smart decision that follows. Here's how to do it right.
150+
Clients
$70M+
Revenue
$23M+
Ad Spend
Klaviyo Gold Partner
Klaviyo Gold Partner
How to fix this, step by step
Set up GA4 with enhanced eCommerce tracking
In Shopify Admin, go to Online Store → Preferences → Google Analytics. Add your GA4 Measurement ID (starts with G-). But don't stop there: Shopify's native GA4 integration only tracks basic page views. For eCommerce: enable enhanced eCommerce events in GA4 (view_item, add_to_cart, begin_checkout, purchase). The easiest method: install Google Tag Manager via a Shopify app (GTM Suite or Elevar), then configure your GA4 tags through GTM. This gives you complete eCommerce funnel tracking.
Install and verify your Meta Pixel and Conversions API
The Meta Pixel tracks visitor behavior for Facebook and Instagram ads. But browser-side tracking alone misses conversions due to ad blockers and iOS privacy changes. You also need the Conversions API (CAPI), which sends conversion data server-side. Shopify has a native Meta integration, go to Settings → Apps → Facebook & Instagram. This sets up both the pixel and CAPI. After installation, use the Meta Events Manager Test Events tool to verify that ViewContent, AddToCart, and Purchase events are firing correctly.
Set up Google Ads conversion tracking
If you run Google Ads, conversion tracking is mandatory. In Google Ads, go to Goals → Conversions → New conversion action → Website. Create a "Purchase" conversion with a dynamic value. Install the tracking tag via Google Tag Manager or Shopify's native Google channel. Verify it's tracking actual purchases, not page views or clicks. The most common mistake: counting "page load" as a conversion instead of the actual purchase event. Check your conversion data against Shopify orders, they should match within a close range.
Configure Klaviyo attribution alongside ad platform tracking
Klaviyo tracks email and SMS revenue attribution separately from your ad platforms. Make sure Klaviyo's tracking snippet is installed (it should be automatic when you connect the Shopify integration). In Klaviyo Analytics, verify that revenue is being attributed to flows and campaigns. Compare Klaviyo-reported revenue with Shopify-reported revenue, they should be within a close range. If Klaviyo shows much less, the tracking snippet may not be firing on your checkout or thank-you page.
Build a simple reporting dashboard you'll actually check
Analytics setups fail because nobody looks at the data. Build a simple weekly dashboard with 5 key metrics: total revenue (Shopify), traffic by source (GA4), conversion rate by source (GA4), email revenue as a share of total (Klaviyo), and return by ad platform (Meta/Google Ads). Use Shopify's built-in analytics for the basics, GA4 for traffic analysis, and each platform's dashboard for channel-specific metrics. Check it weekly. Put it on your calendar. Data you don't look at is data you wasted time collecting.
Want us to handle this?
These five steps get your analytics from broken to functional. You can do this in a weekend, and the clarity it provides is useful.
But there's a difference between "tracking data" and "using data to make better decisions." Building custom dashboards, implementing multi-touch attribution models, running channel incrementality tests, and interpreting cross-platform data to allocate budget, that's the advanced layer. We build analytics and reporting systems for eCommerce brands that make data actionable, not just collectible.
Honest answers to
common questions
Want to know if your analytics are actually working?
We'll audit your GA4, Meta Pixel, Google Ads tracking, and Klaviyo attribution, then tell you what's broken, what's missing, and how to fix it. Free analytics audit.
Pick a Time30 minutes. No pitch deck. Just your data and our honest take.
More guides
Shopify Growth Guide
Most Shopify stores leave conversions on the table. Here's how to beat that.
Shopify sales stuck? Here are the 6 highest-impact changes to drive more revenue, from traffic to conversion to retention. Real data from 150+ clients.
Learn moreAttribution Guide
Your ad platforms are all lying to you. Here's how to find the truth.
Meta says profitable spend. Google says much higher. But total revenue didn't change. Your attribution is lying.
Learn moreMarketing Analytics Guide
Your ad platform says profitable spend. Your bank account disagrees. Here's how to find the real number.
Your ad platform says profitable spend but your bank account disagrees. Here is how to measure marketing ROI, with formulas and frameworks.
Learn moreGoogle Ads Guide
Google Ads drives a large share of eCommerce product clicks. Here's how to make it profitable.
Google Ads drives a large share of eCommerce clicks. Here's the campaign structure, bidding strategy, and optimization playbook we use to scale profitably.
Learn moreShopify Payments Guide
Stop. If you're not using Shopify Payments, you're paying extra on every sale.
Using a third-party payment gateway on Shopify? You're paying extra per transaction. Here's how to set up Shopify Payments and save thousands.
Learn morePaid Media Guide
Your return problem isn't in your ad account. It's in your funnel.
Ad returns too low? The problem isn't your ads, it's probably your landing page, your AOV, or your tracking. Here's the full diagnostic playbook.
Learn moreNeed help with this?
Book a free call