
General tab: Configure GA4 Measurement ID, Script Load Mode, and optional GTM Container ID
A lightweight, developer-friendly plugin to integrate Google Analytics 4 (GA4) tracking with WordPress. Designed for performance and simplicity, Lean GA4 Tracker lets you implement advanced GA4 tracking without the bloat of larger analytics plugins.
Includes lightweight WooCommerce tracking for product views, cart actions, checkout, and purchases — no extra setup required. Consent Mode integration supports Complianz, CookieYes, Cookiebot, and native WordPress consent APIs.
Key Features:
- Easy integration with GA4 using your Measurement ID
- Lightweight, performance-first architecture with no bloat
- Manual GA4 API access using user-supplied access tokens and property IDs
- Optional Google Tag Manager (GTM) container injection with support for Web, AMP, and Custom containers
- Enable GTM Debug Mode for container preview/testing
- Custom GA4 Event Tracking via JSON input
- Tabbed settings UI for clean configuration management
- Debug Mode for inspecting events in the console (admin only)
- Error notices for invalid JSON in Custom Events field
- Site-level and Multisite Network-level settings with optional enforcement
- Configurable script loading (default, async, or defer)
- Clean, class-based architecture with Composer and PSR-4 autoloading
- Developer-friendly and extensible for custom implementations
- Privacy-aware: Optional integration with Consent Mode and cookie banner plugins (e.g., Complianz, CookieYes)
- Exclude specific user roles from GTM injection
- Toggle support for automatic integration with Complianz, CookieYes, and Cookiebot cookie banners
- Track form submissions from popular plugins including Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Formidable Forms, and Fluent Forms
- WooCommerce support: track product views, add to cart, checkout, and purchases using GA4 eCommerce event schema
Whether you’re a developer building custom themes or a site owner who wants full control over analytics, Lean GA4 Tracker delivers exactly what you need — nothing more, nothing less.
Active installations0+
Weekly downloads
36+200.00%
Version1.1.3
Last updated8/10/2025
WordPress version6.2
Tested up to6.7.3
PHP version8.2
Tags
ga4google analyticslightweighttracking