內容簡介
Nivaj Cookie Consent 是一款完整的 Cookie 同意管理解決方案,幫助 WordPress 網站遵循 GDPR、CCPA 等隱私法規,讓訪客能夠全面控制 Cookie 類別。
【主要功能】
• 類別基礎同意管理:必要、分析、行銷及功能類別可自訂
• 自動腳本阻擋:在用戶同意前阻擋腳本及 iframe
• Google Tag Manager 整合:內建 GTM 容器注入與同意整合
• Cookie 掃描器:偵測網站上的 Cookie 並自動分類
• 同意日誌:符合 GDPR 的記錄,包含 SHA-256 雜湊的 IP 和用戶代理
• 可自訂橫幅:位置、顏色、字型及按鈕樣式選項
外掛標籤
開發者團隊
原文外掛簡介
Nivaj Cookie Consent provides a complete cookie consent management solution for WordPress. It helps you comply with GDPR, CCPA, and other privacy regulations by giving visitors full control over cookie categories.
Features
Category-based consent: Necessary, Analytics, Marketing, and Functional categories (customizable)
Auto script blocking: Blocks scripts and iframes until the user consents to the appropriate category
Google Tag Manager: Built-in GTM container injection with consent integration
Google Consent Mode v2: Sends consent signals (ad_storage, analytics_storage, etc.) via dataLayer
DataLayer events: Custom events fired on consent changes for tag management
Consent logging: GDPR-compliant records with SHA-256 hashed IP and user agent
CSV export: Export consent log records for compliance audits
Cookie scanner: Detects cookies on your site and auto-categorizes 50+ known cookies
Analytics dashboard: Consent statistics with daily charts and category acceptance rates
Customizable banner: Position, colors, typography, button styles, and layout options
Shortcode: [nivaj_cookie_preferences] to place a cookie preferences button anywhere
Privacy policy snippet: Auto-generates a cookie table for your privacy policy page
Lightweight: Vanilla JavaScript with no jQuery dependency on the frontend
Accessible: ARIA attributes, keyboard navigation, and focus management
Multisite support: Independent settings and consent log per site
How It Works
Install and activate the plugin.
Go to Cookie Consent > Settings to configure banner text, categories, and integrations.
Customize the banner appearance under Cookie Consent > Appearance.
Define script blocking patterns under Cookie Consent > Scripts.
Run the Cookie Scanner to detect cookies on your site.
Monitor consent activity on the Cookie Consent > Dashboard.
Shortcode
Use [nivaj_cookie_preferences] to add a “Cookie Preferences” button anywhere on your site.
Attributes:
text – Button label (default: “Cookie Preferences”)
class – Additional CSS class
Example: [nivaj_cookie_preferences text="Manage Cookies" class="my-btn"]
Privacy
This plugin stores consent preferences in a browser cookie on the visitor’s device. When consent logging is active, IP addresses and user agents are stored as one-way SHA-256 hashes combined with the WordPress salt, making them non-reversible. No personal data is shared with external services by this plugin itself. See the “External services” section below for details on optional Google integrations.
External services
This plugin optionally connects to external services when the site administrator explicitly enables them. No external connections are made by default.
Google Tag Manager
When the administrator enables Google Tag Manager under Cookie Consent > Settings and provides a GTM container ID, this plugin loads the Google Tag Manager script from Google’s servers.
What it does: Loads a tag management container that can manage analytics, marketing, and other scripts on the site.
When it connects: On every frontend page load, only when GTM is enabled and a valid container ID (GTM-XXXXXXX) is configured.
Data sent: The GTM container ID is sent to Google’s servers to retrieve the container script. No personal visitor data is sent by this plugin directly; however, the loaded GTM container may collect data based on its own configuration.
Google Tag Manager Terms of Service
Google Privacy Policy
Google Consent Mode v2
When the administrator enables Google Consent Mode under Cookie Consent > Settings, this plugin sends consent signals to Google services via the browser’s dataLayer.
What it does: Communicates the visitor’s consent status (granted or denied) for ad storage, analytics storage, and personalization to Google services already running on the site.
When it connects: Consent default signals are set on page load. Consent update signals are sent when a visitor interacts with the cookie banner. This does not load any additional external scripts.
Data sent: Consent status values (granted/denied) for: ad_storage, ad_user_data, ad_personalization, analytics_storage, functionality_storage, personalization_storage, security_storage.
Google Consent Mode documentation
Google Privacy Policy
Cookie Scanner (local only)
The Cookie Scanner feature makes an HTTP request to your own site’s homepage to detect cookies and scripts. It does not connect to any external service.
