CookieVJ helps your website comply with GDPR and CCPA regulations by displaying a customizable cookie consent banner to inform visitors about cookie usage and obtain their consent. Now with Google Tag Manager integration for seamless analytics and marketing tag management.
Why Choose CookieVJ?
- Zero Configuration Hassle - Works out of the box with sensible defaults
- Privacy First - GDPR and CCPA compliant by design
- Lightweight & Fast - Minimal JavaScript, no jQuery dependency
- Developer Friendly - Extensive hooks, filters, and clean code
- Translation Ready - Fully compatible with WPML, Polylang, and translation plugins
Core Features
- Easy Setup - Configure in minutes from Settings → CookieVJ
- GDPR & CCPA Compliant - Meet privacy regulations without legal headaches
- Google Tag Manager Integration - Add your GTM container ID and manage tags based on consent
- Customizable Design - Choose colors, position, and button text to match your brand
- Multiple Positions - Display banner at bottom (full width), bottom left, or bottom right
- Lightweight Performance - Minimal impact on page load speed (< 5KB minified)
- Cookie-Based Storage - Uses proper browser cookies (not localStorage)
- Translation Ready - Fully translatable with .pot file included
- Clean Code - Object-oriented architecture following WordPress coding standards
- GeoIP Integration - Automatically fetch and log user country using a free GeoIP service
- Consent-Based Tag Loading - GTM tags respect user consent choices
- No External Dependencies - Everything runs on your server
Banner Customization Options
- Enable/Disable cookie banner
- Customize banner message (supports HTML)
- Change accept/reject button text
- Choose banner position (bottom full width, bottom left, bottom right)
- Select background color with color picker
- Select button color with color picker
- Add Google Tag Manager container ID
- Set cookie expiration time (filterable)
Google Tag Manager Integration
The plugin integrates seamlessly with Google Tag Manager:
- Simple Setup - Just add your GTM container ID (GTM-XXXXXXX) in the settings
- Consent-Based Loading - GTM script loads automatically only after user accepts cookies
- JavaScript API - Consent status available via
window.cookievjConsent for conditional tag firing
- DataLayer Events - Automatic dataLayer push events for consent changes
- Consent Mode v2 - Compatible with Google Consent Mode v2 for enhanced privacy
- No Code Required - Works immediately without custom JavaScript
Privacy & Compliance
This plugin helps you display cookie consent notices but does not provide legal advice. Please consult with a legal professional to ensure your website complies with applicable privacy laws.
What We Store:
- Consent status (accepted/rejected) in a cookie
- User's country code (temporary, for compliance targeting)
- No personally identifiable information (PII)
- No tracking without consent
Developer Information
CookieVJ is built with developers in mind:
Code Quality:
- Object-oriented architecture
- PSR-4 autoloading
- Proper sanitization and escaping
- Nonce verification for security
- Translation-ready with all strings wrapped
- No jQuery dependency
- Follows WordPress coding standards
View full documentation | Report Issues
Automatic Installation (Recommended)
- Log in to your WordPress admin panel
- Navigate to Plugins → Add New
- Search for "CookieVJ"
- Click "Install Now" and then "Activate"
- Go to Settings → CookieVJ to configure
Manual Installation
- Download the plugin zip file
- Log in to your WordPress admin panel
- Navigate to Plugins → Add New → Upload Plugin
- Choose the downloaded zip file and click "Install Now"
- Click "Activate Plugin"
- Go to Settings → CookieVJ to configure
Quick Start Configuration
- Go to Settings → CookieVJ
- Enable the cookie banner
- Customize the message and button text (optional)
- Choose colors and position (optional)
- (Optional) Add your Google Tag Manager container ID (GTM-XXXXXXX)
- Click "Save Changes"
- Visit your website to see the banner in action!
Setting Up Google Tag Manager
- Log in to your Google Tag Manager account
- Select your container and copy the container ID (format: GTM-XXXXXXX)
- Paste the container ID in CookieVJ Settings → Google Tag Manager
- Save changes
- GTM will now load only after users accept cookies
- (Advanced) Use
window.cookievjConsent in GTM triggers to check consent status