How to add Google Analytics to Shopify?

Step 1: Get Your GA4 Measurement ID

Need to create a GA4 property first? Here’s an easy guide to set it up:

If you already have a GA4 property, here are steps to find your measurement ID:

Step 2: Add GA4 via Customer Events in Shopify

Step 3: Verify Your Setup

1. Avoid Double Tracking

If you switch from the native Shopify integration to Google Tag Manager (or vice versa), make sure to remove the old script or Measurement ID to avoid duplicate data.

How to check: In GA4’s DebugView, see if each action (like “page_view”) appears only once per page load. If you see duplicates, check your store theme and GTM setup.

2. Data Delay Is Normal

GA4’s standard reports take up to 48 hours to show data. Only Realtime and DebugView update immediately. Don’t panic if yesterday’s orders aren’t showing just yet.

3. Complement GA4 with Ecommerce-Focused Tools

avatar
Irene Le

Content Manager at TrueProfit & eCommerce Marketing Specialist

Irene Le

Irene Le is the Content Manager at TrueProfit, specializing in crafting insightful, data-driven content to help eCommerce merchants scale profitably. With over 5 years of experience in content creation and growth strategy for the eCommerce industry, she is dedicated to producing high-value, actionable content that empowers merchants to make informed financial decisions.

Let's Collaborate