Home › Platforms › GA4

GA4 for WordPress and WooCommerce

GA4 reports you can trust: accepted leads, paid orders, and refunds sent from your server.

Tracking Nexus is a WordPress plugin that sends Google Analytics 4 your accepted form leads as generate_lead and the WooCommerce shopping journey under GA4's own ecommerce names, with values and items, once the visitor allows analytics. Refunds, and purchases if you choose, go from your server.

Paste a measurement ID (G-…), and an API secret for refunds. It works alongside Site Kit or Tag Manager.

Key events and revenue you can report on

Install the Google tag and Google Analytics 4 tracks your website traffic: page views, plus scrolls, outbound clicks, site search and file downloads through its enhanced measurement.

It can see a submit, but not whether your form plugin accepted it, and it knows nothing about a WooCommerce order unless something sends it. Tracking Nexus fills that gap with the events a business site reports on: leads, the shopping journey, purchases and refunds.

The GA4 events Tracking Nexus sends

Which GA4 events should a WooCommerce store send? The ecommerce journey under GA4's recommended names, with value and items on each, plus purchase and refund. Tracking Nexus sends these:

  • A product page is viewed view_item
  • A shop or category page is viewed view_item_list
  • A product is added to or removed from the cart add_to_cart remove_from_cart
  • The cart is viewed view_cart
  • Checkout starts begin_checkout
  • A shipping method is chosen add_shipping_info
  • A payment method is chosen add_payment_info
  • A WooCommerce order is paid purchase
  • A paid order is refunded refund (from your server)
  • Your form plugin accepts a submission generate_lead
  • A visitor creates an account or logs in sign_up login
  • Someone searches your site search

Engagement events use custom names: contact (phone, email and messaging clicks), scroll_depth, time_on_page, form_start, file_download and outbound_click. On a new site, search, file_download, outbound_click and form_start start switched off for GA4, because enhanced measurement already records them and you'd count each one twice. Every event has its own switch.

Form leads as GA4 key events

Each submission your form plugin accepts becomes a generate_lead event, with a value and currency: fixed, or taken from a field. Failed validation and caught spam never reach GA4. It works with nine form plugins, from WS Form to Contact Form 7 (see every integration). Mark generate_lead as a key event in GA4, and purchase too if it isn't already, and your GA4 reports show leads and sales side by side.

Refunds, and purchases if you choose, from your server

How do you send WooCommerce refunds to GA4? From a server: a refund happens in your WordPress admin, with no visitor's browser to send it. Tracking Nexus sends it through GA4's Measurement Protocol with your API secret, for the amount refunded, so a partial refund takes off only its share.

You can also send purchases from your server, so a closed tab or a blocked script doesn't lose the sale. They then come from the server instead of the browser, never both, so nothing counts twice. The setting is off until you choose; "refunds only" is the recommended choice. In a live GA4 test on 26 November 2026, a purchase sent from the server appeared in Realtime as a key event in the visitor's own session, then its full refund followed.

Set up GA4 in four steps

  1. Paste your measurement ID (G-…), and a Measurement Protocol API secret from GA4's admin if you want refunds from your server.
  2. Choose how GA4 events go: from the Google tag in the browser, or through your Tag Manager data layer. If you run a server-side Tag Manager, add its address under Advanced.
  3. Turn on the events you want.
  4. Watch the events arrive in GA4's Realtime report; leads, purchases and refunds also appear in the plugin's Activity log. To check server events without recording them, switch on Test without recording and Google validates each one.

Keep Site Kit, MonsterInsights or Tag Manager

Already have Site Kit, MonsterInsights or GTM on the site? Let one of them send GA4 events, not two: if two plugins send a purchase to the same property, GA4 counts it twice. You can keep the other plugin's dashboard, or route Tracking Nexus through your Tag Manager data layer so your GA4 tags in GTM do the sending.

Up to five GA4 properties on one site

Agencies and multi-brand sites can send to up to five GA4 properties from one WordPress site, each with its own limits on which events and pages it receives.

Consent Mode v2, set before GA4 loads

Google Consent Mode v2 starts with every signal denied, and the Google tag loads only after the visitor allows analytics. GA4 follows the analytics choice, read from the consent plugin you already use.

Consent and Consent Mode v2

Google Analytics on WordPress: questions

Can you add Google Analytics to WordPress without a plugin?

Yes. You can paste the GA4 tracking code into your theme's header, and GA4 records page views. Leads, WooCommerce events with items, refunds and consent are then code you write and maintain yourself.

Is Google Analytics free?

Yes. The standard version of Google Analytics 4 is free.

Does WordPress have built-in analytics?

No. WordPress has no analytics of its own. A plugin adds it, or you paste the code in yourself.

Is Tracking Nexus a Google Analytics dashboard plugin?

No. It's an analytics plugin that sends GA4 the right events; your reports and dashboard stay in GA4. Inside WordPress, Tracking Nexus has one report of its own: where leads and sales came from, by source, medium and campaign, so you can judge each campaign's performance (attribution).

Every other platform gets the same conversions

Check out all the platforms we work with

Give GA4 the leads and sales you really got

Get Tracking Nexus and go live in under five minutes, with GA4, server refunds and every other feature included. Try it worry-free with our 30-day money-back guarantee.