{"id":411005,"date":"2026-11-27T12:58:52","date_gmt":"2026-11-27T12:58:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/kafe-consent-mode-for-ga4-google-ads\/"},"modified":"2026-11-27T12:58:13","modified_gmt":"2026-11-27T12:58:13","slug":"kafestudio-consent-mode","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/kafestudio-consent-mode\/","author":23500248,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.7","stable_tag":"0.1.7","tested":"7.1.5","requires":"6.9","requires_php":"8.0","requires_plugins":null,"header_name":"Kaf\u00e9 Consent Mode for GA4 & Google Ads","header_author":"Kaf\u00e9 Studio","header_description":"A cookie banner for sites that only use Google Analytics 4 and Google Ads: Google Consent Mode v2, Google tags held back until consent, refusing as easy as accepting.","last_updated":"2026-11-27 12:58:13","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/kafestudio.fr","rating":0,"author_block_rating":0,"active_installs":0,"downloads":19,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.7":{"tag":"0.1.7","author":"fabiendst","date":"2026-11-27 12:58:13","revision":3829575}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3829575,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3829575,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3829575,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3829575,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.7"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3829575,"resolution":"1","location":"assets","locale":"","width":1280,"height":800},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3829575,"resolution":"2","location":"assets","locale":"","width":1280,"height":800},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3829575,"resolution":"3","location":"assets","locale":"","width":1280,"height":1000},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3829575,"resolution":"4","location":"assets","locale":"","width":1280,"height":1000},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3829575,"resolution":"5","location":"assets","locale":"","width":1280,"height":1000},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3829575,"resolution":"6","location":"assets","locale":"","width":1280,"height":1000}},"screenshots":{"1":"The banner on a visitor\u2019s first visit: \u201cRefuse all\u201d and \u201cAccept all\u201d side by side, with exactly the same look.","2":"Choice by category: nothing is ticked in advance.","3":"Settings: Google tag IDs, banner position and colours, texts, plugin language.","4":"The Pro version tab: what the Pro version adds and how to install it.","5":"Pro version (not included in this plugin): the consent log, a dated record of every choice with the exact banner text shown.","6":"Pro version (not included in this plugin): step-by-step check-up of the installation."}},"plugin_section":[],"plugin_tags":[223629,20272,131785,985,1005],"plugin_category":[],"plugin_contributors":[264968],"plugin_business_model":[],"class_list":["post-411005","plugin","type-plugin","status-publish","hentry","plugin_tags-consent-mode","plugin_tags-cookie-banner","plugin_tags-gdpr","plugin_tags-google-ads","plugin_tags-google-analytics","plugin_contributors-fabiendst","plugin_committers-fabiendst"],"banners":{"banner":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/banner-772x250.png?rev=3829575","banner_2x":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/banner-1544x500.png?rev=3829575","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/icon-128x128.png?rev=3829575","icon_2x":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/icon-256x256.png?rev=3829575","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/screenshot-1.png?rev=3829575","caption":"The banner on a visitor\u2019s first visit: \u201cRefuse all\u201d and \u201cAccept all\u201d side by side, with exactly the same look."},{"src":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/screenshot-2.png?rev=3829575","caption":"Choice by category: nothing is ticked in advance."},{"src":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/screenshot-3.png?rev=3829575","caption":"Settings: Google tag IDs, banner position and colours, texts, plugin language."},{"src":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/screenshot-4.png?rev=3829575","caption":"The Pro version tab: what the Pro version adds and how to install it."},{"src":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/screenshot-5.png?rev=3829575","caption":"Pro version (not included in this plugin): the consent log, a dated record of every choice with the exact banner text shown."},{"src":"https:\/\/ps.w.org\/kafestudio-consent-mode\/assets\/screenshot-6.png?rev=3829575","caption":"Pro version (not included in this plugin): step-by-step check-up of the installation."}],"raw_content":"<!--section=description-->\n<p><strong>What makes it different.<\/strong> Unlike general-purpose consent plugins, it is built only for Google Analytics 4 and Google Ads: it loads the Google tag itself and implements Google Consent Mode v2 natively, in \u201cbasic\u201d mode, so no request at all reaches Google before consent, including from Google tags added by the theme or other plugins. Its banner follows the French CNIL recommendations out of the box (refusing as easy as accepting, nothing ticked in advance, choice kept 6 months, Analytics cookies limited to 13 months), with nothing else to configure than your two Google IDs. It weighs about 4 KB of JavaScript, needs no account or outside service, and works with page caches.<\/p>\n\n<p>Since March 2024, Google requires <strong>Consent Mode v2<\/strong> for sites that advertise in Europe, and data protection authorities such as the French CNIL check cookie banners. Most consent plugins are built for every possible service and are heavy to set up. This one does one thing: <strong>a clean banner that follows the CNIL recommendations, for a site that only uses Google Analytics 4 and Google Ads.<\/strong> As the site owner, you remain responsible for your site\u2019s compliance and for your privacy policy.<\/p>\n\n<ul>\n<li><strong>Banner with two categories<\/strong>: audience measurement (Google Analytics) and advertising (Google Ads).<\/li>\n<li><strong>Refusing is as easy as accepting<\/strong>: \u201cRefuse all\u201d and \u201cAccept all\u201d sit side by side on the first screen and look exactly the same.<\/li>\n<li><strong>No box ticked in advance<\/strong>, choice by category one click away.<\/li>\n<li><strong>Choice kept for 6 months<\/strong>, acceptance or refusal alike, then asked again.<\/li>\n<li><strong>Google Consent Mode v2<\/strong>: ad_storage, ad_user_data, ad_personalization and analytics_storage are set to \u201cdenied\u201d before any Google tag, then updated with the visitor\u2019s choice.<\/li>\n<li><strong>Nothing sent to Google before consent<\/strong> (Consent Mode \u201cbasic\u201d implementation): gtag.js is only loaded once the visitor accepts, and only for the accepted categories.<\/li>\n<li><strong>Google tags added by your theme or another plugin are held back too<\/strong> (Site Kit, header code, Google Tag Manager\u2026) until the matching category is accepted. DNS prefetch and preconnect hints to Google servers are removed.<\/li>\n<li><strong>Permanent \u201cManage my cookies\u201d link<\/strong>: a small floating button, a shortcode <code>[kscm_manage_link]<\/code>, or any menu link to <code>#kscm-manage<\/code>.<\/li>\n<li>Google Analytics cookies limited to 13 months; Google Ads and Analytics cookies erased when consent is withdrawn.<\/li>\n<li><strong>Accessible<\/strong>: real buttons, labelled check boxes, keyboard use (Escape closes a reopened banner, focus returns where it was), placed at the top of the page for screen readers, respects reduced motion.<\/li>\n<li><strong>Light<\/strong>: about 4 KB of JavaScript and 1.5 KB of CSS once compressed, no jQuery, no request to any outside server. Works with page caches.<\/li>\n<li><strong>Translation-ready<\/strong>: the default banner texts follow the site language, or the page language set by Polylang or WPML, as soon as a translation is installed; a \u201cPlugin language\u201d setting can also impose an installed language or English.<\/li>\n<li>Passes the choice to the WP Consent API when that plugin is installed.<\/li>\n<\/ul>\n\n<h4>Pro version<\/h4>\n\n<p>The Pro version adds:<\/p>\n\n<ul>\n<li>a <strong>consent log<\/strong> (proof of consent): date, choice per category and exact banner text shown, anonymous consent ID, truncated IP address; search, CSV export, automatic clean-up;<\/li>\n<li><strong>several languages with your own texts<\/strong>: English, French, German, Spanish, Italian and Dutch ready to use and editable language by language, picked from the page language (Polylang, WPML, TranslatePress) or the visitor\u2019s browser;<\/li>\n<li><strong>detection of the cookies<\/strong> present on your site, with a warning when one is set before consent, and a <code>[kscm_cookie_list]<\/code> table for your policy page;<\/li>\n<li>a step-by-step check of your installation.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin loads Google services on your visitors\u2019 pages, <strong>only after the visitor has accepted the matching category in the banner<\/strong>. Nothing is loaded or sent before that, and nothing at all if the visitor refuses.<\/p>\n\n<ul>\n<li><strong>Google Analytics 4<\/strong> (Google tag <code>gtag.js<\/code>, loaded from www.googletagmanager.com), used to measure the site\u2019s audience. Loaded only if you entered a Google Analytics measurement ID and the visitor accepts \u201cAudience measurement\u201d. Google then receives the pages viewed, the referring page, the browser, device and screen characteristics, the visitor\u2019s IP address and the Google Analytics cookie identifiers (<code>_ga<\/code>, <code>_ga_*<\/code>, kept for up to 13 months), with the consent state.<\/li>\n<li><strong>Google Ads<\/strong> (same Google tag), used to measure and show your ads. Loaded only if you entered a Google Ads ID and the visitor accepts \u201cAdvertising\u201d. Google then receives the pages viewed, conversions, ad click identifiers, the browser and device characteristics, the visitor\u2019s IP address and the Google Ads cookie identifiers (<code>_gcl_au<\/code>, <code>_gcl_aw<\/code>), with the consent state.<\/li>\n<li>Google tags added by your theme or another plugin (Site Kit, Google Tag Manager\u2026) are held back the same way and only released once the matching category is accepted; they are those tools\u2019 own connections.<\/li>\n<\/ul>\n\n<p>Google\u2019s terms and policies: <a href=\"https:\/\/policies.google.com\/terms\">Google Terms of Service<\/a>, <a href=\"https:\/\/policies.google.com\/privacy\">Google Privacy Policy<\/a>, <a href=\"https:\/\/policies.google.com\/technologies\/partner-sites\">How Google uses information from sites that use its services<\/a>, <a href=\"https:\/\/marketingplatform.google.com\/about\/analytics\/terms\/us\/\">Google Analytics Terms of Service<\/a>.<\/p>\n\n<p>The plugin itself never contacts any server. The \u201cSee pricing and buy\u201d button in the \u201cPro version\u201d tab is a plain link to the checkout page of the Pro version (Freemius); nothing is sent until you click it.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin.<\/li>\n<li>Go to Settings \u203a Cookie consent and enter your Google Analytics 4 measurement ID (G-\u2026) and\/or Google Ads ID (AW-\u2026).<\/li>\n<li>If the Google tag was already added elsewhere (theme, Site Kit, header code), remove it there to avoid counting visits twice.<\/li>\n<li>Click \u201cSee the banner on my site\u201d.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20check%20that%20nothing%20goes%20to%20google%20before%20consent%3F\"><h3>How do I check that nothing goes to Google before consent?<\/h3><\/dt>\n<dd><p>Open your site in a private window, press F12, open the Network tab and type \u201cgoogle\u201d in the filter. Reload: the list stays empty. Click \u201cAccept all\u201d: the requests to googletagmanager.com appear.<\/p><\/dd>\n<dt id=\"does%20it%20use%20consent%20mode%20%E2%80%9Cadvanced%E2%80%9D%3F\"><h3>Does it use Consent Mode \u201cadvanced\u201d?<\/h3><\/dt>\n<dd><p>No. Advanced mode loads Google tags before consent to send cookieless pings, which many European authorities consider requires consent too. This plugin uses the basic mode: nothing is loaded before consent.<\/p><\/dd>\n<dt id=\"my%20site%20also%20uses%20youtube%2C%20the%20meta%20pixel%20or%20other%20services.\"><h3>My site also uses YouTube, the Meta Pixel or other services.<\/h3><\/dt>\n<dd><p>This plugin only manages Google Analytics and Google Ads, so that it stays simple. If you use other services that set cookies, you need a more complete consent tool.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20caching%3F\"><h3>Does it work with page caching?<\/h3><\/dt>\n<dd><p>Yes: the choice is stored in a first-party cookie and applied in the browser.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20contact%20any%20outside%20server%3F\"><h3>Does the plugin contact any outside server?<\/h3><\/dt>\n<dd><p>No. The only requests are those of your Google tags, after consent. See \u201cExternal services\u201d below.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.7<\/h4>\n\n<ul>\n<li>Maintenance release.<\/li>\n<\/ul>\n\n<h4>0.1.6<\/h4>\n\n<ul>\n<li>Google tags added by other plugins are held back through the WordPress template output buffer (WordPress 6.9 or later required).<\/li>\n<li>Plain description, without comparisons.<\/li>\n<\/ul>\n\n<h4>0.1.5<\/h4>\n\n<ul>\n<li>No translation template bundled: translate.wordpress.org builds its own.<\/li>\n<li>Uninstall cleans every site of a multisite network.<\/li>\n<li>Consent Mode script printed with wp_add_inline_script.<\/li>\n<li>Wording: the banner follows the CNIL recommendations; the site owner remains responsible.<\/li>\n<\/ul>\n\n<h4>0.1.4<\/h4>\n\n<ul>\n<li>Code and settings page cleaned up after the WordPress.org review.<\/li>\n<li>The choice cookie no longer contains any visitor identifier.<\/li>\n<li>Banner accent colour added through wp_add_inline_style.<\/li>\n<li>Translations are no longer bundled: they come from translate.wordpress.org; \u201cPlugin language\u201d only offers installed languages.<\/li>\n<li>\u201cExternal services\u201d section in this readme.<\/li>\n<\/ul>\n\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>Spanish, German and Italian translations.<\/li>\n<li>\u201cPlugin language\u201d setting: Espa\u00f1ol, Deutsch and Italiano added.<\/li>\n<li>Default banner texts follow the page language when a multilingual plugin sets it late.<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>Plugin renamed to \u201cKaf\u00e9 Consent Mode for GA4 &amp; Google Ads\u201d.<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Translations loaded without load_plugin_textdomain() (Plugin Check).<\/li>\n<li>\"Plugin language\" setting: site language, English or French.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First version.<\/li>\n<\/ul>","raw_excerpt":"A cookie banner built only for Google Analytics 4 and Google Ads, with Google Consent Mode v2 and Google tags held back until consent.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/411005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=411005"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fabiendst"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=411005"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=411005"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=411005"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=411005"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=411005"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=411005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}