Lightweight Google Analytics
This simple plugin adds Google Analytics 4 (GA4) to your WordPress site using your Measurement ID. Additional features include the ability to change the tracking code position, disabling display features, anonymize IP, and excluding roles from tracking.
Note: Universal Analytics (UA-) was discontinued by Google on July 1, 2023. This plugin still supports UA tracking IDs for backwards compatibility, but we recommend migrating to Google Analytics 4 (G-XXXXXXXX) for active tracking.
Features
- Performance focused with no bloat
- Extremely simple to setup
- Works with Google Analytics 4 (gtag.js) — Universal Analytics (analytics.js) still supported
- Regular updates for when GA changes in the future
- Only requires your GA tracking ID to work
- Option to put the tracking code in the header or footer
- Options to disable display features and anonymize IPs
- Options to exclude specific roles from GA tracking
- Option to use MinimalAnalytics.com’s tracking code (or MinimalAnalytics4 if using gtag.js)
- Google Consent Mode v2 support for GDPR/CCPA compliance
- Debug Mode for testing GA4 implementation
- Works with WP-Rocket’s local GA script feature
- Never any upsells
This plugin uses Google Analytics 4 (gtag.js) tracking code by default. Universal Analytics (analytics.js) is still supported for backwards compatibility. It does not include any built in reporting — to view your site statistics, visit Google Analytics after installing.
