Lightweight Cookie Consent Banner
Google Consent Mode v2 support without a 300KB script or a monthly fee: a cookie consent banner that weighs about 8 KB, loads nothing from other servers and works with page caching.
Screenshots
Lightweight Cookie Consent Banner asks your visitors for cookie consent and passes their answer on to Google, without slowing your site down or sending you a bill. Most consent tools load a large script from their own servers on every page and start charging by the month once your traffic grows. This one is about 8 KB, inlined in the page, with nothing fetched from anywhere else, and it's free.
It sets up Google Consent Mode v2 the way Google asks for it. All seven signals, including ad_user_data and ad_personalization, start as denied at the very top of the page, before any Google tag runs, and update the moment a visitor chooses. Google Analytics, Google Ads and Tag Manager follow them whether they're added by Site Kit, another plugin or the plugin's own Google tag field, so Google can still model the conversions you'd otherwise lose. Other trackers, like the Meta Pixel or Microsoft Clarity, wait until their category is allowed.
Visitors get Accept all, Reject all and Customize on the banner, a preferences window with Necessary, Preferences, Analytics and Marketing switches, and a small cookie button to change their mind later. Pick a box, a bar or a centered popup in light or dark, set your accent color and reword anything, with a live preview as you go. Ask everyone, or only visitors in Europe. Settings live under Content Powered > Lightweight Cookie Consent Banner, and updates arrive through the normal WordPress Updates screen.
Features
- Google Consent Mode v2. All seven signals, denied before any Google tag loads and updated the moment a visitor chooses.
- About 8 KB. Inlined in the page, with no jQuery, no fonts and no requests to other servers.
- No monthly fee. No account, no page view limits and nothing to renew.
- Advanced or basic mode. Load your Google tag right away and cookieless, or only after consent.
- Holds back other trackers. Meta Pixel, Clarity, Hotjar and other scripts run only once their category is allowed.
- Reject as easily as accept. Accept all, Reject all and Customize on the banner itself, with the same look by default.
- Changing their mind. A small cookie button reopens the preferences, and withdrawing consent clears tracking cookies.
- Europe only, if you like. Ask everyone, or only visitors in the EEA, the UK and Switzerland.
- Your theme can't break it. It uses your font but keeps its own styles, and it never shifts your layout.
- Works with page caching. Clears WP Rocket, LiteSpeed and other caches when you save, and stays clear of script delay plugins.
- Click Download above to save
lightweight-cookie-consent-banner.zip. Leave it zipped. - In your WordPress dashboard, go to Plugins > Add New Plugin and click Upload Plugin.
- Choose the ZIP and click Install Now, then Activate Plugin.
To update later, upload a newer ZIP the same way. WordPress offers to replace the installed version and keeps your settings.
Do I Need a Cookie Banner If I Only Use Google Analytics?
If you have visitors in the EEA, the UK or Switzerland, almost certainly. Google Analytics sets cookies, which need consent there, and Google now expects Consent Mode v2 signals for that traffic before it will use it for remarketing and conversion modeling. This plugin takes care of both.
Will It Slow Down My Site?
No. Both of its scripts are inlined in the page, about 8 KB together, so there's no extra file to download and nothing is fetched from another server. The banner sits on top of the page instead of pushing it around, so it doesn't cause layout shift, and it works with page caching because every visitor gets the same HTML.
Does It Work With Site Kit and Google Tag Manager?
Yes. The Consent Mode defaults are printed before anything else in the page, so Google tags added by Site Kit, Tag Manager or your theme follow them. Leave Site Kit's own Consent Mode setting off, since this plugin already sends the signals. Tag Manager also gets an lccb_consent event whenever the choice is known or changes.
What's the Difference Between Advanced and Basic Mode?
In advanced mode, which Google recommends, your Google tag loads right away but sets no cookies until the visitor agrees, and its cookieless pings let Google model the conversions you'd miss. In basic mode, nothing from Google loads until the visitor allows analytics or marketing.
Can I Show the Banner Only to Visitors in Europe?
Yes. Choose "Only visitors in the EEA, the UK and Switzerland" on the Google tab. Google applies the denied defaults to those countries by IP address, and the banner appears for visitors whose device is set to a European time zone, which works with page caching without looking anyone up.
Does It Work With AdSense?
Not for visitors in Europe. Google requires a certified consent platform that supports the IAB's TCF framework for AdSense, Ad Manager and AdMob ads there, and this plugin isn't one. For Google Analytics, Google Ads conversion tracking, remarketing and Tag Manager, its Consent Mode signals are what Google needs.
Where Are the Settings?
In your dashboard under Content Powered > Lightweight Cookie Consent Banner. If you use other Content Powered plugins, they share the same menu.
Download
More Free WordPress Plugins
AI Crawler Controls
Block or allow AI crawlers like GPTBot, ClaudeBot and CCBot one by one through robots.txt, opt-out headers and an optional 403, and see every visit they make in a crawl log.WooCommerce Anti Fraud
Catches fraudulent WooCommerce orders before you ship them: a 0-100 risk score on every order, WebRTC proxy leak checks, copy and paste detection, device fingerprints and IP intelligence.Admin IP Lockdown
Restricts wp-admin and wp-login.php to allowed IP addresses, with Cloudflare support, dynamic DNS hostnames for home IPs that change, and an emergency email unlock link so you can't lock yourself out.Let's Grow Your Business
Want some free consulting? Let's hop on a call and talk about what we can do to help.
