开发者 | maidulcu |
---|---|
更新时间 | 2025年8月11日 00:15 |
PHP版本: | 8.2 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Yes. You can enter a JSON array of custom GA4 events in the settings panel, and they will be dispatched automatically.
It initializes GA4 with ad_storage: denied
and analytics_storage: granted
by default. You can modify or extend this via hooks.
Yes. Network admins can enforce a GA4 configuration across all sites or allow individual site overrides.
The script can be loaded using standard, async
, or defer
attributes — configurable from the admin settings.
Absolutely. The plugin is built using PSR-4 autoloading, Composer, and separates concerns with namespaced classes. It’s ready for extension or integration in your theme or stack.
Yes. While Lean GA4 Tracker does not include a built-in banner, it supports integration with popular cookie consent plugins including Complianz, CookieYes, and Cookiebot. You can optionally enable this integration from the Privacy tab in the plugin settings.
Yes. If enabled in the Privacy tab, the plugin will initialize GA4 with Consent Mode defaults. You can manually trigger gtag('consent', 'update', ...)
after consent is granted.
Yes. Lean GA4 Tracker includes a Forms tab where you can enable GA4 event tracking for popular form plugins like Contact Form 7, WPForms, Fluent Forms, and others. No coding required.
Yes. Lean GA4 Tracker includes built-in WooCommerce support. You can enable event tracking for product views, add to cart actions, checkout steps, and purchases — all dispatched using GA4 eCommerce event schema.
<head>
and <noscript>
support