Google Analytics 4 (GA4) e-commerce setup is the fundamental prerequisite for measuring your online store's performance accurately and making data-driven decisions. With the retirement of Universal Analytics (UA), GA4 has become the centre of the digital analytics ecosystem. In this guide, you will find everything you need to set up GA4 for your e-commerce site from scratch, track e-commerce events and turn the data collected into meaningful reports.
Key Differences Between GA4 and Universal Analytics
GA4 is a next-generation analytics platform that departs radically from UA. Understanding these differences will help you translate your old UA habits correctly. The core logic of GA4 is the shift from session-centric measurement to event-centric measurement. Whereas in UA every interaction was reported as a 'hit', in GA4 everything is recorded as an event; page views, scrolls, form submissions and e-commerce interactions are all events. This approach makes it possible to track user behaviour in a far more flexible and detailed way.
- Event-Centric Measurement: In GA4, every user interaction is defined as an event. Automatically collected events (page_view, scroll, click), enhanced measurement and custom events form a three-tier structure.
- Session vs User Metrics: While session-based metrics took centre stage in UA, GA4 tracks behaviour across the user lifecycle (cross-device, cross-session). This provides more accurate user journey analysis.
- Reporting Interface: GA4's reporting interface differs from UA; some reports are now found in different menus or in the Explore section. It requires a learning curve, but the flexibility is far greater.
E-Commerce Tracking Setup
E-commerce tracking in GA4 is based on the Enhanced E-commerce structure and ensures complete reporting of critical e-commerce events such as product views, add to cart, checkout steps and purchases. Setup via Google Tag Manager (GTM) is recommended; this method offers both easier management and the ability to make updates without code changes.
Core E-Commerce Events
The core events that must be tracked in a GA4 e-commerce setup are: view_item_list (product list view), view_item (product detail page view), add_to_cart (add to cart), begin_checkout (checkout initiation), add_payment_info (payment information added) and purchase (purchase completed). The purchase event should be sent together with parameters such as transaction ID, revenue amount and product details (item_id, item_name, price, quantity, item_category). Test that these events work completely and correctly in GA4 DebugView and GTM Preview mode; collecting faulty data is more damaging than making a wrong decision.
Custom Events and Conversion Definition
Alongside the standard e-commerce events, you can also create events specific to your business goals: micro-conversions such as watching a product review video, opening the size chart, adding a product to favourites or signing up for a back-in-stock notification can be considered in this scope. To mark an event as a conversion in GA4, go to the 'Events' section in the Admin panel and enable the 'Mark as conversion' option next to the relevant event. The purchase event is not marked as a conversion by default; you need to activate this manually.
Conversion Funnels and Audience Segmentation
GA4's Funnel Exploration feature visualises at which step users drop out of the purchase journey. An e-commerce funnel typically consists of the following steps: home page → category page → product page → cart → checkout → thank-you page. The drop-off rate between each step reveals the problem points that need optimising. Audience segmentation allows you to create custom audiences that you define in GA4. You can build segments such as 'users who added a product to the cart but did not purchase', 'those who ordered 2+ times in the last 30 days' or 'new visitors who viewed a specific category', and use these audiences as remarketing lists for Google Ads campaigns.
Choosing an Attribution Model
The attribution model determines which marketing channel or touchpoint a conversion is attributed to. By default, GA4 uses the 'Data-Driven Attribution' (DDA) model; this model uses machine learning to distribute credit across all touchpoints that contributed to the conversion. This change is significant for those accustomed to the Last Click model in UA; DDA reflects channel contributions more fairly, but interpreting the results can become more complex. Examine which channels, campaigns and keywords contribute most to conversions in the Attribution reports in the Advertising section, and optimise your budget allocation accordingly.
- Data-Driven Attribution: GA4's default model; it calculates each touchpoint's contribution using machine learning. Requires at least 400 conversions/month.
- Last Click: Gives all the credit to the last click before the conversion. Offers simple clarity but underestimates upper-funnel channels.
- First Click: Gives credit to the first touchpoint; can be used to evaluate channels that create brand awareness.
Looker Studio Reporting and BigQuery Integration
To present GA4 data effectively, building customised reports with Looker Studio (formerly Google Data Studio) is a powerful tool for both your own team and your clients. Connecting GA4 to Looker Studio is free and can be completed in a few minutes. Visualise e-commerce reports such as sales performance, traffic sources, conversion funnel and product-level revenue in interactive dashboards. BigQuery integration, meanwhile, is one of GA4's most powerful advanced features. By exporting GA4 data to Google BigQuery, you can write SQL queries at raw data level, build custom analytics models and carry out analyses of a depth not possible in the GA4 interface. This method, which also overcomes the data sampling problem for high-volume e-commerce sites, provides real-time and complete data access.
Server-Side Tagging
Traditional client-side tagging (sending data from the user's browser) leads to data loss because of ad blockers, ITP (Intelligent Tracking Prevention) and browser restrictions. Server-Side Tagging (SST) stands out as the solution to this problem: user data is first sent to your own server and then forwarded to Google Analytics and other platforms. This approach both improves data quality and provides a more controlled data flow in terms of GDPR and KVKK. A GTM Server-Side container can be set up on Google Cloud Platform or alternative cloud providers. Among the SST events recommended for e-commerce sites, purchase and add_to_cart are the highest priority.
Frequently Asked Questions
E-commerce revenue appears to be missing in GA4; what could be the reason?
Missing revenue data in GA4 most often stems from the following causes: the purchase event not firing in certain browsers or on certain devices, a duplicate event problem, data lost because of ad blockers or ITP, and an error in the GTM trigger. Test the event flow in real time with GA4 DebugView and regularly compare the GA4 revenue report against the data from your actual order system.
What does the difference between session and user mean in GA4?
A session is the series of interactions a user carries out within a defined period (30 minutes of inactivity by default). A user, in GA4, refers to a unique person identified on a device basis (or cross-device if User-ID or Google Signals is active). GA4 prioritises user-based reporting for lifetime value (LTV) and retention analyses; for e-commerce sites, this distinction is critical for understanding repeat customer behaviour.
How is GA4 set up on Shopify and WooCommerce?
For Shopify, GA4 can be set up via the Google & YouTube channel app or through a GTM Shopify integration. On WooCommerce, the WooCommerce Google Analytics integration plugin or manual event setup via GTM is preferred. On both platforms, it is essential to test that the purchase event fires correctly on the order confirmation (thank-you) page.
Is GA4 BigQuery integration paid?
Data export from GA4 to BigQuery is free for standard GA4 accounts. However, Google Cloud costs may arise for data stored and queried in BigQuery. For small to medium-sized e-commerce sites these costs usually remain low; for large data volumes, it is advisable to calculate BigQuery pricing in advance.
Conclusion
When done correctly, a Google Analytics 4 (GA4) e-commerce setup creates a powerful infrastructure that supports your business's digital growth with data. Setting up every layer correctly, from event tracking to attribution analysis, and from Looker Studio reporting to BigQuery integration, makes it possible for you to make data-driven decisions. Contact Toserof Tech. for SEO and digital marketing solutions.


