🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Lean GA4 Tracker – GA4 and WooCommerce Event Tracking icon
Actively maintained Tested with WP 7.1 #6 in ecommerce tracking

Lean GA4 Tracker – GA4 and WooCommerce Event Tracking

Adds Google Analytics 4 (gtag.js) and WooCommerce shopping events. Classic cart and checkout only. Consent Mode is optional and off by default.

Active installs10+10+ tier
Downloads · 30d162▲ +165.6% vs prev. 30d
Rating—0 reviews
Health score66/100Good
All-time downloads1.4KSince Apr 2025
Support resolved—No recent threads
RequiresWP 6.2PHP 8.2+
Downloads · 7d27▼ -71.3% week over week
Our verdict

Solid choice

Lean GA4 Tracker is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 weeks ago, and scores 66/100 on our health check.

  • Actively developed — last update 2 weeks ago
  • Tested with the latest WordPress (7.1)
  • Small user base (10+ active installs)
  • Very few reviews so far
  • Needs PHP 8.2 or newer

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

142943Sep 4Oct 18Dec 2
Yesterday4
Daily average (1y)2
Peak day58Nov 21, 2026
Last 12 months670

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Lean GA4 Tracker stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
ecommerce tracking >100 955 Best ecommerce tracking plugins →
ga4 #49 687 Best ga4 plugins →
google analytics >100 4,769 Best google analytics plugins →
gtag #43 292 Best gtag plugins →
woocommerce analytics >100 4,486 Best woocommerce analytics plugins →

Version adoption

Share of active sites per release.

  • 1.2100.0%

About Lean GA4 Tracker

From the official readme · v1.2.1

Description

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).

Resources

External services

When you enter a Measurement ID, this plugin loads Google’s tracking code in your visitors’ browsers.

Google Analytics (gtag.js) – https://www.googletagmanager.com/gtag/js. Loaded on every page for every visitor once a Measurement ID is saved. Google receives the visitor’s IP address, browser details, page URL and cookie identifiers, plus the WooCommerce and custom events described above.
Terms: https://marketingplatform.google.com/about/analytics/terms/us/ – Privacy policy: https://policies.google.com/privacy

Google Tag Manager – https://www.googletagmanager.com/gtm.js and https://www.googletagmanager.com/ns.html. Loaded only if you enter a Tag Manager container ID.
Terms: https://marketingplatform.google.com/about/analytics/tag-manager/use-policy/ – Privacy policy: https://policies.google.com/privacy

Google Analytics Admin and Data APIs – https://analyticsadmin.googleapis.com and https://analyticsdata.googleapis.com. Called from your server, in the admin only, if you enter a GA4 Property ID and an access token for the plugin’s dashboard report. Your token is sent to Google.
Terms: https://developers.google.com/terms – Privacy policy: https://policies.google.com/privacy

jsDelivr – https://cdn.jsdelivr.net. Serves the Chart.js library on the plugin’s admin dashboard page only. Your browser requests it when you open that page.
Terms: https://www.jsdelivr.com/terms – Privacy policy: https://www.jsdelivr.com/terms/privacy-policy-jsdelivr-net

Installation

  1. Upload the plugin files to /wp-content/plugins/lean-ga4-tracker
  2. Activate the plugin from your WordPress dashboard
  3. Open Lean GA4 Tracker in the admin menu and enter your GA4 Measurement ID on the General tab

Changelog

1.2.1

  • Compatibility: tested with WordPress 7.1.

1.2.0

  • Enhanced eCommerce Tracking: Complete GA4 eCommerce funnel support
  • Added view_item_list event – Track product list views on shop, category, tag, and search pages
  • Added select_item event – Track product clicks from lists with item position tracking
  • Added view_cart event – Track when customers view their shopping cart
  • Added remove_from_cart event – Track item removals from cart (server-side and AJAX)
  • Added add_shipping_info event – Track shipping method selection during checkout
  • Added add_payment_info event – Track payment method selection during checkout
  • Improved category name display in all eCommerce events (shows category name instead of ID)
  • Updated WooCommerce settings tab with 6 new tracking toggles
  • Enhanced product tracking with item_list_name, item_list_id, and index parameters

1.1.6

  • Added Recommended GA4 Events section in Events tab with toggles for generate_lead, sign_up, and purchase
  • Improved GA4 Property ID field with better placeholder, validation, and help text in Authentication tab
  • Added Manual GA4 Access Token support for dashboard charts
  • Added initial DashboardPage class with basic GA4 metrics and Chart.js visualization

1.1.5

  • Improved admin UI with modern toggle switch design for settings
  • Added scoped admin CSS file for cleaner styling
  • Enhanced WooCommerce tracking descriptions with GA4 event names
  • Updated settings header with Docs & Support and Upgrade to Pro buttons
  • Improved help texts and tooltips for better user guidance
  • Codebase refactored to use LEAN_GA4_TRACKER_URL constant for assets

1.1.4

  • Added new Script Load Mode option: “Idle (after page load)” using requestIdleCallback with fallback
  • Improved admin settings UI for script placement options
  • Enhanced sanitization to support new load mode
  • Minor code refactoring and documentation updates

1.1.3

  • Improved Consent Mode compatibility with WordPress and third-party consent plugins
  • Added listener for WordPress’s wp_consent_granted event
  • Confirmed WooCommerce support with product, cart, checkout, and order tracking
  • Enhanced leanGA4ConsentGranted()
  • Added WooCommerce tab for toggling GA4 event tracking
  • Supports product views, add to cart, begin checkout, and purchase events
  • Events dispatched using gtag() with product ID, name, price, and order data
  • Enhanced WooCommerce tracking security and GA4 payload accuracy — added JSON-encoded event payloads, quantity/currency support, duplicate purchase prevention, and front-end-only tracking hooks

Full changelog on WordPress.org →

Screenshots

General tab: Configure GA4 Measurement ID and Script Load Mode
General tab: Configure GA4 Measurement ID and Script Load Mode
Tag Manager tab: Optional GTM container and user role exclusions
Tag Manager tab: Optional GTM container and user role exclusions
Authentication tab: optional Google account connection for the admin dashboard
Authentication tab: optional Google account connection for the admin dashboard
Events tab: Define custom GA4 events using a JSON array
Events tab: Define custom GA4 events using a JSON array
WooCommerce tab: Toggle GA4 eCommerce event tracking for product views, checkout, and purchases
WooCommerce tab: Toggle GA4 eCommerce event tracking for product views, checkout, and…
Forms tab (form tracking does not work in this version)
Forms tab (form tracking does not work in this version)
Privacy & Consent tab: Optional Consent Mode defaults
Privacy & Consent tab: Optional Consent Mode defaults
Debug tab: Enable Debug Mode to print event tracking output for admins
Debug tab: Enable Debug Mode to print event tracking output for admins

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Lean GA4 Tracker alternatives

All ecommerce tracking plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 ArrayCodes Datalayer for WooCommerce FREE ArrayCodes Datalayer for WooCommerce FREE Track WooCommerce product views and purchases in Google Analytics 4 — and use the same data… by array.codes 600+ ★★★★★★★★★★ No reviews 1 month ago 66
2 GIA — GA4 Ecommerce Tracking for WooCommerce GIA — GA4 Ecommerce Tracking for WooCommerce Set up complete WooCommerce conversion tracking in Google Analytics 4 in minutes. Skip the… by UserElements 60+ ★★★★★★★★★★ No reviews 5 months ago 42
3 Meta Pixel Event Tracker for WooCommerce Meta Pixel Event Tracker for WooCommerce Adds customizable Meta Pixel event tracking support to WooCommerce. by Harpalsinh Parmar 50+ ★★★★★★★★★★ No reviews 3 months ago 58
4 Analytics Code Option Analytics Code Option In Analytics Code Option you can add Google Analytic Code ID. Also you can select where… by Fullestop 30+ ★★★★★★★★★★ No reviews 8 years ago 24
5 Metrion Metrion Skip complex implementation setups and synchronize your conversion data directly to Google… by Metrion 30+ ★★★★★★★★★★ No reviews 7 days ago 67
7 Divvit e-commerce analytics Divvit e-commerce analytics Divvit e-commerce analytics tool presents insights in dashboards and KPIs to boost your… by divvit 10+ ★★★★★★★★★★ 5 (2) 9 years ago 30
8 GGL Suite – WooCommerce Google Tag Manager and GA4 Tracking GGL Suite – WooCommerce Google Tag Manager and GA4 Tracking WooCommerce GA4 ecommerce tracking, GTM dataLayer, Google Ads, Merchant Center feed… by pluginbros <10 ★★★★★★★★★★ No reviews 3 months ago 55
9 Track Combo — Conversions API for WooCommerce Track Combo — Conversions API for WooCommerce Send WooCommerce events (view, add-to-cart, purchase) to Meta CAPI, Google Ads, and TikTok… by trackcombo <10 ★★★★★★★★★★ No reviews 4 months ago 49

FAQ

Lean GA4 Tracker: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Lean GA4 Tracker free?

Yes. Lean GA4 Tracker is free to download and use from the official WordPress.org plugin directory.

Is Lean GA4 Tracker safe to use in 2026?

Lean GA4 Tracker is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 weeks ago, and scores 66/100 on our health check.

How many websites use Lean GA4 Tracker?

Lean GA4 Tracker is active on 10+ WordPress websites and has been downloaded 1,356 times since it launched in April 2025. It was downloaded 162 times in the last 30 days.

Does Lean GA4 Tracker work with WordPress 7.1?

Yes. The developer has tested Lean GA4 Tracker up to WordPress 7.1.5, the latest release. It requires WordPress 6.2 or newer.

What PHP version does Lean GA4 Tracker need?

Lean GA4 Tracker requires PHP 8.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Lean GA4 Tracker last updated?

The latest version, 1.2.1, was released on November 21, 2026 (2 weeks ago).

Who makes Lean GA4 Tracker?

Lean GA4 Tracker is developed and maintained by Maidul.

What are the best alternatives to Lean GA4 Tracker?

The most popular alternatives to Lean GA4 Tracker are ArrayCodes Datalayer for Wo… (600+ installs), GIA (60+ installs) and Meta Pixel Event Tracker fo… (50+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open