
內容簡介
總結:
Accept My Cookies 是一款輕巧且可自訂的 WordPress 外掛,可幫助您遵守 GDPR 及其他隱私法規。它顯示用戶友好的同意視窗,讓訪客接受或拒絕追蹤 Cookie。此外,該外掛支援 Google 同意模式,實現與 Google Analytics、廣告和標籤管理器的無縫整合。
問題與答案:
1. 這款外掛的主要功能有哪些?
- GDPR合規性:協助您遵守 GDPR 及其他隱私法規。
- 可自訂的同意橫幅:完全自訂文本、顏色和位置。
- Google 同意模式:支援 Google Analytics、廣告和標籤管理器的 Google 同意模式。
- 儲存選項:可選擇 Cookie 或本地儲存以儲存同意偏好。
- 可自訂切換按鈕:允許用戶自訂特定追蹤參數的同意偏好。
- 輕量級:對網站性能影響最小。
2. 這款外掛支援哪些 Google 同意模式功能?
- 預設將所有追蹤參數的同意設置為拒絕。
- 根據用戶偏好更新同意狀態為已核准。
- 與 Google Analytics、廣告和標籤管理器無縫整合。
3. 請說明如何自訂同意橫幅的各方面?
- 位置:可選擇底部、頂部、左側、右側或中央。
- 尺寸:設置橫幅大小為微小、標準或寬大。
- 顏色:自訂橫幅的背景、文本和按鈕顏色。
- 延遲:設置橫幅出現前的延遲時間(秒)。
4. 這款外掛連接到哪些外部服務?會發送什麼數據及何時發送?
- 外部服務:該外掛連接到 Google 標籤管理器以啟用 Google 同意模式,用於管理用戶對 Google 服務的同意。
- 發送的數據:外掛會將用戶的同意偏好(例如,analytics_storage、ad_storage、ad_user_data、ad_personalization)發送至 Google 標籤管理器。
- 時間:當用戶與同意橫幅互動時(例如,接受或拒絕 Cookie)發送該數據。
以上答案是根據提供的文章內容構建的問題與答案。
外掛標籤
開發者團隊
原文外掛簡介
Accept My Cookies is a lightweight and customizable WordPress plugin that helps you comply with GDPR and other privacy regulations. It displays a user-friendly consent modal, allowing visitors to accept or reject tracking cookies. The plugin supports Google Consent Mode for seamless integration with Google Analytics, Ads, and Tag Manager.
Key Features
GDPR Compliance: Helps you comply with GDPR and other privacy regulations.
Customizable Consent Banner: Fully customizable text, colors, and positioning.
Google Consent Mode: Supports Google Consent Mode for Google Analytics, Ads, and Tag Manager.
Storage Options: Choose between cookies or local storage for consent preferences.
Customizable Toggles: Allow users to customize their consent preferences for specific tracking parameters.
Lightweight: Minimal impact on site performance.
Cache and CDN Compatible: Having the option to store user choice in browser’s local storage, no need to worry about interference with caching systems or CDN.
Google Consent Mode
The plugin supports Google Consent Mode, allowing you to manage user consent for Google services. When enabled, the plugin will:
– Set default consent to denied for all tracking parameters.
– Update consent status to granted based on user preferences.
– Integrate seamlessly with Google Analytics, Ads, and Tag Manager.
Customization
You can customize the following aspects of the consent banner:
– Position: Choose from bottom, top, left, right, or center.
– Size: Set the banner size to tiny, normal, or wide.
– Colors: Customize the banner’s background, text, and button colors.
– Delay: Set a delay (in seconds) before the banner appears.
External services
This plugin provide options to you to connects to Google Tag Manager in order to enable Google Consent Mode, which is used to manage user consent for Google services such as Google Analytics, Google Ads, and Google Tag Manager.
What data is sent and when?
Data Sent: The plugin sends the user’s consent preferences (e.g., analytics_storage, ad_storage, ad_user_data, ad_personalization) to Google Tag Manager (https://www.googletagmanager.com/gtag/js?id=########).
When: This data is sent when the user interacts with the consent banner (e.g., accepting or rejecting cookies).
Links to Service Policies:
Google Tag Manager Terms of Service
Google Privacy Policy
Why is this necessary?
Google Consent Mode is required to ensure that no tracking occurs without user consent, helping you comply with GDPR and other privacy regulations. The plugin does not send any personally identifiable information (PII) to Google.
Configuration
After activating the plugin, follow these steps to configure it:
Go to Settings > Accept My Cookies in your WordPress admin dashboard.
Configure the following settings:
Consent Text: Customize the text displayed in the consent banner.
Learn More URL: Set the URL for the “Learn More” link.
Google Consent Mode: Enable Google Consent Mode and provide your Google Analytics ID.
Storage Method: Choose between cookies or local storage.
Banner Appearance: Customize the banner’s position, size, colors, and delay.
Save your changes.
1.4.3
Close button added to consent banner
Bug fix
1.4.0
Extract information from .log file
And show as line chart in Logging tab
1.3.1
Bug fix with showing Clarity toggle
Bug fix with adding opacity to hex colors
1.3.0
Microsoft Clarity has added as an option to consent banner
1.2.1
Passed the test with WordPress 6.8
1.2.0
Reduced exposed options as js object to only those needed
Restructured the classes dependency
1.1.0
Logging bug fixed to log all parameters with consent options
Cookies must be check by JavaScript too, to make work on caching systems on
Minor change in Persian translation
1.0.3
Minor bug fix in initial language detection
1.0.0
Release to WordPress Plugin Repository
0.6.4
Bug fix in stylings
Bug fix in default custom html value
Adding and editing Persian translation
0.6.3
Minor bug fix in stylings
0.6.2
Fixing wordpress plugin reviewer issues:
– Tested Up To Value is Out of Date, Invalid, or Missing
– Use wp_enqueue commands
– Undocumented use of a 3rd Party / external service
– Using load_plugin_textdomain() for loading the plugin translations is not needed for WordPress.org directory since WordPress 4.6.
– Variables and options must be escaped when echo’d
– Allowing Direct File Access to plugin files
0.6.1
Getting the custom HTML
Rendering custom HTML in the
0.5.1
Credit tab added to settings
0.5.0
Logging functionality has added
0.4.5
Adding status to submit button in settings page
Fixing input validator
0.4.3
Adding title for consent banner
Fixing text-domain load
Adding Persian language glossary
0.3.9
Submiting the plugin to WordPress plugin’s repo
License
Accept My Cookies is licensed under the GPLv3 or later.
Credits
Developed by Shayan Ghiaseddin.
Inspired by the need for Google Consent Mode on Google Digital Marketing platforms.
