

How to Add Google Analytics to Your Shopify Store: A Beginner’s Guide
If you’re running a Shopify store—whether you’re selling print-on-demand products, dropshipped items, or handmade goods—you need to know who’s visiting your store, where they come from, and what they do once they arrive. Google Analytics gives you all that information for free.
Unlike some analytics tools that require coding or technical setup, Google Analytics integrates with Shopify smoothly. This guide shows you exactly how to set it up, even if you’ve never used analytics before.
Why You Need Google Analytics on Your Shopify Store
Google Analytics answers questions like:
- How many people visited your store this month?
- Which products did visitors look at?
- Where did your traffic come from—social media, Google search, direct links?
- Did visitors actually buy something, or did they leave without purchasing?
This data helps you decide where to spend money on marketing and which products to promote more. For print-on-demand sellers, tracking which designs get clicks (even if they don’t sell) helps you refine your product strategy.
What You’ll Need Before Starting
Make sure you have:
- A Shopify store (any plan works: Basic, Shopify, or Advanced)
- A Google account (Gmail, Google Drive, or any Google service)
- Access to your Shopify Admin (you must be the store owner or have permission to edit settings)
That’s it. No credit card, no coding, no third-party apps needed for basic setup.
Step-by-Step: Connect Google Analytics to Shopify
Step 1: Create or Sign Into Your Google Analytics Account
Go to analytics.google.com and sign in with your Google account. If you don’t have a Google Analytics account yet, click Start Measuring or Create Account. Fill in your account name (e.g., “My Store Analytics”) and accept Google’s terms.
Step 2: Create a New Property for Your Shopify Store
A property is Google’s way of tracking one website. Click Create Property and enter your store details:
- Property Name: Enter your store name (e.g., “MyPrintOnDemandStore”)
- Reporting Time Zone: Select your timezone
- Currency: Choose your store’s currency (USD, EUR, GBP, etc.)
Click Create.
Step 3: Set Up a Web Data Stream
Google will ask what you want to measure. Select Web. Enter your Shopify store’s URL (e.g., mystore.myshopify.com or your custom domain like www.mystore.com). Name the data stream something simple like “Shopify Store” and click Create Stream.
Google will generate a Measurement ID that starts with “G-” (e.g., G-A1B2C3D4E5). Copy this ID—you’ll paste it into Shopify next.
Step 4: Go to Your Shopify Admin and Add the Measurement ID
Log into your Shopify Admin and navigate to:
Settings (bottom-left menu) → Apps and Integrations → Google Analytics
If you don’t see Google Analytics listed, you can search for it using the search bar or add it via the Shopify App Store. Shopify’s official Google Analytics integration is free.
Click Add Google Analytics (or Configure if you’re updating an existing connection). Paste your Measurement ID into the field and click Save.
That’s it. Google Analytics is now tracking your Shopify store.
Step 5: Wait 24 Hours and Check Your Data
Google Analytics usually shows data within a few hours, but it can take up to 24 hours to populate fully. Go back to analytics.google.com, select your property, and check your Home dashboard. You should see visitor counts, traffic sources, and other metrics appearing.
Understanding Your First Analytics Reports
Once data starts flowing, here’s what to look for:
- Users: How many unique people visited your store
- Sessions: How many visits occurred (one user can have multiple sessions)
- Bounce Rate: The percentage of visitors who left without clicking anything—a high bounce rate might mean your store needs improvement
- Acquisition: Where your traffic comes from (Organic Search, Direct, Social, Referral)
- Pages: Which product pages or collection pages got the most views
For print-on-demand stores, pay attention to your best-performing product pages. If a design gets high traffic but low sales, it might need a better description or price adjustment.
Connecting Google Analytics to Shopify Ecommerce Tracking (Optional)
If you want to track sales directly in Google Analytics (which products sold, how much revenue each product generated), you can enable Ecommerce reporting. This requires a few extra steps but is still free.
In your Shopify Admin, go to Settings → Apps and Integrations → Google Analytics and look for an option to enable ecommerce tracking or purchase events. Shopify’s integration handles most of this automatically, but check your analytics account’s Admin panel to enable the Ecommerce feature in your Property Settings as well.
Tips for Getting the Most from Google Analytics
- Set Goals: Create a goal for “Purchase Completion” so you can track which traffic sources actually convert to sales. In Google Analytics, go to Admin → Goals → Create Goal.
- Check Mobile Traffic: View your data by device (mobile, tablet, desktop) under Audience → Technology. Many visitors use phones—make sure your store is mobile-friendly. Our guide on making your Shopify store mobile-friendly covers optimization tips.
- Use UTM Parameters for Campaigns: If you run ads or send emails, add UTM tags to your links so you can track which campaigns drive the most visitors. For example: mystore.com/?utm_source=email&utm_medium=newsletter&utm_campaign=spring_sale.
- Review Monthly: Spend 10 minutes every month looking at your top pages and traffic sources. This habit quickly reveals what’s working.
Related Guides
- Shopify SEO Settings: A Complete Beginner’s Step-by-Step Guide
- Making Your Shopify Store Mobile Friendly: A Complete Beginner’s Guide
- Shopify Theme Speed: How to Make Your Store Faster (Beginner’s Guide)
Troubleshooting: Common Issues
I Don’t See Analytics Data After 24 Hours
Check that you pasted the correct Measurement ID in your Shopify settings (no extra spaces). Visit your store from a different device to generate test traffic. If you’re logged into Google, your own visits might be filtered out by default.
My Sales Aren’t Showing in Google Analytics
Ecommerce tracking requires both Google Analytics and Shopify to be configured. Make sure Ecommerce is enabled in your Google Analytics property settings (Admin → Property → Ecommerce Settings). Shopify’s native integration handles most of the work, but confirm the setting is toggled on.
Can I Use a Custom Domain Instead of myshopify.com?
Yes. Enter your custom domain (e.g., www.mystore.com) when creating your data stream. If you have both a custom domain and myshopify.com pointing to your store, Google Analytics will treat them as separate traffic sources unless you adjust your settings. Use the custom domain for consistency.
Do I Need a Premium Shopify Plan?
No. Google Analytics works on all Shopify plans, including the Basic plan. Shopify’s native analytics integration is free for all stores.
Closing Thoughts
Adding Google Analytics to your Shopify store takes about 10 minutes and reveals insights that directly improve your marketing decisions. Start tracking today, and in a month, you’ll know exactly which products and traffic sources drive your sales.
Ready to build a high-performing store? Explore our collection of professional Shopify themes designed for conversion and speed. A great theme paired with solid analytics data is the foundation for sustainable growth.



