[WordPress] 外掛分享: LandexHub Consent – Cookie Banner, GDPR & Google Consent Mode v2

首頁 › 外掛目錄 › LandexHub Consent – Cookie Banner, GDPR & Google Consent Mode v2
WordPress 外掛 LandexHub Consent – Cookie Banner, GDPR & Google Consent Mode v2 的封面圖片
全新外掛
安裝啟用
—
尚無評分
4 天前
最後更新
—
問題解決
WordPress 6.3+ PHP 7.4+ v0.9.4 上架:2026-10-20

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.9.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「LandexHub Consent – Cookie Banner, GDPR & Google Consent Mode v2」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

LandexHub Consent is a lightweight, configurable cookie consent banner (cookie bar) for WordPress. It sets the Google Consent Mode v2 default before the Google tags it loads, lets you gate third-party scripts behind consent, checks your front page for sources that load before the visitor decides, and records a privacy-minimal proof of consent — all stored in your own WordPress. No visitor IP address is stored in the consent log, and the plugin sends no telemetry and no data of its own anywhere. Google tags you choose to configure talk to Google, as described under External services.
Features

Consent banner and preferences modal, responsive and accessible, with a live preview in the admin.
Four categories — necessary, analytics, marketing, personalization — mapped to Google Consent Mode v2 signals.
Google Consent Mode v2, advanced by default: measurement runs cookieless before consent and fully after. The denied default is printed early in , before the GTM container or gtag.js set in this plugin. Switch to basic if the gtag.js measurement ID set in this plugin should not load at all until the visitor agrees. A GTM container always loads; what each tag inside it does before consent is set in GTM.
Optional GTM / gtag.js loading — fill in your container or measurement ID (G-, AW- or DC-) and the plugin loads it right after its consent default.
Script gating — mark any script (inline or external) with type="text/plain" and data-consent-category (an external one keeps its address in data-src), or gate an enqueued script with the LandexHub_Consent::block_handle() PHP helper. The plugin runs it once the visitor consents to that category.
Site check — reads the HTML of your front page and lists the third-party scripts, embedded frames and known tracking pixels it recognises there, an estimate of who adds each one and whether consent governs it. Requests that scripts make later, other pages and the tags inside a GTM container are not checked. Each source that loads before consent comes with step-by-step instructions to gate it by hand.
Google tag order check — warns when a tag is configured before the consent default (it would measure without consent) or when the same container is loaded twice.
Services list — keep a list of the services your site uses with their consent category, and show it to visitors on your cookie policy page with the [landexhub_consent_services] shortcode or the “Services & cookies overview” block. A bundled catalog of 66 known services adds names, cookies and privacy policy links. Codes the site needs to work, such as payments, spam protection or pickup point maps, are listed apart as functional codes: they run without consent and are not reported as a problem.
Consent integrations — publishes the visitor’s decision through the WP Consent API standard for plugins that read it, and sends Google Consent Mode v2 signals that Google tags added by other plugins follow. Tested with Site Kit by Google (its own Consent Mode on or off) and MonsterInsights.
Proof-of-consent log in your own database (no IP address in the records), with filters, CSV/JSON export and 30-day statistics. Each record carries a fingerprint of the bar texts its page was shown with; when that fingerprint is not known, the texts current at the time are recorded and the record is marked so. You choose how long records are kept (3 months to 5 years, or until you delete them).
WordPress privacy tools integration (export/erase) and automatic cleanup of old records.
Three-step setup on first run, settings import/export, consent reset and a diagnostic report.
Admin translated into Czech, Slovak, Polish and German.
Multisite supported.

Privacy
The plugin reports nothing about your site or your visitors to anyone. The consent log is written to a table in your own site, without IP addresses. Scripts you configure yourself (GTM, gtag.js) are loaded from Google.
Plugin author: LandexHub — terms, privacy policy. LandexHub also makes a separate, optional add-on; this plugin does not need it.
Source code
Nothing in this plugin is minified, compressed or obfuscated. The JavaScript in assets/js/ is compiled from TypeScript, and those TypeScript sources ship with the plugin in the src/ folder together with the compiler configuration and build instructions (src/README.md). One command with the TypeScript compiler reproduces the shipped files byte for byte.
External services
This plugin does not call home and sends no telemetry. Depending on what you configure, it talks to the following services:
Google Tag Manager / Google tag (gtag.js) — optional, disabled by default. If you enter your own GTM container ID or gtag.js measurement ID in the plugin settings, the plugin embeds the standard Google snippet, and every visitor’s browser then loads the tag from www.googletagmanager.com (requests gtm.js or gtag/js). This is required for the measurement you configured to work. The plugin prints the Google Consent Mode v2 denied default before these tags, unless a developer turns that default off with the landexhub_consent_emit_consent_default filter. With a GTM container the plugin also prints Google’s

延伸相關外掛

文章
Filter
Mastodon