How to add Google Analytics to Shopify is one of the first things every store owner should learn if they want accurate traffic and sales data. With Shopify’s official Google & YouTube integration, you can connect Google Analytics 4 (GA4) in minutes and automatically track product views, add to cart events, checkout starts, and purchases.
This step by step guide shows you exactly how to add Google Analytics to Shopify, verify your setup, fix common tracking problems, and get the most useful ecommerce reports without manually editing your theme.

In This Guide
Boost Your Conversion Instantly with Nudgify: Turn your website visitors into customers with real-time Social Proof and FOMO Nudges. Get Started Now →
What You’ll Need Before You Start
Before connecting Google Analytics to Shopify, make sure you have everything required for a smooth setup.
Shopify Admin Access
You need administrator access to your Shopify store to install sales channels and connect external services.
Google Account
Use the same Google account that will own your Google Analytics property.
GA4 Property
Google Analytics now uses GA4 instead of Universal Analytics.
Increase Trust & Sales with Social Proof
Boost trust, engagement, and conversions with Social Proof — tailored for any industry and easy to integrate. Seamlessly manage client access with our team portal.
If you already have a GA4 property, you can connect it directly. Otherwise, you’ll create one during setup.
Web Data Stream
Your GA4 property needs a Web Data Stream with a Measurement ID that begins with G-.
How to Add Google Analytics to Shopify in Under 5 Minutes
If you’re already familiar with Shopify, here’s the fastest way to connect Google Analytics.
- Open Shopify Admin.
- Go to Sales Channels → Google & YouTube.
- Install the official Google app if needed.
- Connect your Google account.
- Select your GA4 property.
- Click Connect.
- Verify the connection inside Google Analytics.
The rest of this guide explains every step in detail and shows how to verify that tracking works correctly.
How to Create a Google Analytics 4 Property
Skip this section if you already have a GA4 property.
- Sign in to Google Analytics.
- Click Start measuring.
- Create an account.
- Create a new property.
- Select your reporting time zone.
- Choose your store currency.
- Select Web as the platform.
- Enter your Shopify store URL.
- Enable Enhanced Measurement.
Google will create a Web Data Stream and generate your Measurement ID.
Step by Step: Add Google Analytics to Shopify
Step 1: Open the Google & YouTube Sales Channel
Inside Shopify Admin:
- Go to Sales Channels.
- Select Google & YouTube.
If the sales channel isn’t installed yet, install the official app from the Shopify App Store.
Step 2: Connect Your Google Account
Click Connect Google Account.
Sign in using the same Google account that owns your GA4 property.
Approve the requested permissions.
Step 3: Connect Your GA4 Property
In the Google Analytics section:
- Choose your existing GA4 property.
- Or create a new property directly from Shopify.
- Click Connect.
Shopify automatically installs the Google tag across your storefront.
Most merchants don’t need to edit theme files or add tracking code manually.
Step 4: Enable Customer Events
Customer Events allow Shopify to send important ecommerce interactions into GA4.
Keep this enabled for accurate tracking throughout the customer journey.
How to Verify Google Analytics After You Add It to Shopify
Never assume the installation worked.
Testing immediately helps catch issues before customers start generating data.
Check Realtime Reports
- Open GA4.
- Go to Realtime.
- Visit your Shopify store.
- Refresh the report.
You should appear as an active user within a few seconds.
Use DebugView
DebugView shows individual events as they happen.
This is one of the quickest ways to confirm that Shopify is sending data correctly.
Test Important Events
Perform these actions yourself:
- Visit a product page.
- Add a product to cart.
- Begin checkout.
- Complete a test purchase if possible.
Each action should appear as an event inside GA4.
What Google Analytics Tracks Automatically in Shopify
One of the biggest advantages of Shopify’s native integration is automatic ecommerce tracking.
| Event | Automatically Tracked |
|---|---|
| Page View | Yes |
| Product View | Yes |
| Add to Cart | Yes |
| Begin Checkout | Yes |
| Purchase | Yes |
| Session Start | Yes |
This covers the core ecommerce journey without requiring custom coding for most stores.
Shopify Plus vs Non Plus Tracking
Most stores can rely on the native integration.
However, Shopify Plus users have additional flexibility.
Standard Shopify Plans
- Native GA4 integration.
- Automatic ecommerce events.
- Customer Events support.
Shopify Plus
Plus merchants may choose more advanced tracking through custom pixels, checkout extensibility, and Google Tag Manager when additional customization is required.
Common GA4 Setup Mistakes to Avoid
Using Two Tracking Methods
The most common mistake is running the Google & YouTube app together with manually installed GA4 code.
This often creates duplicate events.
Choose one primary implementation unless you’re intentionally using an advanced GTM setup.
Using an Old Universal Analytics ID
Universal Analytics no longer collects new data.
Always use a Measurement ID beginning with G-.
Connecting the Wrong Google Account
If your property doesn’t appear during setup, you’re likely signed into the wrong Google account.
Verify administrator permissions.
Ignoring Enhanced Measurement
Keep Enhanced Measurement enabled inside GA4.
It automatically tracks useful interactions like scrolls, outbound clicks, and site search.
Troubleshooting Google Analytics on Shopify
Even a successful installation can occasionally produce missing data.
Here are the most common fixes.
No Data Appears
- Verify your GA4 property is connected.
- Check Realtime reports.
- Confirm you’re viewing the correct property.
Purchases Aren’t Tracking
- Confirm Customer Events are enabled.
- Test another purchase.
- Check DebugView.
- Look for conflicting GTM or manual scripts.
Duplicate Events
This usually happens when multiple Google tags fire simultaneously.
Remove outdated manual installations if you’re using Shopify’s native integration.
Realtime Works but Reports Don’t
Standard GA4 reports usually take longer to populate than Realtime reports.
Waiting several hours before troubleshooting further is often enough.
Best GA4 Reports for Shopify Store Owners
Once data starts flowing, these reports become especially valuable.
Traffic Acquisition
Discover which channels bring visitors.
Compare organic search, paid ads, social media, and direct traffic.
Ecommerce Purchases
Track:
- Revenue
- Purchases
- Average order value
- Items sold
Landing Pages
Identify which pages generate the most traffic and conversions.
This report is especially useful for SEO optimization.
User Acquisition
Understand where new customers come from and which campaigns attract first time buyers.
Shopify Analytics vs Google Analytics
Both tools are valuable because they serve different purposes.
| Feature | Shopify Analytics | Google Analytics 4 |
|---|---|---|
| Sales Reports | Yes | Yes |
| Traffic Sources | Basic | Advanced |
| User Journey | Limited | Detailed |
| Conversion Funnels | Basic | Advanced |
| Cross Channel Insights | Limited | Yes |
Many merchants use both together for a more complete picture.
When Should You Use Google Tag Manager Instead?
Google Tag Manager becomes useful when you need more advanced tracking.
Examples include:
- Custom ecommerce events.
- Marketing pixels.
- Third party integrations.
- Complex attribution setups.
For most Shopify stores, the official Google & YouTube integration provides everything needed to begin collecting reliable GA4 data.
Key Takeaways
- Use the official Google & YouTube sales channel instead of manually adding GA4 code.
- Create a GA4 property before connecting your Shopify store.
- Enable Customer Events for accurate ecommerce tracking.
- Verify the setup with Realtime reports and DebugView.
- Avoid duplicate tracking by removing old manual installations.
- Shopify automatically tracks key events like product views, add to cart actions, checkout starts, and purchases.
- Use both Shopify Analytics and GA4 together for better business insights.
People Also Ask
Can I add Google Analytics to Shopify without coding?
Yes. The official Google & YouTube sales channel installs Google Analytics 4 without editing your Shopify theme or adding code manually.
Is Google Analytics 4 free for Shopify?
Yes. Google Analytics 4 is free, and the official Google & YouTube integration is also free to install.
How do I know if Google Analytics is working on Shopify?
Open the GA4 Realtime report, visit your store, and confirm that your activity appears as an active user. You can also use DebugView to verify individual events.
Why isn’t GA4 tracking purchases?
The most common causes are disabled Customer Events, conflicting Google Tag Manager implementations, duplicate tracking scripts, or connecting the wrong GA4 property.
Where do I find my GA4 Measurement ID?
Open Google Analytics, go to Admin → Data Streams, select your web stream, and copy the Measurement ID that starts with G-.
Should I use Google Tag Manager instead of Shopify’s native integration?
Most Shopify stores should use the native integration first. Google Tag Manager is better suited for advanced tracking, custom events, and additional marketing tags.
Does Shopify automatically track ecommerce events?
Yes. When properly connected through the Google & YouTube sales channel, Shopify automatically sends important ecommerce events like product views, add to cart actions, checkout starts, and purchases to GA4.
How long does GA4 take to show data?
Realtime reports usually appear within seconds, while standard reports may take several hours before displaying complete data.
Related Articles