If you have a Shopify store and don't know exactly how many visitors you're getting, where they're coming from, what products they're viewing, and why they're not buying, you're making decisions blindly. Connecting Shopify with Google Analytics 4 is the first step to change that. GA4 is the most powerful and free analytics tool available for online stores, and its correct integration with Shopify can transform how you understand and grow your business.
At YoSoyShopify, as a certified Shopify Partner specializing in store maintenance in LATAM, we have set up this integration for dozens of stores in Mexico, Argentina, Colombia, Chile, and Peru. And what we've learned is that most merchants have GA4 installed but incorrectly configured: incomplete data, duplicate events, untracked conversions, or broken e-commerce funnels.
In this comprehensive guide, we explain how to connect Shopify with Google Analytics 4 step-by-step, how to set up enhanced e-commerce tracking, how to verify that the data is correct, and how to get the most out of GA4 for your store. Additionally, you will find an actionable checklist, frequently asked questions answered within the content, and three calls to action for professional help.
"Without data, you're just another person with an opinion." — W. Edwards Deming
Why do you need Google Analytics 4 in your Shopify store?
Before diving into the technical setup, it's important to understand why the integration of Shopify with GA4 is indispensable for any serious store in LATAM.
What is Google Analytics 4 and how does it differ from Universal Analytics? Google Analytics 4 (GA4) is the current version of Google Analytics, which definitively replaced Universal Analytics (UA) in July 2023. GA4 uses an event-based data model instead of sessions, making it much more flexible and accurate for tracking user behavior in e-commerce. In addition, GA4 includes AI-powered data modeling to compensate for third-party cookie limitations, which is especially relevant in an increasingly strict privacy environment.
Does Shopify have its own analytics? Why do I need GA4 too? Yes, Shopify has its own analytics dashboard with sales, traffic, and behavior data. However, Shopify's analytics are limited compared to GA4: you cannot create custom audiences, you do not have access to detailed acquisition data by channel, you cannot integrate data from other sources, and you cannot create custom conversion funnels. GA4 complements Shopify's analytics with a much deeper layer of analysis.
The main advantages of connecting Shopify with Google Analytics 4 are:
- Complete conversion funnel tracking: From the first visit to purchase, through each checkout step.
- Acquisition analysis: Knowing exactly which channels (SEO, social media, email, paid ads) generate the most sales.
- Audiences for remarketing: Creating audiences in GA4 to use in Google Ads and reach users who visited your store but did not purchase.
- Behavioral analysis: Understanding which products are viewed most, which are added to the cart, and which are abandoned before purchase.
- Custom reports: Creating dashboards and reports tailored to the specific needs of your business.
- Integration with Google Ads: Importing GA4 conversions into Google Ads to optimize your paid advertising campaigns.
Is GA4 free for Shopify stores? Yes, Google Analytics 4 is completely free. There is a paid version called Google Analytics 360, but for the vast majority of stores in LATAM, the free version of GA4 is more than sufficient.
🚀 Do you want to set up GA4 in your Shopify store correctly from the start? Contact us. We are certified Shopify Partners specializing in analytics and store maintenance in LATAM.How to connect Shopify with Google Analytics 4: step-by-step setup
There are two main methods for integrating Google Analytics 4 with Shopify: via Shopify's Google channel (recommended for most merchants) or by manually installing the GA4 code. We explain both.
Method 1: Connect GA4 with Shopify via the Google Channel
This is the official and recommended method by Shopify. The Google & YouTube channel is a free Shopify app that facilitates integration with multiple Google products, including GA4.
Step 1: Create your GA4 property
If you don't already have a GA4 property, go to analytics.google.com and sign in with your Google account. Click "Admin" (the gear icon in the bottom left corner), then "Create Property." Enter your store name, select your country (Mexico, Argentina, Colombia, etc.), your time zone, and your currency. Complete the business settings and create the property.
Should I create a separate GA4 property for each country where I sell? Not necessarily. If you sell in multiple LATAM countries from a single Shopify store, you can use a single GA4 property and segment data by country using GA4 dimensions. However, if you have separate Shopify stores for different countries (e.g., one store for Mexico and another for Argentina), each should have its own GA4 property.
Step 2: Install the Google Channel in Shopify
In your Shopify admin, go to Sales channels and search for "Google & YouTube." If it's not installed, install it from the Shopify App Store. It's free and developed by Shopify.
Step 3: Connect your Google account
Within the Google Channel, connect your Google account. Make sure to use the same Google account that has access to your GA4 property and your Google Ads account (if you have one).
Step 4: Link your GA4 property
In the Google Channel settings, find the Google Analytics section and select your GA4 property. The channel will automatically install the GA4 tracking code on your Shopify store, including e-commerce event tracking.
Does Shopify's Google Channel automatically set up enhanced e-commerce in GA4? Yes, the Google Channel automatically sets up GA4 e-commerce events, including: view_item (view item), add_to_cart (add to cart), begin_checkout (begin checkout), purchase (purchase completed), and other standard e-commerce events. This gives you full visibility of the conversion funnel without additional setup.
Method 2: Manual installation of GA4 code in Shopify
If you prefer more control over the implementation or need a custom setup, you can manually install GA4 in Shopify using Google Tag Manager (GTM) or the direct tracking code.
Is it better to use Google Tag Manager or the direct GA4 code in Shopify? For most merchants, Google Tag Manager (GTM) is the superior option. GTM allows you to manage multiple tags (GA4, Google Ads, Meta Pixel, etc.) from a single place, without having to modify your theme code every time you need to add or change a script. Additionally, GTM has a preview mode that makes it easy to verify that events are firing correctly.
To install GA4 via GTM in Shopify:
- Create a container in Google Tag Manager for your store.
- Add the GTM code to your Shopify theme: the
<head>snippet in thetheme.liquidfile and the<body>snippet immediately after the opening<body>tag. - In GTM, create a tag of type "Google Analytics: GA4 Event" with your GA4 measurement ID (G-XXXXXXXXXX format).
- Configure triggers for the e-commerce events you want to track.
- Publish the GTM container and verify that data is reaching GA4.
Where do I find the GA4 measurement ID for my property? In GA4, go to Admin > Data Streams > [Your web stream]. The measurement ID has the format G-XXXXXXXXXX and appears in the top right corner of the data stream details panel.
Can I have GA4 installed twice in my Shopify store? Yes, and it's a very common mistake. If you use Shopify's Google Channel AND also have the GA4 code manually installed in the theme or via GTM, you will have duplicate data in GA4. This artificially inflates your metrics and makes the data unreliable. Choose only one installation method and make sure there are no duplicates.
💬 Do you have GA4 installed but don't know if the data is correct or if there are duplicates? Our team can audit and correct it for you. We are certified Shopify Partners in LATAM. Write to us here.Advanced GA4 configuration for Shopify stores in LATAM
Installing GA4 is just the first step. To get the most out of the Google Analytics 4 integration with Shopify, you need to correctly configure conversions, e-commerce reports, and audiences.
How do I set up conversions in GA4 for my Shopify store? In GA4, go to Admin > Events. Find the purchase event and mark it as a conversion by clicking the toggle. You can also mark other important events such as add_to_cart or begin_checkout as conversions if you want to track micro-conversions in your funnel.
How do I verify that GA4 is receiving data from my Shopify store correctly? Use the GA4 real-time report: go to Reports > Realtime and open your store in another tab. If GA4 is correctly installed, you will see your visit appear in the real-time report. To verify e-commerce events, add a product to the cart and begin checkout: the add_to_cart and begin_checkout events should appear in real time.
How do I configure the e-commerce report in GA4 to view my product performance? GA4 includes monetization reports under Reports > Monetization > E-commerce purchases. There you can see revenue by product, quantity sold, conversion rate by product, and more. For these reports to work correctly, e-commerce events must include the correct parameters (product name, price, quantity, transaction ID, etc.), which Shopify's Google Channel automatically configures.
Can I view the entire checkout funnel in GA4? Yes. In GA4 you can create a custom funnel exploration in Explore > Funnel exploration. Configure the steps: view_item → add_to_cart → begin_checkout → add_payment_info → purchase. This shows you exactly at what step of the purchase process you lose the most users, which is invaluable for optimizing your conversion.
How do I connect GA4 with Google Ads to import conversions? In GA4, go to Admin > Google Product Links > Google Ads Linking. Link your Google Ads account with GA4. Once linked, you can import GA4 conversions into Google Ads and use them to optimize your campaigns. This is especially useful for stores in Mexico and Colombia that invest in Google Shopping or Performance Max campaigns.
Does GA4 work with Shopify Markets for stores selling in multiple LATAM countries? Yes. GA4 can track data from multiple countries from a single property. You can segment data by country using the "Country" dimension in GA4 reports. If you use Shopify Markets with subdirectories or subdomains per country, make sure that the GA4 data stream is configured to track all domains and subdomains of your store.
How do I set up cross-domain tracking in GA4 for Shopify? If your store uses a custom domain (e.g., yourstore.com) but checkout occurs on a different subdomain, you need to set up cross-domain tracking in GA4. Go to Admin > Data Streams > [Your stream] > Configure enhanced measurement > Cross-domain settings and add all relevant domains. Shopify usually handles checkout on the same domain, so this is rarely necessary, but it may be if you use custom subdomains.
Can I use GA4 to track my customers' post-purchase behavior in Shopify? Yes. GA4 tracks user behavior on all pages of your store, including the order confirmation page and customer account pages. You can see if customers who purchased return to your store, what products they view after their first purchase, and how long passes between purchases.
"What gets measured gets improved." — Peter Drucker
Common errors when connecting Shopify with GA4 and how to avoid them
The configuration of Google Analytics 4 in Shopify has several points where merchants make mistakes that compromise data quality. Here are the most frequent ones.
Error 1: Duplicate data due to double installation
As mentioned earlier, having GA4 installed twice (via Google Channel AND via manual code or GTM) duplicates all events. To check for duplicates, use the GA4 real-time report and perform an action in your store: if the same event appears twice simultaneously, you have a double installation. Solution: choose one method and remove the other.
Error 2: Not configuring conversions
Many merchants install GA4 but never mark the purchase event as a conversion. Without this, GA4 does not correctly report sales in conversion reports, and you cannot import conversions into Google Ads. Solution: go to Admin > Events and mark purchase as a conversion.
Error 3: Incorrect time zone and currency
If the time zone of your GA4 property does not match the time zone of your Shopify store, daily sales data will not match between the two platforms. The same goes for currency: if you sell in Mexican pesos (MXN) but GA4 is configured in USD, the reported revenue will be incorrect. Solution: check and adjust the time zone and currency in Admin > Property settings.
Error 4: Not filtering internal traffic
If you and your team frequently visit your store, that traffic contaminates your GA4 data. Solution: create a filter in GA4 to exclude traffic from your internal IPs. Go to Admin > Data Streams > [Your stream] > Define internal traffic and add the IPs of your office or team.
Error 5: Not linking GA4 with Google Search Console
GA4 can integrate with Google Search Console to display organic search data directly in your reports. This linking is especially valuable for stores in LATAM that invest in SEO. Go to Admin > Google Product Links > Search Console Linking to configure it.
Actionable Checklist: Connect and Configure GA4 in Your Shopify Store Correctly
Use this checklist to ensure your Shopify with Google Analytics 4 integration is complete and optimized:
- ✅ Create a GA4 property on analytics.google.com with the correct time zone and currency for your country (Mexico, Argentina, Colombia, etc.).
- ✅ Create a web data stream in GA4 with your Shopify store URL.
- ✅ Choose an installation method: Shopify's Google Channel (recommended) or GTM + manual code.
- ✅ Install the Google & YouTube Channel in Shopify and link your GA4 property.
- ✅ Verify that GA4 is receiving data using the real-time report.
- ✅ Verify that e-commerce events are firing correctly: view_item, add_to_cart, begin_checkout, purchase.
- ✅ Rule out double installation: make sure GA4 is not installed twice.
- ✅ Mark the "purchase" event as a conversion in GA4.
- ✅ Configure the internal traffic filter to exclude visits from your team.
- ✅ Link GA4 with Google Ads if you use paid advertising.
- ✅ Link GA4 with Google Search Console for organic SEO data.
- ✅ Create an exploration funnel in GA4 to visualize the entire checkout process.
- ✅ Set up intelligence alerts in GA4 to detect drops in conversions.
- ✅ Verify that the currency reported in GA4 matches your Shopify store's currency.
- ✅ Schedule a monthly review of your GA4 data to detect anomalies or broken configurations.
Conclusion: Data is your competitive advantage in LATAM
Connecting Shopify with Google Analytics 4 correctly is not a luxury: it's a necessity for any store that wants to grow sustainably in LATAM. Without reliable data, you can't know which products are working, which marketing channels generate real sales, where you lose customers at checkout, or how your buyers behave in Mexico vs. Colombia vs. Argentina.
The good news is that GA4 is free, and integration with Shopify is more accessible than ever thanks to the Google Channel. The challenge lies in configuring it correctly: without duplicates, with well-defined conversions, with the appropriate filters, and with the reports that you really need for your business.
At YoSoyShopify, we have configured GA4 for dozens of stores throughout LATAM, and we know exactly which settings make the difference between having data and having actionable insights. If you want to ensure that your GA4 integration with Shopify is working correctly and leveraging its full potential, we are just a message away.