NB Cookie Consent
NB Cookie Consent stops trackers before they fire – not after. Most cookie banners are cosmetic: they pop up while Google Analytics, the Meta Pixel and your marketing tags have already loaded and set cookies. This one keeps WordPress-enqueued tracking scripts inert until your visitor makes a choice, then activates only the cookies they allowed – instantly, with no page reload.
Real consent, signalled everywhere it matters. Every cookie type – Essential, Analytics, Marketing – is wired to both Google Consent Mode v2 and the WP Consent API, per category, for free. Google Ads, Analytics (GA4) and Tag Manager respect the visitor’s choice (even for tags hardcoded in your theme), and consent-aware plugins – including WooCommerce Order Attribution – read the signal too. Most free plugins gate one or both of these, or don’t offer per-category signalling at all.
A preference center visitors actually understand. Accept All, Reject Non-Essential, or Customize – with equal-weight buttons (reject is as easy as accept, no dark patterns). Prefer something simpler? Switch to a plain Accept only or Accept & Decline banner in one click.
Built for a global audience. The banner appears in your site’s colours and language, with full RTL support and complete Hebrew and Russian translations out of the box – a strong fit for GDPR, CCPA and Israel’s Amendment 13. Cache-plugin friendly and WooCommerce-aware.
NB Cookie Consent is a technical tool that helps you collect, signal and honor consent. It is not a substitute for legal advice.
Features: * Accept & Decline cookie buttons (GDPR-friendly) * WordPress script blocking until consent * One-click Cookie Policy page generator * Full RTL support (Arabic, Hebrew, Persian & more) * Banner customization (colors, positioning, button text) * Custom button text – translate to any language * Admin testing tools to verify blocking * Debug mode for developers * Cookie consent revocation shortcode [nb_cookie_revocation] * Optional floating “Cookie settings” icon – a small, unobtrusive round cookie icon that reopens the banner so visitors can change or withdraw consent anytime; shown only after they’ve accepted/declined (off by default; choose bottom-left/right) * Cookie categories (Essential / Analytics / Marketing) with an in-banner preference center – Accept All, Reject Non-Essential, Customize & Save Preferences, each driving per-category Google Consent Mode v2 + WP Consent API signals (enabled by default on new installs; existing installs keep their current banner unless you switch it on) * Accessibility-friendly (toward WCAG 2.1 AA) – ARIA roles and a screen-reader title on the banner/modal, keyboard-operable buttons, and focus management for the blocking modal (focus moves in, is trapped, Escape exits safely, focus returns); the non-blocking bottom banner is not trapped * Cache Plugin Compatible – Works with WP Rocket, LiteSpeed, W3 Total Cache & more * WP Consent API compatible – shares consent state with other consent-aware plugins * WooCommerce-aware – with the free WP Consent API plugin, WooCommerce Order Attribution (sourcebuster) cookies also wait for consent (the plugin prompts you to set it up) * No page reload – consent takes effect instantly without reloading the page * Google Consent Mode v2 – signals consent to Google tags (GA4, Google Ads, Tag Manager): storage denied by default, granted on Accept – works even for Google snippets hardcoded in your theme * Translation ready – fully translatable into any language (standard gettext); ships with complete Hebrew and Russian translations, and WordPress.org community translations load automatically
Blocked Scripts (those loaded through WordPress / enqueued; tracking snippets hardcoded directly into your theme — such as a pasted Meta Pixel or chat widget — require the Pro version): * Google: Analytics (GA4, UA), Tag Manager, Site Kit * Meta: Facebook Pixel, Facebook Events * Analytics: MonsterInsights, ExactMetrics, Yoast GA * Behavior: Hotjar, FullStory, LogRocket, Heap * Marketing: Mixpanel, Segment, Amplitude * Chat Widgets: Intercom, Zendesk, Tawk.to, Crisp, Drift * + Many more automatically detected via WordPress handles
Pro Version Available: Upgrade to NB Cookie Consent Pro for additional features: * Consent Logging & CSV Export – a timestamped, per-visitor record of every choice: documented proof of consent for GDPR Article 7 and Israel’s Amendment 13, exportable for audits * Smart Script Blocking – blocks even hardcoded/inline scripts and iframe embeds (YouTube, Maps, etc.) * WPML / Polylang Integration – Per-visitor banner language on multilingual sites + 6 built-in languages (the free version is fully translatable via gettext) * Automatic Scanner & Cookie Categorization * Consent Dashboard (Analytics) * Premium Designs – 6 layouts * Priority support
Use Cases: * WordPress sites needing cookie consent * RTL language websites (Arabic, Hebrew, Persian) * Basic privacy compliance requirements
Design: LTR & RTL support ready out of the box.
Technical Details
Script Blocking Method:
Uses WordPress’s script_loader_tag filter to block tracking scripts at the server level until user consent.
Supported Scripts: * google-analytics * googleanalytics * gtag * gtm * google-tag-manager * facebook-pixel * fbpixel
Browser Compatibility: * Chrome 70+ * Firefox 65+ * Safari 12+ * Edge 79+
Performance: * Minimal impact on page load speed * Efficient consent checking * Clean, lightweight code
Privacy Policy
This plugin stores user consent in a cookie named nb_cookie_consent for 365 days. No personal data is transmitted to external servers. The plugin only enables/disables tracking scripts based on user consent.
Support
For support, please use the WordPress.org support forums. For priority support and advanced features, consider upgrading to NB Cookie Consent Pro.
Legal Notice
This plugin provides a technical tool for implementing cookie consent. The author does not provide legal advice and bears no responsibility for any damage, fine, or claim arising from the use of this plugin. It is strongly recommended to consult with a qualified legal expert to ensure compliance with applicable privacy and cookie regulations.
