WP Manifestindependent plugin directory
manifest / privacy / cookiewoo

CookieWoo

πŸͺ GDPR cookie consent for WordPress + WooCommerce with Google Consent Mode v2 and GTM integration

by Gonzalo Bellido Β· github.com/gonbellido/cookiewoo Β· website

β˜… 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/gonbellido/cookiewoo/archive/refs/heads/main.zip

GDPR-compliant cookie consent banner for WordPress + WooCommerce with Google Consent Mode v2 and GTM integration.

✨ Features

  • 🎯 Google Consent Mode v2 β€” Updates gtag('consent', 'update', {...}) in real-time
  • 🏷️ GTM Compatible β€” Pushes consent to dataLayer for Google Tag Manager
  • πŸ” Auto-scan β€” Detects cookies set by plugins and scripts on your site
  • πŸ“Š Audit log β€” Tracks every consent action (accept, reject, customize)
  • 🎨 Customizable β€” Colors, position, text, categories β€” all from WP Admin
  • 🌐 Multi-language β€” Ready for translation via standard WP i18n
  • ⚑ Vanilla JS β€” No jQuery, under 10KB gzipped

πŸš€ Quick Start

  1. Install the plugin via WordPress Admin β†’ Plugins β†’ Add New β†’ Upload
  2. Go to Settings β†’ CookieWoo
  3. Configure your GTM container ID (optional)
  4. Customize the banner text and colors
  5. Done! The banner appears automatically

πŸ›  Tech Stack

  • PHP 7.4+ with OOP architecture
  • Vanilla JavaScript (ES6+), no framework dependencies
  • WordPress Settings API for admin configuration
  • Google Consent Mode v2 via gtag.js and dataLayer
  • GPL v2 licensed

πŸ“ Structure

cookiewoo/
β”œβ”€β”€ cookiewoo.php              # Plugin bootstrap
β”œβ”€β”€ includes/
β”‚   β”œβ”€β”€ class-cookiewoo.php    # Core consent logic
β”‚   β”œβ”€β”€ class-cookiewoo-admin.php  # Settings page
β”‚   └── class-cookiewoo-logger.php # Audit logging
β”œβ”€β”€ admin/                     # Admin panel CSS/JS
β”œβ”€β”€ public/                    # Frontend banner CSS/JS
└── languages/                 # i18n .po/.mo files

πŸ‘€ Author

Gonzalo Bellido β€” Fullstack Developer & WordPress Specialist