Linux 软件免费装
Banner图

CookieVJ – Cookie Notice & Consent Banner

开发者 wpvishavjeet
更新时间 2025年12月14日 22:20
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

cookie privacy google tag manager gtm gdpr ccpa consent

下载

1.0.0 1.0.1

详情介绍:

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? Core Features Banner Customization Options Google Tag Manager Integration The plugin integrates seamlessly with Google Tag Manager: 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: Developer Information CookieVJ is built with developers in mind: Code Quality:

安装:

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

屏幕截图:

  • Bottom full-width banner position example
  • Bottom left corner banner position example
  • Bottom right corner banner position example
  • Color picker for background and button customization
  • Google Tag Manager settings section

升级注意事项:

1.0.1 Major update! Added Google Tag Manager integration with consent-based tag loading. Now includes GeoIP country detection and enhanced AJAX functionality for better compliance and user experience. 1.0.0 Initial release of CookieVJ. Simple, lightweight, and privacy-friendly cookie consent banner.

常见问题:

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:
  4. Top navigation bar (next to container name)
  5. Installation code snippet
  6. 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.

更新日志:

1.0.1 - 2024-12-14 1.0.0 - 2024-11-01