
This guide covers GA4 ecommerce tracking end to end: the GA4 ecommerce events Google recommends, the data layer, setup with Google Tag Manager, options for WooCommerce, PrestaShop and Shopify, testing, consent and reports. A quick audit tells you whether your current tracking is reliable.
At a glance
Google Analytics 4 is Google’s analytics tool. It records events (page views, clicks, purchases) and turns them into reports: traffic, journeys, revenue by product or channel.
Google Tag Manager is a tag manager: it lets you install and control measurement tags (GA4, Google Ads, Meta…) without editing the site code each time. For ecommerce, it reads the information the store exposes and sends it to GA4 at the right moment.
GA4 measures ecommerce with events whose names and parameters are defined by Google. Each event carries an items array describing the products involved (ID, name, price, quantity, brand, category…). According to Google’s documentation, the array can hold up to 200 elements, and each item needs at least an item_id or an item_name.
| GA4 event | When to send it | Key parameters |
|---|---|---|
view_item_list |
A product list is shown (category, search) | item_list_name, items |
select_item |
A product is clicked in a list | item_list_name, items |
view_item |
A product page is viewed | currency, value, items |
add_to_cart |
Item added to cart | currency, value, items |
remove_from_cart |
Item removed from cart | currency, value, items |
view_cart |
Cart viewed | currency, value, items |
begin_checkout |
Checkout started | currency, value, coupon, items |
add_shipping_info |
Shipping method chosen | shipping_tier, items |
add_payment_info |
Payment method chosen | payment_type, items |
purchase |
Order confirmed | transaction_id, value, currency, tax, shipping, items |
refund |
Refund issued | transaction_id, value, currency |
The store must publish ecommerce information in the data layer, a JavaScript object read by Google Tag Manager. Simplified example for an add to cart:
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: "add_to_cart",
ecommerce: {
currency: "USD",
value: 49.90,
items: [{ item_id: "SKU-123", item_name: "Desk lamp", price: 49.90, quantity: 1 }]
}
});
The first line clears the previous ecommerce object, so an event does not inherit the products of the one before. The exact code depends on your platform: with WooCommerce, PrestaShop or Shopify, a plugin can generate it for you.

Several plugins generate the WooCommerce ecommerce data layer and make sending to GA4 and Google Tag Manager easier. Check that they cover every event (including checkout) and do not duplicate a GA4 tag already installed elsewhere.
PrestaShop offers official and third-party modules for Google Analytics 4. Check the module version, its compatibility with your PrestaShop version and that the purchase event fires on the confirmation page, often the most fragile. See also our guide on how to install PrestaShop.
Shopify sends ecommerce events to GA4 through its Google integration and supports custom tracking through pixels. Since Shopify manages checkout, the method differs from a classic site: follow the platform documentation rather than a homemade data layer.
Are your campaigns built on reliable conversions? See our PPC management services
Test ecommerce tracking like a checkout: place a test order yourself, from the product list to the confirmation.
transaction_id exists precisely to prevent duplicates.In Europe, GA4 ecommerce tracking must respect visitor consent. Google Consent Mode v2 passes the visitor’s choice to tags: if the visitor declines, GA4 receives limited cookieless signals used for modeling. It is required to keep using Google’s advertising features in Europe. The cookie banner remains mandatory. To recover part of the data lost in the browser, server side tagging is the next step.

Once data flows in, GA4’s “Monetization” section reports on purchases, top-selling items, the purchase journey and revenue by channel. Explorations go further: custom conversion funnels, cart abandonment by step, device comparisons. To pick the right metrics, see our articles on ecommerce KPIs and ecommerce conversion rate.
Reliable GA4 ecommerce tracking rests on three things: events that follow Google’s schema, a clean data layer and regular tests against real sales. It underpins every decision that follows, from ad budgets to which products you promote. Our advice: start by making purchase and add_to_cart reliable, then complete the rest of the journey.
GA4 is the analytics tool that stores data and produces reports. Google Tag Manager installs and fires tags, including the GA4 tag, without editing the site code. For ecommerce, GTM reads the store’s data and sends it to GA4.
At minimum view_item, add_to_cart, begin_checkout and purchase, which cover the main journey. Add view_item_list, select_item, view_cart, add_shipping_info, add_payment_info and refund for a full funnel analysis. These are Google’s recommended names and must be used exactly.
It is a JavaScript object in which the store publishes product and order information at each step. Google Tag Manager reads it and forwards it to GA4. It is generated by the store developer or a plugin.
Place a test order through the full journey and check each event in Tag Manager preview and GA4 DebugView. Then compare GA4 orders and revenue with the store back office over a week.
It is required in Europe to keep using Google’s advertising features, such as remarketing and Google Ads conversion measurement. It passes the visitor’s choice to tags. It does not replace the cookie banner, which remains mandatory.
Yes. Shopify has a Google integration, and WooCommerce and PrestaShop have plugins that send events to GA4. Google Tag Manager remains useful to keep control of tags, add Google Ads or Meta and precisely manage the data sent.
EXCELLENT Based on 22 reviews Posted on Google pierre lenfantTrustindex verifies that the original source of the review is Google. Aurone is a web agency like no other! Very responsive, highly flexible in the way they work and always at the cutting edge of technology: you can count on real professionals for all your web projects!Posted on Google Sami Yassine TurkiTrustindex verifies that the original source of the review is Google. As Secretary General of the Lina Ben Mhenni association, it was a pleasure to work with the AURONE agency, which developed our website with great professionalism.Posted on Google Gwladys LavergneTrustindex verifies that the original source of the review is Google. Responsive, attentive and highly skilled: we are delighted to work with Aurone, who meet our expectations perfectly, both in graphic design and in technical expertise. I highly recommend their support!Posted on Google Perrine AmalTrustindex verifies that the original source of the review is Google. Aurone is a human, responsive and efficient company. The work was done quickly and promptly. I highly recommend them and hope to continue this collaboration in the future.Posted on Google Stephanie WillmanTrustindex verifies that the original source of the review is Google. We have been working with Aurone since 2016 and are delighted. We first called on their services for a project in Tunisia, and the quality of their work means we now rely on Aurone for services in other countries too. The team is dynamic, creative, responsive and enthusiastic. They have always understood our needs for our diverse and complex web presences, and do their best to meet them. Web platforms, training workshops on the platforms, video tutorials and graphic design for various products are just some of the excellent services Aurone provides. The technical quality of their web services is top-notch, and we always get good advice, both technical and creative. We highly recommend them.Posted on Google Raphaël GianassoTrustindex verifies that the original source of the review is Google. For your e-commerce and digital marketing projects, the Aurone team is attentive, experienced, available and responsive. A team you can count on, for whom customer satisfaction comes first.Posted on Google Samuel DechometsTrustindex verifies that the original source of the review is Google. At Aurone I found everything you can expect from a good web agency: quality, responsiveness, flexibility, relevance... Well done and thank you!Posted on Google Karim DjebbarTrustindex verifies that the original source of the review is Google. Our whole network worked with the Aurone agency for several years. A few adjustments were needed at the start of our partnership back then, but quality quickly followed.
The teams worked very professionally, adapting to the requirements of the French clients we soon put them in touch with.
A great deal of agility from its founder.
Thank you for these great years!
27 Avenue Taieb Mhiri, Immeuble Yasmina
2080 Ariana, Tunis, Tunisia
Made with in Tunis | Copyright © 2007-2026 Aurone | Legal notice | Privacy policy | Shop