Quick Answer: Integrating Google Analytics (GA4) with your e-commerce platform requires: connecting GA4 to your store platform (Shopify, WooCommerce, Wix, Squarespace, or custom-built), enabling e-commerce tracking in GA4, configuring the key purchase events (view_item, add_to_cart, begin_checkout, purchase), and verifying that transaction data is flowing correctly. This guide covers the integration process for the most popular platforms and the essential events to track.
Why E-commerce Integration with GA4 Is Different from Standard GA4 Setup
A basic GA4 installation tracks pageviews, sessions, and basic user behavior. E-commerce integration goes further by tracking the full purchase funnel: which products people view, which they add to cart, where they abandon the checkout process, and which purchases complete. Without e-commerce integration, you have website analytics. With it, you have business intelligence that directly improves revenue.
The key distinction in GA4 is the e-commerce events model — a standardized set of event names that map to your purchase funnel and feed into GA4’s built-in e-commerce reports.
Platform-Specific Integration Instructions
Shopify → GA4 Integration
Shopify has built-in GA4 integration through the “Online Store” → “Preferences” settings:
- In Shopify admin, go to Online Store → Preferences
- In the “Google Analytics” section, enter your GA4 Measurement ID (format: G-XXXXXXXX)
- Enable “Use Enhanced Ecommerce” checkbox
- Save settings
This handles standard e-commerce events automatically. For more complete data including server-side purchase confirmation (recommended to prevent data loss from ad blockers or browser issues), use Shopify’s native Google and YouTube app from the Shopify App Store, which implements the GA4 integration with server-side confirmation.
Verify: After setup, place a test order and check GA4 DebugView in real-time to confirm the “purchase” event fires with the correct revenue value.
WooCommerce → GA4 Integration
WooCommerce requires a plugin for GA4 e-commerce tracking. The most reliable options:
- Google Site Kit (official): Free WordPress plugin from Google that handles basic GA4 integration
- Monsterinsights: Paid plugin ($99+/year) with comprehensive e-commerce tracking and easy setup
- Pixel Manager for WooCommerce: Free/paid, handles GA4 + Meta Pixel simultaneously
Whichever plugin you use, ensure e-commerce tracking is explicitly enabled in the plugin settings — standard GA4 connection doesn’t automatically track WooCommerce purchase events.
Wix E-commerce → GA4 Integration
- From your Wix dashboard, go to Settings → Marketing Integrations → Google Analytics
- Enter your GA4 Measurement ID
- Enable “Track e-commerce” in the integration settings
Wix’s native integration tracks basic purchase events. For full funnel tracking (view_item, add_to_cart), Wix’s integration has limitations — you may need to add custom events via Wix Velo (coding required) for complete funnel visibility.
Squarespace → GA4 Integration
- Go to Settings → Developer Tools → External API Keys → Google Analytics
- Enter your Measurement ID
- Squarespace automatically tracks purchase events when Google Commerce is enabled
Custom-Built Stores / Other Platforms
For custom stores or platforms without native integration, implement GA4 e-commerce events manually using the Google Tag Manager approach:
- Install Google Tag Manager on your site
- Create a GA4 Configuration tag in GTM
- Use GTM triggers and data layer variables to capture purchase events
- Your developer pushes e-commerce data to the data layer at each funnel stage
Essential E-commerce Events to Track
GA4 uses a standardized e-commerce event taxonomy. The key events in purchase order:
- view_item_list: User sees a product listing page
- view_item: User views a specific product page
- add_to_cart: User adds a product to cart
- begin_checkout: User starts the checkout process
- add_payment_info: User enters payment details
- purchase: Transaction completes — includes revenue, items, and transaction ID
The purchase event is the most critical. Every other event contributes to funnel analysis, but purchase data is what powers revenue reporting and ROAS calculations for your ad campaigns.
Verifying Your Integration Is Working
- GA4 DebugView: Enable DebugView in GA4 and use the “Preview” mode in GTM (or the GA4 Debugger Chrome extension) to verify events fire in real time
- Real-time reports: Place a test order and check GA4’s Real-time report → Events to confirm the purchase event appears
- E-commerce reports: After 24-48 hours, check GA4’s Monetization → E-commerce purchases report. If transactions appear with correct revenue, your integration is working
- Cross-reference: Compare GA4 transaction count against your store’s order count for the same period — they should be within 5-10% of each other (some variance is normal due to ad blockers)
Frequently Asked Questions
Why are some purchases missing from GA4?
The most common causes: (1) Ad blockers preventing the GA4 tag from firing — server-side tracking can fix this; (2) Users navigating away before the confirmation page loads — ensure your purchase event fires server-side, not just on the “thank you” page; (3) Cross-device journeys where the customer began on mobile and completed on desktop. None of these are fully fixable, but implementing GA4 alongside server-side tracking brings accuracy to 90-95%+.
Do I need GA4 if I’m already using Shopify Analytics?
They serve different purposes. Shopify Analytics shows you sales data within Shopify. GA4 shows you the full customer journey — where customers came from before arriving at your store, what they did on your website before purchasing, and how different marketing channels compare. Both are valuable; GA4 provides the marketing attribution data Shopify Analytics doesn’t have.
More in the Google Analytics 4 Series
- Navigating Ecommerce Growth: Analytics & Continuous Improvement
- Tracking Multiple Websites or Domains in One Google Analytics Account: Your Guide to Ecommerce Growth
- How can I exclude certain internal traffic from being tracked in Google Analytics?
- Mastering Analytics: Understanding Filters in Google Analytics for Data Refinement
Next Steps
- Identify your biggest gap: Review the concepts in this guide and identify which one would have the most immediate impact on your business if you addressed it this week.
- Take one focused action: Choose the single most important takeaway from this guide and implement it before moving on to the next article.
- Measure your baseline: Before making any changes, note your current state — traffic, conversion rate, or whatever metric is most relevant — so you can measure whether your action worked.
- Return in 30 days: Check the specific metrics mentioned in this guide after 30 days of consistent implementation. Progress compounds over time.
- Connect your marketing channels: Use Krystl to see how all your marketing efforts are performing together — not just in isolation.
See what’s actually driving growth in your e-commerce business
Krystl connects your store data, analytics, email, and ads to show you which channels bring your most valuable customers — and where you’re losing revenue. Built for small business owners who want real answers, not dashboards full of noise.
Last Updated: April 2026 | Published by DigitalSMB
Este contenido esta en: