[WordPress] 外掛分享: 410Gone Consent Manager for Google Consent Mode and GTM

首頁外掛目錄 › 410Gone Consent Manager for Google Consent Mode and GTM
WordPress 外掛 410Gone Consent Manager for Google Consent Mode and GTM 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
59 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.6.2 上架:2025-12-27

內容簡介

總結:410Gone Consent Manager for Google Consent Mode and GTM是一個輕量級的CMP,具有cookie橫幅、定制模式和Google Consent Mode v2 + Google Tag Manager兼容性。它包括管理員中的桌面/移動預覽,設計和標籤設置,以及多語言支持(Polylang、WPML或通過過濾器)。

問題與答案:
1. 這個WordPress外掛的主要功能是什麼?
- 主要功能是通過提供cookie橫幅、定制模式和Google Consent Mode v2 + Google Tag Manager兼容性來管理網站的用戶同意。

2. 如何設定外掛的外觀?
- 可以啟用/禁用CMP,通過使用顏色選取器選擇顏色(背景/預設文本,接受/定制按鈕)進行調整。同時在管理員中提供了實時桌面/移動預覽功能。

3. 如何進行文字的翻譯和多語言支持?
- 可以將所有文字保存在主要語言中,並且允許使用Polylang或WPML進行翻譯。對於其他多語言插件,可以使用cmp410gone_translate_setting過濾器進行自定義翻譯。

4. 如何解決一些問題或進行進階設置?
- 可調整同意保留時間、啟用調試模式和強制顯示進行測試。此外,還可以透過WP Rocket等優化工具排除"Delay JavaScript execution",並且啟用調試模式來跟踪同意過程。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.6.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「410Gone Consent Manager for Google Consent Mode and GTM」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

410Gone Consent Manager for Google Consent Mode and GTM is a lightweight CMP with a cookie banner, customization modal, and Google Consent Mode v2 + Google Tag Manager compatibility. It includes desktop/mobile previews in the admin, design and label settings, and multilingual support (Polylang, WPML, or via filter).
You can find the documentation in french for the plugin here : Official website for the consent managemet wordpress plugin(FR)
Key features

Configurable banner and “Customize” modal (titles, texts, buttons, links).
Editable palette (background, default text, accept/customize buttons) with color pickers.
Live desktop/mobile preview in the admin.
Automatic dataLayer/consent default injection in the and conditional GTM loading.
Tracking modes for analytics loading: all inclusive, hybrid, or GTM-only.
Shortcode [cmp410gone_manage_cookies] to display a “Manage my cookies” link in content.
Translation-ready for Polylang/WPML, with the cmp410gone_translate_setting filter for other multilingual plugins.
Advanced options: consent retention, debug console, force display for testing.

Configuration
Design

Enable/disable the CMP.
Choose colors (background/default text, Accept/Customize buttons) via color pickers with live preview.

Labels

Set banner and modal titles/text, plus button labels.
Add privacy policy and cookie policy URLs.

Tracking & configuration

Choose the tracking mode (all inclusive, hybrid, GTM-only).
Enter the GTM container ID (e.g. GTM-XXXXXXX).
Add the GA4 measurement ID if needed (e.g. G-XXXXXXXXXX).
Adjust wait_for_update (ms) for the consent default if needed.

Advanced

Consent retention duration (days).
Debug mode (console) and force display for testing.

Translations

Save your texts in the main language.
Polylang: go to Languages → String translations, group CMP 410gone, and translate each key (cmp410gone_banner_title, cmp410gone_btn_accept, etc.).
WPML: go to WPML → String Translation, domain CMP 410gone, then translate the same keys.
Other plugins: hook into the cmp410gone_translate_setting filter to provide custom translations.

Frontend usage

The banner and modal are injected automatically (wp_head, wp_footer).
The shortcode [cmp410gone_manage_cookies label="Manage my cookies"] displays a management link.
Third-party scripts should be controlled via GTM to respect consent choices.

External services
This plugin can load Google Tag Manager when you provide a GTM Container ID in the settings.

Service: Google Tag Manager (gtm.js and noscript iframe).
Data sent: the GTM container ID and the consent state stored in the dataLayer.
When: on page load, only if GTM is enabled in the plugin settings.
Terms: https://marketingplatform.google.com/about/tag-manager/
Privacy: https://policies.google.com/privacy

Troubleshooting

If using JS optimization (e.g. WP Rocket), exclude cmp.js/410gone-consent-manager from “Delay JavaScript execution”, then clear cache.
Enable debug mode to follow the consent flow in the console.

More information: https://www.410-gone.fr/blog/plugin-cmp-wordpress-gratuit-consent-mode-v2-gtm.html

延伸相關外掛

文章
Filter
Apply Filters
Mastodon