BACK TO DIRECTORY

Lightweight Google Analytics

by Andy Feliciotti

5.0
(2 ratings)

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.

Screenshots

Plugin settings page for Lightweight Google Analytics

Plugin settings page for Lightweight Google Analytics

Plugin Details

Active Installs
400
Total Downloads
8,450
Version
1.5.0
Requires WP
5.0
Requires PHP
7.0
Tested Up To
6.9.7
Added
2020-09-24
Last Updated
2026-01-18 3:16am GMT

Ratings

5
2
4
0
3
0
2
0
1
0