Plugin Directory

Changeset 3829204


Ignore:
Timestamp:
11/27/2026 10:13:09 AM (less than one hour ago)
Author:
landexhub
Message:

Readme: clearer structure, benefits, shorter FAQ (no code change)

Location:
landexhub-consent
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • landexhub-consent/tags/1.0.2/readme.txt

    r3827474 r3829204  
    11=== LandexHub Consent – Cookie Banner, GDPR & Google Consent Mode v2 ===
    22Contributors: landexhub
    3 Tags: cookie-consent, cookie-banner, gdpr, consent-mode, cookies
     3Tags: cookie-consent, cookie-banner, gdpr, consent-mode, cookie-notice
    44Requires at least: 6.3
    55Tested up to: 7.1
    … …  
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Cookie banner for GDPR with Google Consent Mode v2, script gating, site diagnostics and consent logging. No cloud service required.
     11Cookie banner with Google Consent Mode v2, a site check and a consent log. No account, no cloud, no visitor limits.
    1212
    1313== Description ==
    1414
    15 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.
    16 
    17 Installation and first setup, step by step:
     15A WordPress cookie consent banner that sets Google Consent Mode v2 in the right order, finds the scripts that run without consent and keeps proof of consent in your own WordPress.
     16
     17= Why LandexHub Consent =
     18
     19* **Google measures correctly from the first visit.** The Consent Mode v2 default is printed before the Google tags, so no tag measures without consent. The plugin warns you when the order is wrong.
     20* **You know what your site loads without consent.** The site check finds third-party scripts, frames and pixels, shows who adds them and explains how to gate each one.
     21* **No account, no cloud, no monthly fee.** Everything runs in your WordPress, with no limit on visits or pages.
     22* **Your data stays with you.** The consent log is in your own database, without IP addresses. The plugin sends no telemetry.
     23* **Your site stays fast.** The banner script is about 16 kB gzipped, loads deferred and needs no jQuery on the front end.
     24* **Respects Global Privacy Control.** When the visitor's browser sends the signal, marketing stays off. You can turn this off.
     25* **Works with other plugins.** Supports the WP Consent API standard. Tested with Site Kit by Google and MonsterInsights.
     26
     27= Who it is for =
     28
     29* Business sites, online stores, blogs and agency sites using Google Analytics, Google Ads, GTM or Meta Pixel.
     30* Anyone who wants Consent Mode v2 set up correctly without paying for a cloud service.
     31
     32= When it is not the right tool =
     33
     34* If you show personalised ads through Google AdSense or Ad Manager to visitors in the EEA or the UK, Google requires a CMP certified for IAB TCF. This plugin does not support TCF.
     35
     36= Features =
     37
     38**Banner**
     39
     40* Banner and settings dialog with a live preview in the admin.
     41* Four categories: necessary, analytics, marketing, personalization.
     42* A small icon or a footer link lets visitors change their choice at any time.
     43
     44**Google**
     45
     46* Consent Mode v2 in advanced (default) or basic mode.
     47* Optional loading of GTM or gtag.js, including your own tag domain for server-side GTM.
     48* Checks the tag order and warns about a container loaded twice.
     49
     50**Site check and services**
     51
     52* Checks your front page and shows how to gate each source it finds.
     53* Catalog of 99 known services with their cookies and privacy policy links.
     54* A list of your services for the cookie policy page, as a shortcode or a block.
     55
     56**Consent log**
     57
     58* Proof of consent with a fingerprint of the banner texts, filters and CSV/JSON export.
     59* Keep records from 3 months to 5 years. Connected to the WordPress tools for exporting and erasing personal data.
     60
     61**More**
     62
     63* Three-step setup, settings import and export, diagnostic report.
     64* Admin in Czech, Slovak, Polish and German. Multisite supported.
     65* For developers: script gating with `data-consent-category`, a PHP helper, hooks and a JS API. [Documentation](https://docs.landexhub.com/consent?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     66
     67= Setup in three steps =
     68
     691. Install and activate the plugin.
     702. The wizard walks you through appearance, measurement and the site check.
     713. Gate the scripts the check finds, following the guide next to each one.
     72
     73Installation and first setup on video:
    1874
    1975https://www.youtube.com/watch?v=24U4BTRcSnw
    2076
    21 **Features**
    22 
    23 * Consent banner and preferences modal, responsive and accessible, with a live preview in the admin.
    24 * Four categories — necessary, analytics, marketing, personalization — mapped to Google Consent Mode v2 signals.
    25 * Global Privacy Control — when the visitor's browser sends the signal, "Accept all" leaves marketing off and the banner says why; the visitor can still turn marketing on in the settings. On by default, can be turned off.
    26 * Google Consent Mode v2, **advanced by default**: measurement runs cookieless before consent and fully after. The `denied` default is printed early in `<head>`, 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.
    27 * 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.
    28 * 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.
    29 * 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.
    30 * 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.
    31 * 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 99 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.
    32 * 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.
    33 * 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).
    34 * WordPress privacy tools integration (export/erase) and automatic cleanup of old records.
    35 * Three-step setup on first run, settings import/export, consent reset and a diagnostic report.
    36 * Admin translated into Czech, Slovak, Polish and German.
    37 * Multisite supported.
    38 
    39 **Privacy**
    40 
    41 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.
     77= Privacy and source code =
     78
     79The plugin sends nothing to anyone. Google tags you set up yourself talk to Google, see External services. Nothing is minified or obfuscated: the TypeScript sources of the JavaScript ship in the `src/` folder with build instructions (`src/README.md`), and one compiler command reproduces the shipped files byte for byte.
    4280
    4381Plugin author: LandexHub — [terms](https://landexhub.com/terms), [privacy policy](https://landexhub.com/privacy). LandexHub also makes a separate, optional add-on; this plugin does not need it.
    4482
    45 **Source code**
    46 
    47 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.
    48 
    4983== External services ==
    5084
    51 This plugin does not call home and sends no telemetry. Depending on what **you** configure, it talks to the following services:
    52 
    53 **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 `<noscript>` frame right after the opening `<body>` tag (in themes that call `wp_body_open()`), as in Google's installation instructions: visitors without JavaScript then load `ns.html` from `www.googletagmanager.com`. Without JavaScript there is no consent bar and no Consent Mode default, so that request carries no consent state. What Google receives with those requests (IP address, user agent, page URL, consent state signals) is described in Google's documentation: [Google Terms of Service](https://policies.google.com/terms), [Google Privacy Policy](https://policies.google.com/privacy). If you also enter your own tag domain (for a server-side Google Tag Manager container or the Google tag gateway), the same requests go to that address instead of `www.googletagmanager.com`: to a server you or your provider run, which may pass data on to Google as you configure it. If you leave the ID empty, this plugin loads nothing from Google or from that address.
    54 
    55 **Your own site (loopback)** — the site check fetches your own homepage over HTTP (a loopback request to your own server) to scan the HTML for third-party scripts and the Google tag order. No external service is involved.
     85This plugin does not call home and sends no telemetry. Depending on what **you** configure, it talks to the following services.
     86
     87**Google Tag Manager / Google tag (gtag.js)** — optional, disabled by default.
     88
     89* **When:** only if you enter your own GTM container ID or gtag.js measurement ID in the plugin settings. If you leave the ID empty, this plugin loads nothing from Google.
     90* **What:** the plugin embeds the standard Google snippet and every visitor's browser loads the tag from `www.googletagmanager.com` (`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 it off with the `landexhub_consent_emit_consent_default` filter.
     91* **Without JavaScript:** with a GTM container the plugin also prints Google's `<noscript>` frame right after the opening `<body>` tag (in themes that call `wp_body_open()`), as in Google's installation instructions. Visitors without JavaScript then load `ns.html` from `www.googletagmanager.com`. Without JavaScript there is no consent bar and no Consent Mode default, so that request carries no consent state.
     92* **Data sent:** what Google receives with those requests (IP address, user agent, page URL, consent state signals) is described by Google: [Google Terms of Service](https://policies.google.com/terms), [Google Privacy Policy](https://policies.google.com/privacy).
     93* **Your own tag domain:** if you also enter one (for a server-side GTM container or the Google tag gateway), the same requests go to that address instead of `www.googletagmanager.com` — to a server you or your provider run, which may pass data on to Google as you configure it.
     94
     95**Your own site (loopback)** — the site check fetches your own front page over HTTP (a request to your own server) to scan the HTML for third-party scripts and the Google tag order. No external service is involved.
    5696
    5797There are no other remote requests: no telemetry, no fonts, no CDNs. Links to the LandexHub website open in a new tab and send nothing by themselves.
    … …  
    63103== Installation ==
    64104
    65 1. Upload the plugin to `/wp-content/plugins/landexhub-consent`, or install it from Plugins → Add New.
    66 2. Activate the plugin.
    67 3. The three-step setup (appearance → measurement → site check) opens on first run; everything then lives under four tabs — Appearance, Services, Diagnostics, Advanced.
    68 4. Gate third-party scripts with `type="text/plain"` and `data-consent-category` — the Services page shows what was found and how to gate each source (guide: https://docs.landexhub.com/consent/blocking-scripts).
     1051. Install the plugin from Plugins → Add New, or upload it to `/wp-content/plugins/landexhub-consent`.
     1062. Activate it.
     1073. The three-step setup (appearance → measurement → site check) opens on first run. Everything then lives under four tabs: Appearance, Services, Diagnostics, Advanced.
     1084. Gate the third-party scripts the Services page lists. Guide: [Blocking scripts](https://docs.landexhub.com/consent/blocking-scripts?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
    69109
    70110== Frequently Asked Questions ==
    71111
     112= Does it support Google Consent Mode v2 and GTM? =
     113
     114Yes. The `denied` default is printed before the GTM container or gtag.js, and advanced mode is the default. Set consent requirements on the tags inside GTM: Custom HTML and non-Google tags do not follow Consent Mode by themselves. Guide: [Google, GTM and Consent Mode v2](https://docs.landexhub.com/consent/google-gtm?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     115
     116= GTM says "A tag read consent state before a default was set". What now? =
     117
     118A Google tag starts before the plugin's default: usually the container is inserted above `wp_head()` or by another plugin. Let LandexHub Consent load the container, or move your snippet below `wp_head()`. Guide: [Load order](https://docs.landexhub.com/consent/google-gtm?utm_source=wporg&utm_medium=readme&utm_campaign=consent#load-order-%E2%80%94-the-heart-of-it)
     119
     120= GA4 shows fewer visits after installing the banner. Is it broken? =
     121
     122No. Before consent, Consent Mode measures without cookies and Google fills the gap by modelling. If measurement stopped completely, check that you did not gate gtag.js by hand. Details: [FAQ](https://docs.landexhub.com/consent/faq?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     123
     124= How do I block Meta Pixel or TikTok until consent? =
     125
     126Consent Mode is a Google mechanism; other services must be gated. Mark the script with `type="text/plain" data-consent-category="marketing"` (an external script keeps its address in `data-src`), or use the `LandexHub_Consent::block_handle()` PHP helper. The site check shows which scripts need it. Guide: [Blocking scripts](https://docs.landexhub.com/consent/blocking-scripts?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     127
     128= How do I load YouTube or Google Maps only after consent? =
     129
     130Embeds are iframes, and marking the tag does not hold them back. Replace the embed with a link or a preview image, or use a click-to-load plugin that follows consent. Guide: [Iframes](https://docs.landexhub.com/consent/blocking-scripts?utm_source=wporg&utm_medium=readme&utm_campaign=consent#iframes-marking-the-tag-does-not-work)
     131
     132= The banner does not show on my live site. =
     133
     134Usually you already made a choice (try a private window) or a cache serves an old copy of the page. After saving, clear your caching plugin, the server cache and the CDN. Step by step: [Banner is not showing](https://docs.landexhub.com/consent/banner-not-showing?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     135
     136= Does it pass consent to Site Kit, WooCommerce and other plugins? =
     137
     138Yes, through the WP Consent API (install the free WP Consent API plugin) and through Google Consent Mode v2. Site Kit by Google and MonsterInsights were tested end to end. Google Analytics for WooCommerce and Google for WooCommerce are known to read the WP Consent API but were not tested by us. Details: [Consent integrations](https://docs.landexhub.com/consent/integrations?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     139
    72140= Does it store visitors' IP addresses? =
    73141
    74 Not in the consent log. It is privacy-minimal: it stores a random consent identifier, the chosen categories, a timestamp, the page path, a fingerprint of the bar texts and whether the choice was made while the site respected the visitor's Global Privacy Control signal. To limit abuse of the recording, a request counter is kept under a salted hash of the visitor's IP address; it expires after 10 minutes.
     142Not in the consent log. A record holds a random consent ID, the chosen categories, the time, the page path, a fingerprint of the banner texts and whether Global Privacy Control applied. Against abuse, a request counter is kept under a salted hash of the IP address for 10 minutes.
     143
     144= Does it send data to third parties? =
     145
     146The plugin itself sends nothing. Google tags you configure talk to Google (see External services), and scripts you gate talk to their providers after consent.
     147
     148= Can visitors change or withdraw consent? =
     149
     150Yes, at any time, through the icon, a footer link, a shortcode or block, or `LandexHubConsent.openSettings()`. A script that already ran on the current page stays inactive from the next page load on.
    75151
    76152= How do I handle a privacy request from an anonymous visitor? =
    77153
    78 A record of an anonymous visitor has no IP address, e-mail or other identifier besides its random consent ID, so the log alone cannot tie it to a person (GDPR art. 11). A visitor can identify their own records with their consent ID, shown at the bottom of the consent settings dialog. Search the Consent log for that ID to show or export the records; an erase button deletes them. Logged-in users are covered by the standard WordPress Export/Erase Personal Data tools.
    79 
    80 = Does it send data to third parties? =
    81 
    82 The plugin itself sends nothing: no telemetry, and consent records stay in your WordPress. If you configure a GTM container or a Google measurement ID, your visitors' browsers load those Google tags and they communicate with Google — see External services. Scripts you gate run only after consent and then talk to their own providers.
    83 
    84 = Does it support Google Consent Mode v2? =
    85 
    86 Yes, in advanced mode (the default) or basic mode. In advanced mode Google tags load before consent and send cookieless signals until the visitor agrees; in basic mode the gtag.js ID set in this plugin loads only after consent. The `denied` default is printed before the GTM container or gtag.js set in this plugin. If you set your own consent default elsewhere, turn the plugin's default off with the `landexhub_consent_emit_consent_default` filter; it is not detected automatically.
    87 
    88 = Can I block Google Analytics / Meta Pixel until consent? =
    89 
    90 Mark the script tag with `type="text/plain" data-consent-category="marketing"`; for an external script also move its address from `src` to `data-src`. Or gate an enqueued script with the `LandexHub_Consent::block_handle( $handle, 'marketing' )` PHP helper. Google tags loaded through GTM or gtag.js follow Google Consent Mode, so they are usually not blocked; make sure the tags in your GTM container use consent settings — Custom HTML tags and non-Google tags in a container do not follow Consent Mode by themselves. Guide: [Blocking scripts](https://docs.landexhub.com/consent/blocking-scripts).
    91 
    92 = Can visitors change or withdraw their consent later? =
    93 
    94 Yes, always. By default a small floating icon appears after the first choice; you can switch to a "Cookie settings" link in the site footer instead, place the `[landexhub_consent_settings]` shortcode or the "Cookie settings link" block anywhere, or call `LandexHubConsent.openSettings()` from your own link. A change updates Google Consent Mode and the WP Consent API immediately. One technical honesty note: a third-party script that already ran on the current page cannot be un-run — after a withdrawal it stays inactive from the next page load on.
    95 
    96 = What does the site check do? =
    97 
    98 It fetches your own front page (a request to your own server) and lists the third-party scripts, embedded frames and known tracking pixels it recognises in the HTML, who adds each of them and whether consent governs it. For every source that loads before consent it shows how to gate it by hand. It only sees the front page — a source that loads only on a subpage does not show up there.
    99 
    100 = Does it pass consent to other plugins? =
    101 
    102 Through two channels. When the free WP Consent API plugin is installed, the plugin publishes the visitor's decision on that shared standard, both in the browser and for `wp_has_consent()` in PHP, so plugins that read it can follow it. Google tags added by other plugins follow the Google Consent Mode v2 signals the plugin sends, as long as they load after its default.
    103 
    104 Tested end to end (first visit, accept, reload, withdrawal, consent reset): Site Kit by Google with its own Consent Mode on (it then reads the WP Consent API) and off (its Google tag follows Consent Mode), and MonsterInsights with a manually entered GA4 ID (its tag follows Consent Mode; it does not read the WP Consent API). Other plugins were not tested; check them on your site.
    105 
    106 = Can I show visitors a list of the services this site uses? =
    107 
    108 Yes — put the `[landexhub_consent_services]` shortcode (or the "Services & cookies overview" block) on your cookie policy page. It renders a table of the services found on your front page and the ones in your services list, with consent category, known cookies and privacy policy links. It is generated technical data, not legal advice.
     154The visitor finds their consent ID at the bottom of the consent settings dialog. Search the consent log for it to export or erase the records. Logged-in users are covered by the WordPress Export/Erase Personal Data tools.
    109155
    110156= Does the plugin make my site GDPR compliant? =
    111157
    112 No plugin can do that on its own. LandexHub Consent provides the technical tools — consent banner, script gating, proof of consent, data export and erasure. Whether your site complies depends on how it is configured and on what it does; that responsibility stays with the site owner.
     158No plugin can do that on its own. LandexHub Consent provides the technical tools: consent banner, script gating, proof of consent, data export and erasure. Compliance depends on how the site is set up and what it does; that responsibility stays with the site owner.
    113159
    114160= Does it support IAB TCF? =
    115161
    116 No. The plugin does not implement the IAB Transparency & Consent Framework (no TC string, no registered CMP ID). If your site serves personalised ads through Google AdSense or Ad Manager to visitors in the EEA/UK, Google requires a TCF-certified CMP — this plugin is not the right tool for that setup. For sites without ad networks (analytics, marketing pixels, embeds), Consent Mode v2 and script gating cover the consent flow.
     162No, see "When it is not the right tool" above.
    117163
    118164== Screenshots ==
    … …  
    179225= 1.0.1 =
    180226Respects the Global Privacy Control signal: "Accept all" leaves marketing off while the visitor's browser sends it. On by default.
    181 
    182 = 1.0.0 =
    183 First stable release. The banner no longer takes your theme's button styles; sites that never saved their settings switch to the consent-change icon.
    184 
    185 = 0.9.6 =
    186 Google tags can load from your own tag domain (server-side GTM, Google tag gateway).
    187 
    188 = 0.9.5 =
    189 The banner script loads deferred and no longer blocks page rendering; a returning visitor's choice still reaches Google tags before they start. Custom code that calls window.LandexHubConsent while the page loads must wait for the landexhub-consent:ready event.
    190 
    191 = 0.9.4 =
    192 Functional codes (payments, spam protection, pickup points) are listed apart and never reported as a problem; Services shows where each source comes from; a larger catalog and a more precise site check. URL passthrough is now an opt-in setting.
    193 
    194 = 0.9.3 =
    195 GTM triggers on the consent event fire wherever the container is printed in the page. Fixes in the Services page: "Verify the edit" returns to the service, no duplicate rows for inline sources, necessary services are not reported as problems.
    196 
    197 = 0.9.2 =
    198 Configurable consent log retention, opt-in credit link and stricter settings validation.
  • landexhub-consent/trunk/readme.txt

    r3827474 r3829204  
    11=== LandexHub Consent – Cookie Banner, GDPR & Google Consent Mode v2 ===
    22Contributors: landexhub
    3 Tags: cookie-consent, cookie-banner, gdpr, consent-mode, cookies
     3Tags: cookie-consent, cookie-banner, gdpr, consent-mode, cookie-notice
    44Requires at least: 6.3
    55Tested up to: 7.1
    … …  
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Cookie banner for GDPR with Google Consent Mode v2, script gating, site diagnostics and consent logging. No cloud service required.
     11Cookie banner with Google Consent Mode v2, a site check and a consent log. No account, no cloud, no visitor limits.
    1212
    1313== Description ==
    1414
    15 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.
    16 
    17 Installation and first setup, step by step:
     15A WordPress cookie consent banner that sets Google Consent Mode v2 in the right order, finds the scripts that run without consent and keeps proof of consent in your own WordPress.
     16
     17= Why LandexHub Consent =
     18
     19* **Google measures correctly from the first visit.** The Consent Mode v2 default is printed before the Google tags, so no tag measures without consent. The plugin warns you when the order is wrong.
     20* **You know what your site loads without consent.** The site check finds third-party scripts, frames and pixels, shows who adds them and explains how to gate each one.
     21* **No account, no cloud, no monthly fee.** Everything runs in your WordPress, with no limit on visits or pages.
     22* **Your data stays with you.** The consent log is in your own database, without IP addresses. The plugin sends no telemetry.
     23* **Your site stays fast.** The banner script is about 16 kB gzipped, loads deferred and needs no jQuery on the front end.
     24* **Respects Global Privacy Control.** When the visitor's browser sends the signal, marketing stays off. You can turn this off.
     25* **Works with other plugins.** Supports the WP Consent API standard. Tested with Site Kit by Google and MonsterInsights.
     26
     27= Who it is for =
     28
     29* Business sites, online stores, blogs and agency sites using Google Analytics, Google Ads, GTM or Meta Pixel.
     30* Anyone who wants Consent Mode v2 set up correctly without paying for a cloud service.
     31
     32= When it is not the right tool =
     33
     34* If you show personalised ads through Google AdSense or Ad Manager to visitors in the EEA or the UK, Google requires a CMP certified for IAB TCF. This plugin does not support TCF.
     35
     36= Features =
     37
     38**Banner**
     39
     40* Banner and settings dialog with a live preview in the admin.
     41* Four categories: necessary, analytics, marketing, personalization.
     42* A small icon or a footer link lets visitors change their choice at any time.
     43
     44**Google**
     45
     46* Consent Mode v2 in advanced (default) or basic mode.
     47* Optional loading of GTM or gtag.js, including your own tag domain for server-side GTM.
     48* Checks the tag order and warns about a container loaded twice.
     49
     50**Site check and services**
     51
     52* Checks your front page and shows how to gate each source it finds.
     53* Catalog of 99 known services with their cookies and privacy policy links.
     54* A list of your services for the cookie policy page, as a shortcode or a block.
     55
     56**Consent log**
     57
     58* Proof of consent with a fingerprint of the banner texts, filters and CSV/JSON export.
     59* Keep records from 3 months to 5 years. Connected to the WordPress tools for exporting and erasing personal data.
     60
     61**More**
     62
     63* Three-step setup, settings import and export, diagnostic report.
     64* Admin in Czech, Slovak, Polish and German. Multisite supported.
     65* For developers: script gating with `data-consent-category`, a PHP helper, hooks and a JS API. [Documentation](https://docs.landexhub.com/consent?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     66
     67= Setup in three steps =
     68
     691. Install and activate the plugin.
     702. The wizard walks you through appearance, measurement and the site check.
     713. Gate the scripts the check finds, following the guide next to each one.
     72
     73Installation and first setup on video:
    1874
    1975https://www.youtube.com/watch?v=24U4BTRcSnw
    2076
    21 **Features**
    22 
    23 * Consent banner and preferences modal, responsive and accessible, with a live preview in the admin.
    24 * Four categories — necessary, analytics, marketing, personalization — mapped to Google Consent Mode v2 signals.
    25 * Global Privacy Control — when the visitor's browser sends the signal, "Accept all" leaves marketing off and the banner says why; the visitor can still turn marketing on in the settings. On by default, can be turned off.
    26 * Google Consent Mode v2, **advanced by default**: measurement runs cookieless before consent and fully after. The `denied` default is printed early in `<head>`, 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.
    27 * 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.
    28 * 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.
    29 * 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.
    30 * 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.
    31 * 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 99 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.
    32 * 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.
    33 * 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).
    34 * WordPress privacy tools integration (export/erase) and automatic cleanup of old records.
    35 * Three-step setup on first run, settings import/export, consent reset and a diagnostic report.
    36 * Admin translated into Czech, Slovak, Polish and German.
    37 * Multisite supported.
    38 
    39 **Privacy**
    40 
    41 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.
     77= Privacy and source code =
     78
     79The plugin sends nothing to anyone. Google tags you set up yourself talk to Google, see External services. Nothing is minified or obfuscated: the TypeScript sources of the JavaScript ship in the `src/` folder with build instructions (`src/README.md`), and one compiler command reproduces the shipped files byte for byte.
    4280
    4381Plugin author: LandexHub — [terms](https://landexhub.com/terms), [privacy policy](https://landexhub.com/privacy). LandexHub also makes a separate, optional add-on; this plugin does not need it.
    4482
    45 **Source code**
    46 
    47 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.
    48 
    4983== External services ==
    5084
    51 This plugin does not call home and sends no telemetry. Depending on what **you** configure, it talks to the following services:
    52 
    53 **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 `<noscript>` frame right after the opening `<body>` tag (in themes that call `wp_body_open()`), as in Google's installation instructions: visitors without JavaScript then load `ns.html` from `www.googletagmanager.com`. Without JavaScript there is no consent bar and no Consent Mode default, so that request carries no consent state. What Google receives with those requests (IP address, user agent, page URL, consent state signals) is described in Google's documentation: [Google Terms of Service](https://policies.google.com/terms), [Google Privacy Policy](https://policies.google.com/privacy). If you also enter your own tag domain (for a server-side Google Tag Manager container or the Google tag gateway), the same requests go to that address instead of `www.googletagmanager.com`: to a server you or your provider run, which may pass data on to Google as you configure it. If you leave the ID empty, this plugin loads nothing from Google or from that address.
    54 
    55 **Your own site (loopback)** — the site check fetches your own homepage over HTTP (a loopback request to your own server) to scan the HTML for third-party scripts and the Google tag order. No external service is involved.
     85This plugin does not call home and sends no telemetry. Depending on what **you** configure, it talks to the following services.
     86
     87**Google Tag Manager / Google tag (gtag.js)** — optional, disabled by default.
     88
     89* **When:** only if you enter your own GTM container ID or gtag.js measurement ID in the plugin settings. If you leave the ID empty, this plugin loads nothing from Google.
     90* **What:** the plugin embeds the standard Google snippet and every visitor's browser loads the tag from `www.googletagmanager.com` (`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 it off with the `landexhub_consent_emit_consent_default` filter.
     91* **Without JavaScript:** with a GTM container the plugin also prints Google's `<noscript>` frame right after the opening `<body>` tag (in themes that call `wp_body_open()`), as in Google's installation instructions. Visitors without JavaScript then load `ns.html` from `www.googletagmanager.com`. Without JavaScript there is no consent bar and no Consent Mode default, so that request carries no consent state.
     92* **Data sent:** what Google receives with those requests (IP address, user agent, page URL, consent state signals) is described by Google: [Google Terms of Service](https://policies.google.com/terms), [Google Privacy Policy](https://policies.google.com/privacy).
     93* **Your own tag domain:** if you also enter one (for a server-side GTM container or the Google tag gateway), the same requests go to that address instead of `www.googletagmanager.com` — to a server you or your provider run, which may pass data on to Google as you configure it.
     94
     95**Your own site (loopback)** — the site check fetches your own front page over HTTP (a request to your own server) to scan the HTML for third-party scripts and the Google tag order. No external service is involved.
    5696
    5797There are no other remote requests: no telemetry, no fonts, no CDNs. Links to the LandexHub website open in a new tab and send nothing by themselves.
    … …  
    63103== Installation ==
    64104
    65 1. Upload the plugin to `/wp-content/plugins/landexhub-consent`, or install it from Plugins → Add New.
    66 2. Activate the plugin.
    67 3. The three-step setup (appearance → measurement → site check) opens on first run; everything then lives under four tabs — Appearance, Services, Diagnostics, Advanced.
    68 4. Gate third-party scripts with `type="text/plain"` and `data-consent-category` — the Services page shows what was found and how to gate each source (guide: https://docs.landexhub.com/consent/blocking-scripts).
     1051. Install the plugin from Plugins → Add New, or upload it to `/wp-content/plugins/landexhub-consent`.
     1062. Activate it.
     1073. The three-step setup (appearance → measurement → site check) opens on first run. Everything then lives under four tabs: Appearance, Services, Diagnostics, Advanced.
     1084. Gate the third-party scripts the Services page lists. Guide: [Blocking scripts](https://docs.landexhub.com/consent/blocking-scripts?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
    69109
    70110== Frequently Asked Questions ==
    71111
     112= Does it support Google Consent Mode v2 and GTM? =
     113
     114Yes. The `denied` default is printed before the GTM container or gtag.js, and advanced mode is the default. Set consent requirements on the tags inside GTM: Custom HTML and non-Google tags do not follow Consent Mode by themselves. Guide: [Google, GTM and Consent Mode v2](https://docs.landexhub.com/consent/google-gtm?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     115
     116= GTM says "A tag read consent state before a default was set". What now? =
     117
     118A Google tag starts before the plugin's default: usually the container is inserted above `wp_head()` or by another plugin. Let LandexHub Consent load the container, or move your snippet below `wp_head()`. Guide: [Load order](https://docs.landexhub.com/consent/google-gtm?utm_source=wporg&utm_medium=readme&utm_campaign=consent#load-order-%E2%80%94-the-heart-of-it)
     119
     120= GA4 shows fewer visits after installing the banner. Is it broken? =
     121
     122No. Before consent, Consent Mode measures without cookies and Google fills the gap by modelling. If measurement stopped completely, check that you did not gate gtag.js by hand. Details: [FAQ](https://docs.landexhub.com/consent/faq?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     123
     124= How do I block Meta Pixel or TikTok until consent? =
     125
     126Consent Mode is a Google mechanism; other services must be gated. Mark the script with `type="text/plain" data-consent-category="marketing"` (an external script keeps its address in `data-src`), or use the `LandexHub_Consent::block_handle()` PHP helper. The site check shows which scripts need it. Guide: [Blocking scripts](https://docs.landexhub.com/consent/blocking-scripts?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     127
     128= How do I load YouTube or Google Maps only after consent? =
     129
     130Embeds are iframes, and marking the tag does not hold them back. Replace the embed with a link or a preview image, or use a click-to-load plugin that follows consent. Guide: [Iframes](https://docs.landexhub.com/consent/blocking-scripts?utm_source=wporg&utm_medium=readme&utm_campaign=consent#iframes-marking-the-tag-does-not-work)
     131
     132= The banner does not show on my live site. =
     133
     134Usually you already made a choice (try a private window) or a cache serves an old copy of the page. After saving, clear your caching plugin, the server cache and the CDN. Step by step: [Banner is not showing](https://docs.landexhub.com/consent/banner-not-showing?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     135
     136= Does it pass consent to Site Kit, WooCommerce and other plugins? =
     137
     138Yes, through the WP Consent API (install the free WP Consent API plugin) and through Google Consent Mode v2. Site Kit by Google and MonsterInsights were tested end to end. Google Analytics for WooCommerce and Google for WooCommerce are known to read the WP Consent API but were not tested by us. Details: [Consent integrations](https://docs.landexhub.com/consent/integrations?utm_source=wporg&utm_medium=readme&utm_campaign=consent)
     139
    72140= Does it store visitors' IP addresses? =
    73141
    74 Not in the consent log. It is privacy-minimal: it stores a random consent identifier, the chosen categories, a timestamp, the page path, a fingerprint of the bar texts and whether the choice was made while the site respected the visitor's Global Privacy Control signal. To limit abuse of the recording, a request counter is kept under a salted hash of the visitor's IP address; it expires after 10 minutes.
     142Not in the consent log. A record holds a random consent ID, the chosen categories, the time, the page path, a fingerprint of the banner texts and whether Global Privacy Control applied. Against abuse, a request counter is kept under a salted hash of the IP address for 10 minutes.
     143
     144= Does it send data to third parties? =
     145
     146The plugin itself sends nothing. Google tags you configure talk to Google (see External services), and scripts you gate talk to their providers after consent.
     147
     148= Can visitors change or withdraw consent? =
     149
     150Yes, at any time, through the icon, a footer link, a shortcode or block, or `LandexHubConsent.openSettings()`. A script that already ran on the current page stays inactive from the next page load on.
    75151
    76152= How do I handle a privacy request from an anonymous visitor? =
    77153
    78 A record of an anonymous visitor has no IP address, e-mail or other identifier besides its random consent ID, so the log alone cannot tie it to a person (GDPR art. 11). A visitor can identify their own records with their consent ID, shown at the bottom of the consent settings dialog. Search the Consent log for that ID to show or export the records; an erase button deletes them. Logged-in users are covered by the standard WordPress Export/Erase Personal Data tools.
    79 
    80 = Does it send data to third parties? =
    81 
    82 The plugin itself sends nothing: no telemetry, and consent records stay in your WordPress. If you configure a GTM container or a Google measurement ID, your visitors' browsers load those Google tags and they communicate with Google — see External services. Scripts you gate run only after consent and then talk to their own providers.
    83 
    84 = Does it support Google Consent Mode v2? =
    85 
    86 Yes, in advanced mode (the default) or basic mode. In advanced mode Google tags load before consent and send cookieless signals until the visitor agrees; in basic mode the gtag.js ID set in this plugin loads only after consent. The `denied` default is printed before the GTM container or gtag.js set in this plugin. If you set your own consent default elsewhere, turn the plugin's default off with the `landexhub_consent_emit_consent_default` filter; it is not detected automatically.
    87 
    88 = Can I block Google Analytics / Meta Pixel until consent? =
    89 
    90 Mark the script tag with `type="text/plain" data-consent-category="marketing"`; for an external script also move its address from `src` to `data-src`. Or gate an enqueued script with the `LandexHub_Consent::block_handle( $handle, 'marketing' )` PHP helper. Google tags loaded through GTM or gtag.js follow Google Consent Mode, so they are usually not blocked; make sure the tags in your GTM container use consent settings — Custom HTML tags and non-Google tags in a container do not follow Consent Mode by themselves. Guide: [Blocking scripts](https://docs.landexhub.com/consent/blocking-scripts).
    91 
    92 = Can visitors change or withdraw their consent later? =
    93 
    94 Yes, always. By default a small floating icon appears after the first choice; you can switch to a "Cookie settings" link in the site footer instead, place the `[landexhub_consent_settings]` shortcode or the "Cookie settings link" block anywhere, or call `LandexHubConsent.openSettings()` from your own link. A change updates Google Consent Mode and the WP Consent API immediately. One technical honesty note: a third-party script that already ran on the current page cannot be un-run — after a withdrawal it stays inactive from the next page load on.
    95 
    96 = What does the site check do? =
    97 
    98 It fetches your own front page (a request to your own server) and lists the third-party scripts, embedded frames and known tracking pixels it recognises in the HTML, who adds each of them and whether consent governs it. For every source that loads before consent it shows how to gate it by hand. It only sees the front page — a source that loads only on a subpage does not show up there.
    99 
    100 = Does it pass consent to other plugins? =
    101 
    102 Through two channels. When the free WP Consent API plugin is installed, the plugin publishes the visitor's decision on that shared standard, both in the browser and for `wp_has_consent()` in PHP, so plugins that read it can follow it. Google tags added by other plugins follow the Google Consent Mode v2 signals the plugin sends, as long as they load after its default.
    103 
    104 Tested end to end (first visit, accept, reload, withdrawal, consent reset): Site Kit by Google with its own Consent Mode on (it then reads the WP Consent API) and off (its Google tag follows Consent Mode), and MonsterInsights with a manually entered GA4 ID (its tag follows Consent Mode; it does not read the WP Consent API). Other plugins were not tested; check them on your site.
    105 
    106 = Can I show visitors a list of the services this site uses? =
    107 
    108 Yes — put the `[landexhub_consent_services]` shortcode (or the "Services & cookies overview" block) on your cookie policy page. It renders a table of the services found on your front page and the ones in your services list, with consent category, known cookies and privacy policy links. It is generated technical data, not legal advice.
     154The visitor finds their consent ID at the bottom of the consent settings dialog. Search the consent log for it to export or erase the records. Logged-in users are covered by the WordPress Export/Erase Personal Data tools.
    109155
    110156= Does the plugin make my site GDPR compliant? =
    111157
    112 No plugin can do that on its own. LandexHub Consent provides the technical tools — consent banner, script gating, proof of consent, data export and erasure. Whether your site complies depends on how it is configured and on what it does; that responsibility stays with the site owner.
     158No plugin can do that on its own. LandexHub Consent provides the technical tools: consent banner, script gating, proof of consent, data export and erasure. Compliance depends on how the site is set up and what it does; that responsibility stays with the site owner.
    113159
    114160= Does it support IAB TCF? =
    115161
    116 No. The plugin does not implement the IAB Transparency & Consent Framework (no TC string, no registered CMP ID). If your site serves personalised ads through Google AdSense or Ad Manager to visitors in the EEA/UK, Google requires a TCF-certified CMP — this plugin is not the right tool for that setup. For sites without ad networks (analytics, marketing pixels, embeds), Consent Mode v2 and script gating cover the consent flow.
     162No, see "When it is not the right tool" above.
    117163
    118164== Screenshots ==
    … …  
    179225= 1.0.1 =
    180226Respects the Global Privacy Control signal: "Accept all" leaves marketing off while the visitor's browser sends it. On by default.
    181 
    182 = 1.0.0 =
    183 First stable release. The banner no longer takes your theme's button styles; sites that never saved their settings switch to the consent-change icon.
    184 
    185 = 0.9.6 =
    186 Google tags can load from your own tag domain (server-side GTM, Google tag gateway).
    187 
    188 = 0.9.5 =
    189 The banner script loads deferred and no longer blocks page rendering; a returning visitor's choice still reaches Google tags before they start. Custom code that calls window.LandexHubConsent while the page loads must wait for the landexhub-consent:ready event.
    190 
    191 = 0.9.4 =
    192 Functional codes (payments, spam protection, pickup points) are listed apart and never reported as a problem; Services shows where each source comes from; a larger catalog and a more precise site check. URL passthrough is now an opt-in setting.
    193 
    194 = 0.9.3 =
    195 GTM triggers on the consent event fire wherever the container is printed in the page. Fixes in the Services page: "Verify the edit" returns to the service, no duplicate rows for inline sources, necessary services are not reported as problems.
    196 
    197 = 0.9.2 =
    198 Configurable consent log retention, opt-in credit link and stricter settings validation.
Note: See TracChangeset for help on using the changeset viewer.