If you’re looking for a streamlined, developer-friendly way to integrate Google Analytics 4 (GA4) with your WordPress site—without bloated dashboards or heavy scripts—Lean GA4 Tracker is for you.
We built this plugin with a clear mission: to give developers and privacy-conscious site owners a fast, flexible, and modern way to add GA4 tracking that respects user consent, supports custom events, and integrates smoothly with popular cookie banner plugins.
Why We Created Lean GA4 Tracker
Most GA4 plugins are packed with complex interfaces, upsells, and unnecessary scripts. We wanted something different:
• Lightweight and performance-first
• Modular architecture, built for developers
• Manual token support for full API flexibility
• Privacy-aware, with Consent Mode and cookie banner plugin compatibility
• Full multisite network support
Key Features
1. Manual GA4 Token & Property ID Input
Skip OAuth complexity (for now). Just paste in your access token and GA4 property ID to fetch dashboard reports via the GA4 Data API.
2. Tabbed Settings UI
A clean, modern admin interface with separate tabs for:
• General Settings
• Authentication
• Custom Events
• Debug
• Privacy & Consent
3. Google Tag Manager (GTM) Support
Use GTM instead of gtag? No problem. Just enter your container ID, and the script will load automatically with the right fallback support.
4. Custom Event Tracking
Send custom events to GA4 by entering a valid JSON array. No JS needed.
5. Consent Mode + Privacy Features
Enable Google Consent Mode directly from the settings. Control whether GA tracking loads based on user consent.
6. Compatible with Cookie Banner Plugins
Lean GA4 Tracker integrates perfectly with tools like:
Once a user accepts tracking, GA4 kicks in—no double-counting, no early loading.
Who Should Use This?
• WordPress developers looking for full control over GA4 behavior
• Site owners who care about performance and privacy
• Agencies managing multisite or client sites where simplicity is a must
• GDPR/CCPA-compliant websites that use Consent Mode
Under the Hood
Built using:
• PSR-4 autoloading
• Composer
• Namespaced OOP architecture
Everything is modular, testable, and extendable—ready to be embedded into your workflow or stack.
Installation
1. Upload the plugin to /wp-content/plugins/lean-ga4-tracker
2. Activate it from your WordPress dashboard
3. Visit Settings ? Lean GA4 Tracker to configure
Privacy First, Without Sacrificing Power
With growing legal expectations and user awareness around privacy, it’s more important than ever to respect consent and tracking laws. Lean GA4 Tracker gives you the tools to do just that—while staying developer-friendly and fast.
Coming Soon
• OAuth-based authentication (for users who don’t want to paste tokens)
• Frontend consent banner (for users who don’t want external plugins)
• API-based GA4 property selector
• More advanced reporting and dashboard widgets
Try It Now
You can download Lean GA4 Tracker from WordPress.org , and try it on your site today.