CookieVJ – Cookie Notice & Consent Banner

Descripció

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.

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

Support

Need Help?

Privacy Policy

Data Collection

CookieVJ stores minimal data to function:

GeoIP Service:
* Uses ipapi.co’s free GeoIP service to determine user country
* Country code is logged temporarily for compliance targeting
* No personally identifiable information (PII) is stored
* No data is shared with third parties

Third-Party Services

  • GeoIP Data: Provided by ipapi.co (free tier)

Love CookieVJ? Please leave a review ⭐⭐⭐⭐⭐

Captures

  • Bottom left corner banner position example
  • Bottom full-width Mobile banner position example
  • Bottom full-width banner position example
  • Settings page – Configure your cookie banner and GTM integration
  • Color picker for background and button customization & Google Tag Manager settings section
  • Report Dashboard

Instal·lació

Automatic Installation (Recommended)

  1. Log in to your WordPress admin panel
  2. Navigate to Plugins Add New
  3. Search for “CookieVJ”
  4. Click “Install Now” and then “Activate”
  5. Go to Settings CookieVJ to configure

Manual Installation

  1. Download the plugin zip file
  2. Log in to your WordPress admin panel
  3. Navigate to Plugins Add New Upload Plugin
  4. Choose the downloaded zip file and click “Install Now”
  5. Click “Activate Plugin”
  6. Go to Settings CookieVJ to configure

Quick Start Configuration

  1. Go to Settings CookieVJ
  2. Enable the cookie banner
  3. Customize the message and button text (optional)
  4. Choose colors and position (optional)
  5. (Optional) Add your Google Tag Manager container ID (GTM-XXXXXXX)
  6. Click “Save Changes”
  7. Visit your website to see the banner in action!

Setting Up Google Tag Manager

  1. Log in to your Google Tag Manager account
  2. Select your container and copy the container ID (format: GTM-XXXXXXX)
  3. Paste the container ID in CookieVJ Settings Google Tag Manager
  4. Save changes
  5. GTM will now load only after users accept cookies
  6. (Advanced) Use window.cookievjConsent in GTM triggers to check consent status

PMF

Does this plugin block cookies automatically?

No, this plugin displays a consent banner to inform users about cookie usage. You’ll need to implement cookie blocking logic based on user consent in your custom code or use additional plugins. The plugin provides the window.cookievjConsent JavaScript variable and PHP $_COOKIE['cookievj_cookie_consent'] to check consent status.

Is this plugin GDPR compliant?

This plugin provides the essential tools to display a cookie consent banner and obtain user consent, which is a key requirement for GDPR compliance. However, full GDPR compliance depends on your entire website setup, including how you handle data collection, storage, and processing. Please consult with a legal professional for complete compliance guidance.

Can I customize the banner design?

Yes! You can customize:
* Background color (with color picker)
* Button color (with color picker)
* Banner position (bottom full width, bottom left, bottom right)
* All text content (message, button labels)
* Banner message supports HTML for links and formatting

Can I translate the plugin?

Yes! The plugin is fully translation-ready. All user-facing strings are wrapped in translation functions. You can translate it using:
* WordPress.org translation system
* Loco Translate plugin
* WPML
* Polylang
* Poedit with the included .pot file

How does Google Tag Manager integration work?

When you add your GTM container ID in settings, the plugin will:
1. Wait for user consent before loading GTM
2. Load the GTM script only after the user clicks “Accept”
3. Push consent events to the dataLayer
4. Make consent status available via window.cookievjConsent

This ensures compliance with privacy regulations by preventing tracking before consent.

Where do I find my GTM container ID?

  1. Log in to Google Tag Manager
  2. Select your container
  3. Find the container ID (format: GTM-XXXXXXX) in:
    • Top navigation bar (next to container name)
    • Installation code snippet
    • Container settings

Can I use GTM without showing the cookie banner?

No, for compliance reasons, the GTM script will only load after explicit user consent when the cookie banner is enabled. This is a core privacy feature to ensure you’re not tracking users without their permission.

Does this work with Google Consent Mode?

Yes, the plugin is compatible with Google Consent Mode v2. The consent status is available via JavaScript and dataLayer events, allowing you to configure consent mode settings in your GTM container based on user choices.

Will this slow down my website?

No. CookieVJ is extremely lightweight:
* Minified JavaScript: < 5KB
* No jQuery dependency
* Loads asynchronously
* Minimal CSS
* No external requests (except optional GeoIP)

Is there a way to reset user consent for testing?

Yes, delete the cookievj_cookie_consent cookie from your browser’s developer tools (Application/Storage tab) or use an incognito window for testing.

Does it track users who reject cookies?

No. When users click “Reject,” only their rejection choice is stored in a cookie. No tracking scripts (including GTM) are loaded, and no analytics data is collected.

Ressenyes

No hi ha ressenyes per a este complement.

Col·laboradors i desenvolupadors

«CookieVJ – Cookie Notice & Consent Banner» és programari de codi obert. La següent gent ha col·laborat en este complement.

Col·laboradors

Registre de canvis

1.0.1 – 2024-12-14

  • New: Added Google Tag Manager integration
  • New: Added GTM container ID field in settings
  • New: Implemented consent-based GTM script loading
  • New: Added dataLayer push for consent events
  • New: Added GeoIP integration to fetch and log user country
  • Enhancement: Enhanced settings page with GTM configuration section
  • Enhancement: Updated reject button to log consent status via AJAX
  • Enhancement: Improved banner message to support HTML content
  • Enhancement: Improved documentation for GTM setup

1.0.0 – 2024-11-01

  • Initial release
  • Cookie consent banner with customizable design
  • GDPR & CCPA compliance features
  • Multiple banner positions
  • Color customization
  • Translation ready