Tracking

How to set up GA4 ecommerce tracking on WooCommerce

By Wasika Rahman, founder of Wasika Studio · Updated 3 December 2026 · 2 min read

Short answer

To set up GA4 ecommerce tracking on WooCommerce, send view_item, add_to_cart, begin_checkout and purchase events with value, currency and items through one tool. Copy your Google tag ID (G-…) from GA4 Admin → Data streams, add it to a tracking plugin or Tag Manager (not both), connect consent, and check the events in GA4 DebugView.

The events GA4 needs from a shop

Shop actionGA4 eventMain details sent
Someone opens a productview_itemProduct ID, name, price, currency
Someone adds to cartadd_to_cartProduct, quantity, value
Checkout startsbegin_checkoutCart items and value
An order is placedpurchaseOrder number (transaction_id), value, currency, items

GA4's ecommerce reports (Monetization) only fill in when these event names and fields are right.

What you need

  • A WooCommerce shop and a Google Analytics 4 property
  • Your Google tag ID (it starts with G-)
  • For Google Ads: the purchase conversion's send_to value (it looks like AW-123456789/AbCdEf)
  • A cookie banner, if you have visitors in places that require consent
  • One route for each Google tool: a plugin *or* Tag Manager, not both

Step 1: find your Google tag ID

  1. In Google Analytics, open Admin → Data streams.
  2. Choose your website stream.
  3. Copy the measurement ID (G-…).

Step 2: (optional) find your Google Ads conversion

  1. In Google Ads, open Goals → Conversions.
  2. Choose your purchase conversion action and open Tag setup.
  3. Copy the send_to value.

Step 3: add them to your shop

With TagBuni, a free plugin on WordPress.org:

  1. Install it from Plugins → Add New Plugin (search "TagBuni") and activate it.
  2. Open TagBuni → Platforms, choose how consent works, then open Google Analytics 4 / Google Ads.
  3. Tick Turn on and paste the Google tag ID, plus the Google Ads send_to value if you use it.
  4. Click Save.

TagBuni loads the Google tag only after consent and sets Consent Mode v2 signals from the visitor's choice. GA4 events need "statistics" consent; Google Ads conversions need "marketing" consent.

Already using Google Tag Manager? Turn on TagBuni's Google Tag Manager card instead: it pushes the same ecommerce events to your container's dataLayer. Don't also turn on the Google tag card, or purchases are counted twice.

Step 4: check it works

  1. In GA4, open Admin → DebugView or Reports → Realtime.
  2. In a private window, accept cookies, view a product, add it to cart and place a test order.
  3. Check that view_item, add_to_cart, begin_checkout and purchase appear, with the right value and currency.
  4. After 24–48 hours, check Reports → Monetization → Ecommerce purchases.

Common problems

SymptomLikely cause
Purchases about doubleGA4 is sent by both a plugin and Tag Manager, or by two plugins
Revenue is 0The purchase event has no value or currency
Nothing in RealtimeConsent declined, you are logged in as an administrator, or a cache serves an old page
Google Ads shows no conversionsWrong send_to value, or marketing consent not given

GA4 and your shop will never match exactly: declined consent, blockers and late payments all cause small gaps.

Common questions

Does WooCommerce send ecommerce events to GA4 by itself?

No. You need a plugin or Tag Manager setup that sends view_item, add_to_cart, begin_checkout and purchase with the right fields.

Why is my GA4 revenue doubled?

Usually GA4 is sent by two routes, for example a plugin and Tag Manager. Keep one.

Can one plugin send GA4 and Google Ads conversions?

Yes. With TagBuni you add the Google tag ID and, optionally, the Google Ads send_to value in the same card; both use Consent Mode v2.

How long until GA4 shows ecommerce data?

Realtime and DebugView show events within minutes; the standard Monetization reports can take 24–48 hours.

Tools that help

  • TagBuni

    WordPress plugin

    FreeAvailable

    Meta Pixel and Conversions API, GA4, Google Ads, TikTok, Pinterest and more, with purchase values taken from the WooCommerce order.

    View details

Want it done for you?

More guides

Have a project in mind?

Tell us your goal and we will reply with a written plan and quote.