Beautiful Cookie Consent Banner WordPress 插件

Beautiful Cookie Consent Banner WordPress 插件


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.



2024-05-27 21:06:08