GA4 (Google Analytics 4) ecommerce tracking is a measurement configuration that captures purchase pings, product impressions, and checkout funnel steps inside GA4's event-based data model, giving ecommerce operators a unified view of revenue attribution across web and app surfaces. See also: Surfer SEO. See also: realtime CRM analytics. See also: traditional analytics. See also: Looker alternative. The BI platform comparison of Tableau, Power BI, and Looker covers where exported GA4 data lands downstream.
Universal Analytics (UA) collected data as typed hits: pageviews, events, and transactions were separate constructs with separate processing pipelines. GA4 collapses that hierarchy. Every user interaction, from a product list scroll to a completed checkout, becomes a named event object carrying parameters. That architectural difference means a UA ecommerce implementation cannot be migrated by changing a tracking ID. The tag configuration, the event schema, and the push scaffolding all require a clean rebuild.
The sections below walk through that rebuild in five ordered steps, then cover the server-side tagging architecture that preserves hit fidelity under ad-blocker and ITP (Intelligent Tracking Prevention) constraints.
How GA4 Ecommerce Tracking Differs From Universal Analytics
Ecommerce reports in GA4 surface failures in ways that are not always obvious. Zero revenue does not always mean the purchase ping is missing; it often means a required parameter is null. The five failure patterns below cover the errors that appear most often in production implementations. Teams building broader data export pipelines from GA4 into reporting tools should also review Excel and Power BI integration guide for downstream data modeling considerations.
- Zero revenue in Monetization reports. Cause: the
purchaseping fires buttransaction_idorvalueis missing or sent asnull. GA4 records the event but cannot populate revenue metrics without a numeric value. Fix: open GTM Preview mode, locate the transaction event in the tag output, and confirm the ecommerce object contains a non-nullvalueand a non-emptytransaction_idstring before the tag fires. - Duplicate transactions in the Monetization report. Cause: the thank-you page is cached or revisited, and the
purchaseping fires again because the GTM trigger is set to All Pages or DOM Ready instead of a Custom Event matching thepurchasedataLayer event name. Fix: change the trigger to a Custom Event that fires only wheneventequalspurchasein the push payload. Additionally, deduplicate ontransaction_idserver-side before pushing so that confirmation page reloads do not re-push the event. - Item-level data missing from product reports. Cause: the
itemsarray is pushed as empty, or item objects use non-standard parameter keys (for example,skuinstead ofitem_id, ornameinstead ofitem_name). GA4 does not infer parameter mappings; non-standard keys are silently dropped. Fix: validate every item object against the ecommerce event schema and confirmitem_id,item_name, andpriceare present in each entry. Use Debug View panel to inspect the items array parameter directly. - GA4 and Google Ads conversion counts diverge. Cause: GA4 counts conversions per session while Google Ads counts per ad click. Attribution windows differ by default (GA4 uses 30-day sessions; Ads uses last-click with a 30-day or 7-day window depending on the conversion action setting). Fix: align conversion windows in both platforms and confirm the linked Google Ads conversion action imports from GA4 using the All conversions model. Reviewing conversion tracking discrepancies requires access to both platforms simultaneously.
- Server-side container drops hits. Cause: the
transport_urlin the client-side configuration tag points to the wrong subdomain, or the CNAME record has not propagated. Fix: runcurl -v https://metrics.yourstore.com/g/collectdirectly against the server container endpoint to confirm a 200 response before redirecting client-side traffic. If the endpoint returns a certificate error, the TLS certificate for the subdomain has not been provisioned; check the Cloud Run service configuration and rerun the certificate request.
Further reading
- GA4 Measurement Protocol , canonical event parameter definitions and hit validation reference
- Google Tag Manager server-side tagging documentation , container provisioning, client templates, and first-party subdomain configuration
- W3C Beacon API specification , browser-level request handling that governs why client-side analytics hits are blockable
- ecommerce setup guide , Google Analytics Help Center reference for property-level ecommerce configuration
- Affordable CRM Software for Small Businesses: HubSpot, Zoho, Salesforce Compared
- Ahrefs vs Semrush for Keyword Analysis: A Direct Comparison
- Excel and Power BI Integration: Step-by-Step Connection Guide
For deploying server-side tag delivery containers, see AWS CloudFront for tag delivery.









