WP Manifestindependent plugin directory
manifest / performance / googleanalytics-speedboost

PopUp for Google Analytics

This plugin removes Google Analytics load and creates popup where user can choose collection or not, this will improve loading times on Lighthouse, PageSpeed Insights and also on GTMetrix because analytics.js script file is not loaded.

★ 1stars
releaselatest · 3mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/finland93/googleanalytics-speedboost/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Improve your Lighthouse / PageSpeed / GTmetrix scores by not loading Google Analytics until the visitor consents. The plugin shows a small consent popup and only injects the GA tag after the visitor clicks Accept — and lets them withdraw consent later.

Features

  • GA loads only after consent (better performance and privacy).
  • Configurable popup text and Accept/Reject button labels.
  • No jQuery — a few KB of vanilla JS.
  • Withdraw consent anywhere with the [ga_consent_reset] shortcode.
  • The popup only appears once a GA Measurement ID is configured.

Setup

  1. Activate the plugin.
  2. Go to GDPR Popup in the admin menu and enter your GA Measurement ID (e.g. G-XXXXXXXXXX).
  3. Optionally customise the popup text and buttons.

What changed in 2.0.0

  • Removed the jQuery dependency. 1.0 enqueued jQuery even though the script was pure vanilla JS — counter-productive for a speed plugin.
  • Hardened consent handling. Cookies are parsed exactly (no substring false matches) and written with SameSite=Lax. The GA ID is validated on save.
  • Added consent withdrawal via [ga_consent_reset] (a GDPR requirement that 1.0 lacked).
  • The popup and scripts now load only when a GA ID is set, plus basic dialog accessibility and nicer default styling.

License

GPLv2 or later — see LICENSE.

Author: Finland93

Releases

1 release.

Tag
Published
release latest
Jun 29, 2026 3mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.