Most guides to GA4 setup for Shopify and WooCommerce walk you through connecting a property and stop there, as if that’s the whole job. It isn’t. The real question for a Pakistani store owner is narrower: once GA4 is connected, which events actually fire, what’s missing from the data Shopify or WooCommerce sends by default, and how do you confirm any of it is working before you start making decisions off the reports.
This guide covers both platforms honestly, including a few changes from 2026 that most older guides still don’t reflect.
What GA4 tracks on Shopify out of the box
Shopify’s native integration, through the Google & YouTube sales channel, sends the standard ecommerce event set automatically: page_view, view_item, add_to_cart, begin_checkout, add_payment_info and purchase. No code, no theme edits. You create the GA4 property, install the channel, connect your Google account, and Shopify handles the rest.
As of July 2026, the purchase event specifically moved to a server-to-server connection: Shopify sends the completed transaction directly from its servers to GA4, rather than relying only on the customer’s browser. Earlier funnel events like view_item and add_to_cart still fire from the browser. GA4 deduplicates the two using a shared transaction_id, so a purchase isn’t double-counted if both the browser and server report it.
Then, on 17 August 2026, Google added four more events to the native integration: view_item_list, remove_from_cart, view_cart and add_shipping_info. If you built custom Google Tag Manager tags for any of these before that date, you now have the same interaction being recorded twice, once from your own GTM setup and once from Shopify’s native feed. Worth checking your GTM container for exactly this overlap if you set up tracking before mid-2026.
Setting up GA4 on Shopify, step by step
- In Google Analytics, create a new GA4 property matching your store’s currency and time zone, then create a Web data stream for your domain. Copy the Measurement ID (format G-XXXXXXXXXX).
- In Shopify admin, go to Sales Channels and add Google and YouTube.
- Connect your Google account and select the GA4 property you just created.
- Save. Shopify inserts the tracking tag and starts sending the standard event set automatically, nothing to paste into your theme code.
What’s missing from the native setup, worth knowing before you assume the data is complete: brand, category and variant details aren’t always populated on product and purchase events, and payment_type isn’t included in checkout events. If your reporting depends on knowing which payment method customers use most, or you want category-level revenue breakdowns, you’ll need to add that through Google Tag Manager or a dedicated tracking app rather than the native channel alone.
Setting up GA4 on WooCommerce
WooCommerce doesn’t have one single native path the way Shopify does, so the plugin you pick matters more here. The reliable options as of 2026:
- Site Kit by Google. Google’s own free plugin, connects GA4, Search Console and other Google tools from one dashboard. Good general starting point, but ecommerce-specific event tracking is more limited than a WooCommerce-dedicated plugin.
- Google Listing & Ads. Google’s official WooCommerce-specific plugin, supports native ecommerce event tracking without extra configuration.
- Conversios (formerly sold under a different name, now actively maintained with free and Pro tiers). Runs a no-code setup wizard connecting GA4, Google Ads, Meta Pixel and more in about 15 minutes; the free tier covers GA4 ecommerce tracking.
- MonsterInsights. Premium, brings GA4 reports directly into the WordPress dashboard alongside WooCommerce-specific metrics.
- GTM4WP, if you’re already running Google Tag Manager and want GA4 events configured through GTM rather than a dedicated plugin.
Setup, using any of these:
- Create your GA4 property and data stream as above.
- Install the plugin, enter your Measurement ID.
- In the plugin settings (commonly under WooCommerce → Settings → Integration, or the plugin’s own menu), enable enhanced ecommerce tracking and confirm the core events are switched on: view_item, add_to_cart, begin_checkout, purchase and refund.
- Save and move to verification before trusting any of the reports.
How to actually verify it’s working
Don’t treat “no error shown” as confirmation. Two checks, in order:
- GA4 DebugView (Admin → DebugView). This shows events in real time with full event-level and item-level parameters, which is what you actually need to confirm an event fired correctly, not just that something fired. Trigger a test purchase or add-to-cart on your own site and watch it appear here.
- GA4 Realtime reports as a secondary check. Faster to glance at, but doesn’t show the same parameter-level detail as DebugView, and standard (non-real-time) reports can take 24 to 48 hours to populate fully, so don’t judge a fresh setup against the main reports on day one.
If Debug mode doesn’t show your test event at all, the tag likely isn’t installed correctly or you have the wrong Measurement ID connected. If the event shows up but with missing or wrong data (zero revenue, no currency, missing product details), the integration is firing but the data layer itself has a problem, which is a different fix.
Common GA4 setup mistakes on Shopify and WooCommerce
- Duplicate tracking. Running Shopify’s native integration and a separate GTM container both sending GA4 events is the single most common cause of inflated numbers. Pick one source per event type, not both.
- Missing comma in a data layer object. Sounds minor, but Google’s own documentation flags this specifically: GA4 ignores an ecommerce event with a syntax error in its parameters, and silently ignores every event that comes after it in the same push too. One typo can quietly break your entire event chain.
- Duplicate transaction IDs. If a purchase event fires more than once with the same transaction_id under different conditions than GA4’s own deduplication expects, you can end up undercounting instead of overcounting.
- Wrong event name casing. GA4 event names are case-sensitive. “purchase” and “Purchase” are not the same event to GA4, and a mismatched name means the event simply doesn’t map to GA4’s standard ecommerce reports even though it technically fired.
- Checking the wrong GA4 property. If your store has ever been rebuilt, migrated, or had a second property created during testing, it’s worth confirming in Shopify’s Online Store → Preferences, or your WooCommerce plugin settings, that only one correct Measurement ID is actually connected.
- Judging a new setup too early. Non-realtime GA4 reports lag by a day or two. A quiet first 24 hours in the main reports doesn’t mean tracking is broken, check DebugView instead before concluding anything is wrong.
When to bring in a developer
A straightforward Shopify or WooCommerce store, run through the native integration or one of the official plugins above, is realistically a same-day setup for a store owner willing to follow the steps carefully. Where it’s worth paying for help: you need custom events beyond the standard set (lead form submissions, WhatsApp click tracking, a request-a-quote action), you’re running Google Tag Manager alongside a native integration and need to resolve overlapping tags cleanly, or DebugView keeps showing data that doesn’t match what you expect and the cause isn’t obvious.
Clean ecommerce tracking is also what makes Facebook Pixel and Conversions API data trustworthy, since both rely on the same underlying purchase and event data firing correctly, so it’s worth getting this right before troubleshooting ad platform numbers separately. If your Shopify store’s broader technical setup needs attention beyond analytics, our guide to Shopify SEO for Pakistani stores covers the rest. For a full rebuild or custom tracking implementation, that’s part of our web development services.
Frequently asked questions about GA4 setup for Shopify and WooCommerce
Q1. How do I integrate GA4 with my Shopify store?
Create a GA4 property and Web data stream, then in Shopify admin go to Sales Channels, add Google and YouTube, connect your Google account and select the property. Shopify inserts the tracking tag and sends standard ecommerce events automatically, no code required.
Q2. What is the easiest way to set up GA4 tracking for WooCommerce?
Install an official plugin such as Google Listing & Ads or Site Kit by Google, enter your GA4 Measurement ID, and enable enhanced ecommerce tracking in the plugin settings. No-code setup wizards in plugins like Conversios can connect GA4 alongside other tracking tools in one pass.
Q3. How do I verify GA4 data collection from Shopify or WooCommerce sales?
Use GA4’s DebugView (Admin → DebugView) to see events firing in real time with full parameter detail. Trigger a test purchase and confirm the event appears with correct price, currency and product data, rather than relying on standard reports, which can take 24 to 48 hours to populate.
Q4. What are common mistakes when setting up GA4 on WooCommerce or Shopify?
Running two tracking sources for the same events (native integration plus a separate GTM container), syntax errors like a missing comma in the data layer, mismatched event name casing, and checking the wrong GA4 property after a site migration are the most frequent causes of broken or inflated data.
Q5. Do I need Google Tag Manager, or is the native GA4 integration enough?
For standard ecommerce events, Shopify’s native integration or an official WooCommerce plugin is enough for most stores. GTM becomes worth adding when you need custom events outside the standard set, or more control over exactly what data each event sends.
Q6. Why is my GA4 showing zero revenue or missing purchase events?
Usually one of: the purchase event isn’t firing at all (check DebugView to confirm), it’s firing with missing price or currency parameters, or you’re looking at a different GA4 property than the one actually connected to your store. Confirm the connected Measurement ID matches the property you’re viewing.
Q7. Are there free tools to add GA4 to WooCommerce?
Yes. Site Kit by Google and Google Listing & Ads are both free, official Google plugins. Conversios and several other WooCommerce tracking plugins also offer free tiers that cover standard GA4 ecommerce tracking, with paid tiers adding Google Ads and Meta integration.
Q8. How is GA4 different from the old Universal Analytics setup?
Universal Analytics was sunset in 2023 and required manually enabling Enhanced Ecommerce as a separate setting. GA4 treats ecommerce actions as standard events by default, no separate toggle, and unifies web and app data in a single property rather than tracking them separately.
