Lean GA4 Tracker – GA4 and WooCommerce Event Tracking
Lean GA4 Tracker adds the Google Analytics 4 tag (gtag.js) to your site from a settings page, and sends WooCommerce shopping events to GA4 for stores that use the classic cart and checkout pages. It has no reporting screens that you need: you read your data in Google Analytics. What it does Adds gta
Lean GA4 Tracker adds the Google Analytics 4 tag (gtag.js) to your site from a settings page, and sends WooCommerce shopping events to GA4 for stores that use the classic cart and checkout pages. It has no reporting screens that you need: you read your data in Google Analytics.
What it does
- Adds gtag.js with your GA4 Measurement ID (G-XXXXXXXXXX).
- WooCommerce events on the classic shop, product, cart and checkout pages: view_item , view_item_list , select_item , view_cart , begin_checkout , add_shipping_info , add_payment_info and purchase , with product category and brand.
- Optional Google Consent Mode defaults. Consent Mode is off until you turn it on in the Privacy tab.
- Exclude user roles from tracking in the Tag Manager tab.
- Your own custom GA4 events, entered as a JSON array in the Events tab. Each one fires on every page view.
- Multisite: network-wide settings with optional enforcement.
Limits you should know about
- WooCommerce Cart and Checkout blocks are not tracked. Events use the classic page hooks.
- Add-to-cart and remove-from-cart events can be missed on some themes. Check them in GA4 DebugView before you rely on them.
- The plugin does not track form submissions.
- Consent Mode here is not a complete consent solution. Use it only together with a consent banner you have tested, and check that it meets your legal obligations.
Privacy. Once you save a Measurement ID, every visitor’s browser loads Google’s gtag.js and sends data to Google Analytics, including the visitor’s IP address and cookie identifiers. When WooCommerce tracking is enabled, product and order information is sent to GA4 (such as product name, category, brand, price and quantity). Customer names and email addresses are not sent. Mention Google Analytics in your privacy policy, and review your GA4 settings against your local privacy laws (such as GDPR and CCPA).