How to Use Google Analytics 4 for Ecommerce: The Complete 2026 Guide
Google Analytics 4 (GA4) is the event-based analytics platform that replaced Universal Analytics and is now the primary way ecommerce brands measure purchase behavior and marketing performance. Unlike UA's session model, GA4 tracks discrete events, giving you visibility into every funnel step from product view to completed transaction. Most brands have GA4 installed but use fewer than a third of the available ecommerce events, meaning budget decisions run on incomplete data.
What GA4 Actually Measures for Ecommerce
GA4 uses a single event called purchase with an items array to capture transaction data. Every other ecommerce metric flows from this structure. If the items array is missing or malformed, your product-level reports are blank even though conversions appear to be tracking.
purchase: The transaction event. Requires transaction_id, value, currency, and items[].
add_to_cart: Fires when a user adds to cart. Required for purchase journey funnel.
view_item: Product detail page view. Powers product performance reports.
begin_checkout: Checkout start. Required to measure checkout abandonment rate.
view_item_list: Category page impressions. Powers shopping behavior analysis.
How to Set Up GA4 Ecommerce Tracking
Connect GA4 to Google Tag Manager
Create a GA4 Configuration tag in GTM fired on All Pages. Use GTM rather than the gtag.js snippet directly, which lets you update tracking without code deploys.
Push dataLayer events from your platform
Shopify: install the GA4 integration from the App Store or use a GTM recipe. WooCommerce: use the official Google Site Kit plugin. Custom platforms: build a dataLayer.push() call on purchase confirmation with transaction_id, value, currency, and the full items array including item_id, item_name, price, and quantity.
Verify in DebugView
In GA4 Admin, open DebugView and complete a test purchase. Confirm the purchase event appears with the correct value and that items[] contains product_id, item_name, price, and quantity for each product.
Enable Google Signals
In GA4 Admin, enable Google Signals under Data Collection. This powers cross-device reporting and enriches the audience builder for Google Ads retargeting.
Extend data retention to 14 months
GA4 defaults to 2-month data retention. Go to Admin > Data Retention and set it to 14 months. Without this, cohort analysis cuts off after two months.
The 5 GA4 Reports That Drive Ecommerce Decisions
1. Ecommerce Purchases Report
Found at Reports > Monetization > Ecommerce Purchases. Shows revenue, quantity, and average order value by item. Use it to identify top and bottom product performers, then cross-reference with ad spend by product to find ROAS outliers.
2. Purchase Journey Report
Found at Reports > Monetization > Purchase Journey. Shows the funnel from session_start to purchase across five stages. Sort by abandonment rate at each stage to identify where to focus CRO work. Checkout abandonment above 75% typically signals a friction issue worth diagnosing.
3. Traffic Acquisition Report
Found at Reports > Acquisition > Traffic Acquisition. Shows sessions, conversions, and revenue by channel. GA4 uses a 30-day lookback by default. Set a custom date range and compare periods to measure channel contribution shifts after campaign changes.
4. Funnel Exploration
Found at Explore > Funnel Exploration. Build a custom funnel using any sequence of events. The most useful ecommerce funnel: view_item > add_to_cart > begin_checkout > purchase. Apply a segment to compare new vs. returning users to spot loyalty patterns.
5. Cohort Analysis
Found at Explore > Cohort Exploration. Group users by acquisition week and track retention and revenue over time. Use it to measure whether customers acquired from a specific campaign are retained at higher rates than organic cohorts.
GA4 Attribution Models: Which One to Use
Attribution determines which touchpoints get credit for a conversion. GA4 offers four models. For most ecommerce brands, Data-Driven Attribution is the right choice once you have sufficient volume.
| Model | How credit is assigned | Best for |
|---|---|---|
| Last Click | 100% credit to the last non-direct click | Simple reporting, new accounts |
| First Click | 100% credit to the first touchpoint | Measuring top-of-funnel channel impact |
| Linear | Equal credit across all touchpoints | Understanding full customer journey |
| Data-Driven | ML-distributed credit based on actual path analysis | Accounts with 400+ conversions/month |
Data-Driven Attribution uses Google's ML to assign fractional credit based on the paths of converting vs. non-converting users. In our experience across DTC accounts, switching from Last Click to DDA typically surfaces 15-25% more attributed conversions in channels like branded search and email, which appear undervalued in last-click reporting.
Set attribution in GA4 Admin > Attribution Settings. Changing the attribution model is retroactive in Explore reports but not in standard Monetization reports until data reprocesses.
Using GA4 with Paid Media Campaigns
Connecting GA4 to Google Ads
Link GA4 to Google Ads in GA4 Admin > Google Ads Links. Once linked, GA4 conversion events can be imported as Google Ads conversions. Use GA4 as the primary conversion source rather than the Google Ads pixel to avoid double-counting across Smart campaigns. Import the purchase event and set value to the actual transaction value, then disable the old Google Ads tag if both are running.
Meta and GA4
GA4 does not receive Meta click data natively. The Meta Pixel fires independently and reports in Meta Ads Manager. Use UTM parameters on all Meta ad URLs (utm_source=facebook, utm_medium=paid_social) to get session-level traffic data in GA4's Traffic Acquisition report. Do not try to reconcile Meta-reported conversions with GA4 conversions; they use different attribution windows.
GA4 Ecommerce Limitations You Need to Know
GA4 samples large Explore reports when the dataset exceeds a threshold. Watch for the green/yellow/red sampling indicator in Explore. If reports are sampled, break the date range into shorter windows or use BigQuery for unsampled queries.
Frequently Asked Questions About GA4 Ecommerce
Why does GA4 show different revenue than Shopify?
GA4 misses purchases when users have ad blockers or when iOS Safari blocks the tracking script. The gap is typically 20-30% and is expected. Use Shopify for finance reporting and GA4 for relative channel performance trends.
What is the difference between GA4 and Universal Analytics for ecommerce?
Universal Analytics tracked sessions and used hit-based ecommerce tracking. GA4 tracks events and users. GA4 requires a separate ecommerce event implementation using the items[] array, the product-level data structure is more flexible, and attribution is more advanced with Data-Driven Attribution built in.
How do I fix missing product data in GA4 ecommerce reports?
Missing product data almost always means the items[] array is empty or malformed in the purchase event. Open DebugView, complete a test purchase, and inspect the purchase event parameters. The items array should contain at least item_id, item_name, price, and quantity for each product.
How many conversions do I need for Data-Driven Attribution?
Google recommends at least 400 conversions per month within the 30-day lookback window for Data-Driven Attribution to be statistically reliable. Below that threshold, use Last Click to avoid noisy attribution.
Can I use GA4 ecommerce data to build Google Ads audiences?
Yes. After linking GA4 to Google Ads, GA4 audiences including purchasers, cart abandoners, and high-LTV segments become available in Google Ads for remarketing and exclusion. This is one of the most underused integrations in ecommerce accounts.
GA4 giving you incomplete data?
Most ecommerce brands we audit have GA4 installed but critical tracking gaps: missing items arrays, broken purchase events, or no BigQuery export for historical data. We audit GA4 setups and fix the data layer before it costs you in ad spend decisions.
Get a GA4 AuditLaunch into Success
Tell us a bit about yourself and your business. We are just one message away from the perfect partnership!