Beautiful Cookie Consent Banner


A free and beautiful way to get a Cookie Banner without loading any external resources from 3rd parties. Customize it to match your compliance requirements and website layout. This Banner is super responsive and highly customizable.

Key Features

  • fully customizable texts, colors, fonts and position of the banner and buttons.
  • multilanguage support with premium add-on:
  • auto block support with premium add-on.
  • choose between different compliance types: Just Inform, Opt-in, Opt-out, Differentiated. Cookies will not be stored by default. With differentiated you can define cookie groups, and for each group a user can give a consent.
  • google tag manager support.
  • show the Banner until user accepts all cookies.
  • prevent user setting cookie from automatic deletion by many browsers (e.g. ITP => 2.1).
  • no resources loaded from third parties: everything is hosted on your domain.
  • Developer friendly: filter hook to change cookie message: nsc_bar_cookie_bar_message

The plugin helps you preparing your website for a lot cookie laws and regulations, for example:

  • GDPR: The General Data Protection Regulation (European Union)
  • CCPA: The California Consumer Privacy Act (California, United States)
  • PIPEDA: The Personal Information Protection and Electronic Documents Act (Canada)
  • LGPD: The Brazilian General Data Protection Law (Brazil)
  • OAIC: Australia’s Privacy Principles (Australia)

These cookies are set by this plugin

You can customize the cookie name, though.

  • cookieconsent_status -> stores the user setting, if cookies are allowed or not. If you choose «differentiated consent» it stores, if the user closed the banner.
  • cookieconsent_status_{cookiesuffix} -> only set in case of «differentiated consent». It stores the user setting for the cookie group. One cookie for each group is set.
  • nsc_bar_cs_done -> set if you activate ITP Protection (use backend cookies). Stores the information of when the cookie was set, to give them a duration.

Localstorage is used

If you have the premium add on and activate the stats module and activate the banner open counter, then a counter is written to localstorage. The key is «beautiful_cookie_banner_open_counter».


  1. Fully responsive.
  2. Make consent cookie a backend cookie to prevent automatic deletion which many browsers do for javascript/frontend cookies.
  3. reload after acceptance
  4. Easily export your settings to another installation: just copy and paste the json string.
  5. Show banner until user accepts cookies
  6. Google Tag Manager supported: Push consent to dataLayer for easy configuration
  7. Users can easily change cookie settings: choose between an extra tab or with a shortcode.
  8. Fully customizable colors and text.
  9. It is for all kind of compliance: opt-out, opt-in, info only, differentiated
  10. choose between different themes
  11. choose the position on your website
  12. choose cookie name, duration, domain.
  13. cookie setting management via shortcode: [cc_show_cookie_banner_nsc_bar]
  14. preview banner in backend.
  15. auto dismiss
    … and there are a lot more.


This really beautiful plugin wraps the solution provided by osano ( into a wordpress plugin.
This Version uses 3.1.0 from osano as basis, but it has a lot modifications to the original source code. It is optimized for performance and for a low database impact.

NOTE: Using this plugin alone does not makes your site automatically compliant. As each website and country is different you must make sure you have the right configurations in place. Google tag manager can help you with that for free.


  • Cookie Banner Mobile Example - two buttons.
  • Cookie Banner admin settings area with banner example.
  • Set the colors and general appearence of the Cookie Banner.
  • Set the text and customize the links of the Cookie Banner.
  • How should the Cookie Banner behave? Two Buttons, one button? Consent categories? Everything is possible.
  • Define how user can interact with the Cookie Baner after they closed it? Only per shortcode link? Or a tab?
  • Block scripts which set cookies automatically with the premium add-on of this cookie banner.
  • Basic cookie settings. The consents are stored in a cookie.
  • You can easily import and export most of the settings of your cookie banner. Very handy to apply it to multiple pages.
  • Mobile Example of the cookie banner.
  • Mobile Example of the cookie banner.
  • Desktop Example of the cookie banner.


Just install this plugin and go to Settings > Cookie Consent Banner to change the default config and to activate the banner.


Why backend cookies? (ITP >= 2.1)

Most Cookie Banner plugins set javascript cookies. In Safari and Firefox these cookies have a short lifetime, even if the cookie is set with an very long expiration date.
Consequence: Your user have to opt in every seven days again. And sees the banner every seven days. Which is kind of annoying.
With this Plugin the consent cookie stays save and is not limited in lifetime. If you use the option.
If you want to save more cookies, check out this plugin:

How to remove tab at the bottom?

Just go to Settings > Cookie Consent Banner > Consent Management and uncheck the checkbox «Show ‹Cookie Settings› tab»

Does this plugin have a setting for blocking scripts or cookies until acceptance?

Yes. With the premium add-on ( you can enable autoblocking. But be aware: there is no 100% guarantee that this will always work. As this is heavily dependent from your wordpress installation.

How should I organize my trackingscripts and cookies?

The technical recommandation is to use the google tag manager. It is an awesome and free tagmanager. Since version 2.2 this plugin natively supports it. But as always: check if it is legal to use it in your jurisdication☝️.

I have a custom template and want to modify the cookie message. How?

You can use the filter hook «nsc_bar_cookie_bar_message» in your plugin or theme.


22. Januar 2023
I tried several Cookie plug-ins; this is the best. It is simple, does not force you to use certain functions (such as their logo, a settings button, etc.), and was very user friendly.
10. November 2022
Opinión en Español Mejor plugin de aviso y control de cookies usando Google Tag Manager. Lo primero que quiero decir es que el plugin se adapta perfectamente bien a la política de Cookies de España. Es un plugin muy ligero, carga muy poco al servidor, y eso para mi es importante, piensa que el aviso de cookie se visualiza en cada visita que recibe la web. El plugin envía un aviso Google Tag Manager, cuando el usuario acepta las cookies, y también envía un aviso con el tipo de cookies que acepta el usuario por ejemplo cookies técnicas y cookies de análisis. En Google Tag Manager nosotros disparamos Google Analytics en función a los datos que nos ha enviado el Plugin. Lo bueno es que se integra perfectamente con el plugin GTM4WP. El plugin GTM4WP manda todas las métricas que necesitamos medir a Analytics. Vamos es una locura. Para mi el plugin es casi perfecto, necesita: 1º mejorar su documentación, con ejemplos de configuración de Google Tag Manager en otros idiomas. 2º Mejorar el texto del aviso del banner permitiendo el uso de html y enlaces, H1, H2, H3, p, a, class id. Conclusión final, tienes que dar una oportunidad a este plugin porque lo que hace lo hace muy bien. Opinion in English Best cookie warning and control plugin using Google Tag Manager. The first thing I want to say is that the plugin adapts perfectly well to the Cookies policy of Spain. It is a very light plugin, loads very little to the server, and that for me is important, think that the cookie warning is displayed on each visit that receives the web. The plugin sends a notice Google Tag Manager, when the user accepts cookies, and also sends a notice with the type of cookies that accepts the user for example technical cookies and analytics cookies. In Google Tag Manager we trigger Google Analytics based on the data sent to us by the Plugin. The good thing is that it integrates seamlessly with the GTM4WP plugin. The GTM4WP plugin sends all the metrics we need to measure to Analytics. It's crazy. For me the plugin is almost perfect, it needs: 1º Improve its documentation, with examples of Google Tag Manager configuration in other languages. 2º Improve the banner ad text allowing the use of html and links, H1, H2, H3, p, a, class id. Final conclusion, you have to give a chance to this plugin because what it does it does very well. Parere in italiano. Il miglior plugin per l'avviso e il controllo dei cookie con Google Tag Manager. La prima cosa che voglio dire è che il plugin si adatta perfettamente alla politica dei cookie della Spagna. Si tratta di un plugin molto leggero, che carica pochissimo sul server e che per me è importante, visto che l'avviso sui cookie viene visualizzato a ogni visita che il sito riceve. Il plugin invia un avviso a Google Tag Manager, quando l'utente accetta i cookie, e invia anche un avviso con il tipo di cookie che accetta l'utente, ad esempio cookie tecnici e cookie di analisi. In Google Tag Manager attiviamo Google Analytics sulla base dei dati inviati dal plugin. L'aspetto positivo è che si integra perfettamente con il plugin GTM4WP. Il plugin GTM4WP invia tutte le metriche da misurare ad Analytics. È pazzesco. Per me il plugin è quasi perfetto, ha bisogno di: 1º Migliorare la documentazione, con esempi di configurazione di Google Tag Manager in altre lingue. 2º Migliorare il testo del banner pubblicitario consentendo l'uso di html e link, H1, H2, H3, p, a, class id. In conclusione, bisogna dare una possibilità a questo plugin perché quello che fa lo fa molto bene.
1. August 2022
I've tried quite a few cookie plugins over the last few years and this one is the best so far. Easy to use but still offers a good deal of customisation - perfect.
18. Juli 2022
The only consent banner that actually works and lives up to what it promises. The best feature is that the banner is displayed whilst adjusting settings and one can see what is happening to the banner.
16. April 2022 1 reply
Plugin works great. This plugin allows the user of a site to accept cookie, and even decides what cookie to accept (subject to the honesty of the developer). This plugin is also highly customizable for site owner. Developer, thank you. Nonetheless, there is always room for improvement.
Read all 33 reviews

Contributors & Developers

“Beautiful Cookie Consent Banner” is open source software. The following people have contributed to this plugin.




  • Fix: Authentication issues.
  • Fix: XXS vulnerabulity fixed.


  • IMPROVEMENT: performance – js for dataLayer push is not inline anymore.
  • IMPROVEMENT: preparations for premium add-on version 1.7.0


  • IMPROVEMENT: Minified some JS
  • IMPROVEMENT: Support for show banner with delay of premium add-on


  • FIX: XSS vulnerabulity in admin area. Was only possible for admins to exploit.


  • Feature: added option to customize the text for closing.
  • Refactor: made the admin js a little bit nicer.


  • Bugfix: sometimes when using elementor preloader, the banner did not disapear. Now it works.


  • Improvement: the «x» is now within the banner and not outside.


  • NEW: added possibility to close banner with an «x»
  • IMPROVEMENT: increased the z-index of the banner to max integer. So the banner and the blocking screen will be always on top of everything.


  • Refactor: removed unnecessary admin check.


  • Improvement: filter changes for premium plugin: nsc_bar_plugin_settings_as_an_object
  • Bugfix: Removed duplicate input sanitation, which lead in some cases to errors.


  • Bugfix: If the [cc_show_cookie_banner_nsc_bar] shortcode was used more then once per page it only worked for the first link.
  • Refactor: changes to JS library for an upcoming statistics module


  • Feature: Disable the banner, if the page is loaded in an iFrame.
  • Refactor: Preparation for a statistic module.
  • Refactor: dataLayer push more separated in code, to be able to load it on wp_loaded.
  • Bugfix: Now it works with the weglot language plugin.
  • Improvement: adding filter: nsc_bar_filter_data_layer_values.


  • Improvement: Cookie samesite attribute is now fully set
  • Improvement: You can now interact with the buttons by pushing «return»


  • Bug fix: in WP 5.8 Banner showed up in new widget area.


  • Refactor: added filter for field validation
  • Improvements: added warning to «improve speed» setting.
  • Improvements: ‹Learn more› Link and customLink can now be configured, if they should open in a new tab/window or not.


  • Improvements: added setting to improve the banner loading speed.


  • Improvements: adding more filter: nsc_bar_filter_json_config_string_before_js, nsc_bar_filter_banner_config_array_init, nsc_bar_filter_banner_is_active


  • Improvements: added filter for the final config json as valid JS object: nsc_bar_filter_json_config_string_with_js


  • Improvements: no new features, only the admin area is now nicer and cleaner.


  • FEATURE: you can now block scripts that set cookies with the premium add-on, see here for more information:


  • BUG FIX: Some issues with caching plugins.


  • BUG FIX: since 2.5.1 the dataLayer push for «banner initialized» was fired pretty late. Now it is fired earlier again.


  • IMPROVEMENT: Filter for the cookie message. Now you can easily change the cookie message in your theme or template.
  • REFACTOR: some changes regarding how the scripts are included in the page.


  • ADDED: Possibility to place a second link freely in the cookie banner text.



  • IMPROVEMENT: Colour fields now supprt rgb as well, e.g.: rgba(200, 54, 54, 0.5)


  • FEATURE: Adjust the position of the Banner in HTML source code of the page. Per default it is directly beneath the . Now you can use any other selector to change that.


  • IMPROVEMENT: Default Setting name of «cookie settings»
  • IMPROVEMENT: When adding cookie types the added form is now in focus.
  • FIX: length of «cookie_suffix» not correct validated.


  • ADDED: Google Tag Manager support: dataLayer pushes – events: beautiful_cookie_consent_initialized and beautiful_cookie_consent_updated
  • ADDED: setting for font customisation.
  • ADDED: setting to make buttons look equal.
  • ADDED: automatic consent: after time or scroll.


  • IMPROVEMENT: changed way scripts are loaded. Now there should be a better support of caching plugins.


  • ADDED: «differentiated consent» with two buttons: «save all» and «save settings»
  • ADDED: Option to block screen, when banner is shown.


  • ADDED: «differentiated consent» as compliance type: users can now give consent to only a special type of cookie.
  • ADDED: a shortcode for showing banner again, for managing consent: [cc_show_cookie_banner_nsc_bar].
  • ADDED: more positions for the banner
  • CHANGED: changed revoke tab handling: now possible to use for all banner types.
  • DEPRECATED: shortcode: [cc_revoke_settings_link_nsc_bar]
  • REFACTOR: a lot refactorings, for better feature development in future. A lot.
  • REFACTOR: not using unchanged banner JS from osano anymore.


  • bug fixes


  • added feature «Ask until acceptance»: show banner until user consents.


  • added «reload after banner close» for more accurate tracking after tracking opt in.


  • added a field to configure the text of «Cookie Policy» tab.
  • «Cookie Policy» tab can now be deactivated
  • users can manage their cookie settings now independently from «Cookie Policy» tab: you can add the link easily easily by shortcode: [cc_revoke_settings_link_nsc_bar].
  • bit of clean up of admin area


  • Bug Fix: sometimes the Banner was behind the content.
  • Bug Fix: minor Performance Issue.


  • New Feature: cookie banner is now configurable with a form and not only with a json string. If you want to, you can still use the json.
  • a lot stuff under the hood.


  • New Feature: Added prevention for ITP 2.1 cookie deletion. Safari and Firefox limit the lifetime of a cookie which is set by javascript to seven days.
    Most cookie banner plugins set javascript cookies, that means that your returning user will see every seven days your banner and have to opt in again.
  • Improvement: Cookie in preview modus only deleted if you visit the settings page of that plugin, not admin in general.


  • Improvement: When visiting an admin page, consent cookie is only deleted, if «preview banner» setting is activated.


  • minor bug fixes.


  • fixes for PHP 5.4


New Features

  • you can activate or deactivate the banner now.
  • you see a preview in the plugin settings area now.


  • Improvement: Updated to cookie consent library 3.1. Now dismissOn… functions are working.


  • FIX: Now Really: with an update of this plugin the configuration of the cookie banner is not overwritten anymore.


  • FIX: small fixes and improvements, e.g. admin errors will only be displayed on admin page of this plugin.
  • Improvement: added Icon for this plugin.


  • FIX: with an update of this plugin the configuration of the cookie banner is not overwritten anymore.


  • Improvement: added compatibility in readme.txt


  • First Version of this lightweight Plugin. More to come!