Cookie banner for WordPress without a heavy plugin
On WordPress the banner goes into the site header via any code-snippet plugin or the theme file. Trackers added by other plugins must be switched off.
Free
EN · RU · KZ
Consent Mode v2
No plugins
How to install on WordPress
1
Build the banner in the generator above.
2
Install a header code plugin (for example WPCode) and add the code to the Header section, or paste it into your child theme’s header.php before </head>.
3
Turn off tracker output in plugins that added them (Site Kit, analytics and pixel plugins) and in the theme settings.
4
Add a “Cookie settings” link to the footer menu — the code is below the generator.
5
Clear the cache (WP Rocket, LiteSpeed, W3 Total Cache) and run the site through Awe Check.
Important. Caching plugins and CDNs serve old copies of pages: without a cache purge the banner may not appear and trackers may stay.
In the EU, yes — under the GDPR and the ePrivacy directive, whenever analytics or advertising cookies are used. Kazakhstan and Russia also treat analytics data as personal data that needs consent.
Why is “We use cookies” not enough?
Because trackers are already running. The law requires asking before collecting data, not informing afterwards. This banner keeps trackers off until the visitor agrees.
What happens to my analytics if people reject?
Some visits will not reach your analytics. Consent Mode v2 lets Google model part of the missing data without overriding the visitor’s choice.
Where is the visitor’s choice stored?
In the visitor’s browser, in localStorage. Neither your server nor we receive it. The “Cookie settings” footer link reopens the banner.
How do I check it works?
Run the site through Awe Check: the report lists every tracker and cookie that appears before “Accept” and whether rejecting works.
Check that trackers wait for consent
Awe Check opens the site like a visitor and shows everything that loads before “Accept”.