NB Cookie Consent
NB Cookie Consent provides cookie consent functionality for WordPress websites with script blocking capabilities.
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) * Accessibility Ready (WCAG) – ARIA support, keyboard navigation, screen-reader friendly * 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: * Granular Consent Mode v2 – separate Analytics vs Marketing consent signals (basic Consent Mode v2 is included free) * Smart Script Blocking – blocks even hardcoded scripts * 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.
