{"id":413311,"date":"2026-11-26T09:41:52","date_gmt":"2026-11-26T09:41:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/katla-cookie-consent\/"},"modified":"2026-11-26T09:41:41","modified_gmt":"2026-11-26T09:41:41","slug":"katla-consent","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/katla-consent\/","author":23612988,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.0","stable_tag":"1.2.0","tested":"7.1.5","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"Katla Cookie Consent","header_author":"Katla","header_description":"GDPR, CCPA\/CPRA and DMA cookie compliance for WordPress and WooCommerce. Loads the hosted Katla consent widget, supports fully headless\/custom banners, blocks non-consented scripts and embeds, and renders auto-generated cookie &amp; privacy policies.","last_updated":"2026-11-26 09:41:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/docs.katla.app\/wordpress","header_author_uri":"https:\/\/katla.app","rating":0,"author_block_rating":0,"active_installs":0,"downloads":22,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.0":{"tag":"1.2.0","author":"katlaapp","date":"2026-11-26 09:41:41","revision":3826260}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3826295,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3826295,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3826295,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"katla\/cookie-table":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"katla\/cookie-table","title":"Katla Cookie Table","category":"katla","icon":"editor-table","description":"Lists the cookies Katla has scanned on your site, grouped by category.","keywords":["cookie","table","gdpr","consent"],"textdomain":"katla-consent","supports":{"html":false,"align":["wide","full"],"spacing":{"margin":true,"padding":true}},"attributes":{"category":{"type":"string","default":""},"locale":{"type":"string","default":""}},"editorScript":"katla-blocks-editor","editorStyle":"katla-blocks-editor-style","style":"katla-policy"},"katla\/settings-button":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"katla\/settings-button","title":"Katla Cookie Settings","category":"katla","icon":"admin-generic","description":"A button or link that reopens the cookie preferences dialog.","keywords":["cookie","settings","preferences","consent"],"textdomain":"katla-consent","supports":{"html":false,"spacing":{"margin":true},"typography":{"fontSize":true}},"attributes":{"label":{"type":"string","default":""},"style":{"type":"string","default":"button"}},"editorScript":"katla-blocks-editor","editorStyle":"katla-blocks-editor-style","style":"katla"},"katla\/policy":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"katla\/policy","title":"Katla Policy","category":"katla","icon":"shield","description":"Renders your auto-generated cookie and privacy policy from Katla.","keywords":["cookie","privacy","policy","gdpr","consent"],"textdomain":"katla-consent","supports":{"html":false,"align":["wide","full"],"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true}},"attributes":{"format":{"type":"string","default":"full"},"locale":{"type":"string","default":""},"render":{"type":"string","default":"server"}},"editorScript":"katla-blocks-editor","editorStyle":"katla-blocks-editor-style","style":"katla-policy"}},"tagged_versions":["1.2.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"The settings screen.","2":"The built-in headless banner.","3":"The cookie preferences dialog.","4":"A generated cookie policy page."}},"plugin_section":[],"plugin_tags":[166295,20272,16626,131785,286],"plugin_category":[45],"plugin_contributors":[295616],"plugin_business_model":[],"class_list":["post-413311","plugin","type-plugin","status-publish","hentry","plugin_tags-ccpa","plugin_tags-cookie-banner","plugin_tags-cookie-consent","plugin_tags-gdpr","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-katlaapp","plugin_committers-katlaapp"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/katla-consent\/assets\/icon.svg?rev=3826295","icon":"https:\/\/ps.w.org\/katla-consent\/assets\/icon.svg?rev=3826295","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/katla.app\">Katla<\/a> scans your site, classifies every cookie it finds, and collects visitor consent. This plugin connects your WordPress site to Katla and adds the parts a WordPress site actually needs: server-side script blocking, embed blocking, blocks and shortcodes for the generated policies, and a WooCommerce integration that keeps carts and sessions working under a cookie guard.<\/p>\n\n<h4>Two ways to run it<\/h4>\n\n<p><strong>Hosted widget.<\/strong> Paste in your Site ID and Katla renders the banner, styled from your dashboard. Nothing else to configure.<\/p>\n\n<p><strong>Advanced \/ headless.<\/strong> Katla loads the cookie guard and consent API only, with no UI. Either use this plugin's own banner \u2014 plain HTML and CSS custom properties you can restyle and translate through WordPress \u2014 or turn it off entirely and build your own against <code>window.KatlaConsent<\/code> and the <code>katla:consent<\/code> event.<\/p>\n\n<h4>What the plugin adds<\/h4>\n\n<ul>\n<li><strong>Script blocking.<\/strong> Hold back any enqueued script by handle, or any script whose URL matches a pattern, until its cookie category is allowed. Inline configuration attached to the handle is preserved and replayed in order, so a tag manager still gets its settings when consent arrives.<\/li>\n<li><strong>Embed blocking.<\/strong> YouTube, Vimeo, Maps and other third-party iframes are replaced with a consent placeholder and loaded on request.<\/li>\n<li><strong>Policies.<\/strong> Blocks and shortcodes for the cookie and privacy policies Katla generates. Rendered on the server by default so search engines can index them, and cached in a transient.<\/li>\n<li><strong>Essential cookie protection.<\/strong> WordPress and WooCommerce cookies that are strictly necessary \u2014 logins, carts, sessions \u2014 bypass the cookie guard so nothing breaks before consent.<\/li>\n<li><strong>WooCommerce.<\/strong> HPOS and cart\/checkout blocks compatible. Store-critical scripts can never be gated by accident, and a cookie settings link can be added to the checkout privacy notice and My Account.<\/li>\n<li><strong>Google Consent Mode v2.<\/strong> Signal consent to Google tags from the plugin, or let the hosted widget do it.<\/li>\n<li><strong>WP Consent API.<\/strong> With the <a href=\"https:\/\/wordpress.org\/plugins\/wp-consent-api\/\">WP Consent API<\/a> plugin active, every choice is reported to it, so plugins that read it, such as Site Kit by Google, follow the visitor's consent with no extra setup.<\/li>\n<li><strong>WP-CLI.<\/strong> <code>wp katla status<\/code>, <code>verify<\/code>, <code>cookies<\/code>, <code>policy<\/code>, <code>flush<\/code>.<\/li>\n<\/ul>\n\n<h4>Requirements<\/h4>\n\n<p>A Katla account with a verified domain and at least one completed scan. Get your Site ID from the Widget section of your site settings at katla.app.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects your site to <a href=\"https:\/\/katla.app\">Katla<\/a>, a cookie consent service. It needs Katla to work: the banner, the cookie list and the policies all come from your Katla site.<\/p>\n\n<ul>\n<li><strong>Consent script, from dist.katla.app.<\/strong> On every page, the visitor's browser loads your site's consent script from <code>https:\/\/dist.katla.app\/{your Site ID}.js<\/code>. It shows the banner, blocks cookies until the visitor chooses, and sends Google Consent Mode signals when that is on. Like any file a browser downloads, the request carries the visitor's IP address and browser details.<\/li>\n<li><strong>Consent records, to consent.katla.app.<\/strong> When a visitor makes or changes a choice, the script sends it to <code>https:\/\/consent.katla.app<\/code> as proof of consent: the choice and the categories allowed, the regulation that applied, the browser's user agent, an anonymised IP address and the country.<\/li>\n<li><strong>Cookie and policy data, from dist.katla.app.<\/strong> Your server fetches your site's cookie list, cookie and privacy policies and a manifest from <code>https:\/\/dist.katla.app\/{your Site ID}<\/code>: when a page or the settings screen needs them and the cached copy has expired, and when you connect or check again on the Setup tab or test the connection on the Tools tab. Each request sends the Site ID, a language, and the plugin version and your site's address in the user agent. The answers are cached on your server.<\/li>\n<\/ul>\n\n<p>No other service is contacted. The domain names offered on the Blocking tab, such as googletagmanager.com, are suggestions for matching scripts that other plugins add to your pages; this plugin never connects to them.<\/p>\n\n<p>Katla's <a href=\"https:\/\/katla.app\/terms\">terms of service<\/a> and <a href=\"https:\/\/katla.app\/privacy-policy\">privacy policy<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from <strong>Plugins &gt; Add New<\/strong>, or upload it to <code>\/wp-content\/plugins\/katla-consent<\/code>, and activate it.<\/li>\n<li>Go to <strong>Settings &gt; Katla Consent<\/strong>. The <strong>Setup<\/strong> tab walks you through the rest: connecting your Katla site, turning on Google Consent Mode and Google's banner text, and checking the banner works. Each step checks itself.<\/li>\n<li>On the <strong>Blocking<\/strong> tab, map the scripts you want held back to their cookie categories.<\/li>\n<li>Add the <strong>Katla Policy<\/strong> block to a page for your cookie policy, or use the <strong>Create cookie policy page<\/strong> button on the Tools tab.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20work%20without%20a%20katla%20account%3F\"><h3>Does this work without a Katla account?<\/h3><\/dt>\n<dd><p>No. The plugin is a WordPress front-end for Katla \u2014 the cookie data, consent records and policies all come from your Katla site.<\/p><\/dd>\n<dt id=\"will%20the%20cookie%20guard%20break%20my%20woocommerce%20cart%3F\"><h3>Will the cookie guard break my WooCommerce cart?<\/h3><\/dt>\n<dd><p>No. Cart, session and checkout cookies are allowlisted and reach the browser untouched even before consent, because they are strictly necessary and exempt from consent under GDPR. WooCommerce order attribution cookies (<code>sbjs_*<\/code>) are deliberately <em>not<\/em> allowlisted \u2014 those are marketing cookies and stay behind consent.<\/p><\/dd>\n<dt id=\"my%20analytics%20still%20loads%20before%20consent\"><h3>My analytics still loads before consent<\/h3><\/dt>\n<dd><p>Katla's cookie guard blocks cookie writes, not script loading. Add the script's handle (or a fragment of its URL) on the <strong>Blocking<\/strong> tab so the plugin holds the script itself back until its category is allowed.<\/p><\/dd>\n<dt id=\"where%20should%20the%20script%20load%3F\"><h3>Where should the script load?<\/h3><\/dt>\n<dd><p>First in the head, which is where the plugin always prints it. The cookie guard has to run before anything else can set a cookie, and the Google Consent Mode default before any Google tag reads consent. If a caching or optimisation plugin defers, delays or combines JavaScript, exclude dist.katla.app from it.<\/p><\/dd>\n<dt id=\"can%20i%20build%20my%20own%20banner%3F\"><h3>Can I build my own banner?<\/h3><\/dt>\n<dd><p>Yes. Choose <strong>Advanced \/ headless<\/strong> mode and set the banner to <strong>Bring your own<\/strong>. The plugin loads the guard, exposes <code>window.KatlaConsent<\/code>, and fires a <code>katla:consent<\/code> event on every change with the same shape the Katla SDK uses.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Guided setup: a Setup tab connects the site, checks that Google Consent Mode and Google's banner text are on in Katla, and suggests the WP Consent API where Site Kit by Google is active.<\/li>\n<li>The Katla script is now printed first in the head, ahead of Google tags that other plugins or the theme print early, so the Consent Mode default always arrives first.<\/li>\n<li>The footer placement option is gone. A site that used it now loads the script in the head.<\/li>\n<li>Tested with WordPress 7.1.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>WP Consent API support: consent is reported to the API on load and on every change, with the consent type set per visitor (opt-in, or opt-out under CCPA).<\/li>\n<li>Google Consent Mode bridge: no longer declares a second default when Katla already has, sends Katla's CMP Partner Program developer ID, and denies analytics after a CCPA opt-out.<\/li>\n<li>Google Consent Mode default is now denied for every visitor, with a returning visitor's stored choice sent as an update straight after it, as Google requires.<\/li>\n<li>Consent signals are now sent before held-back scripts are released.<\/li>\n<li>The essential cookie allowlist now works in hosted widget mode.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Cookie consent for WordPress and WooCommerce, powered by Katla: GDPR, CCPA and DMA banner, Google Consent Mode v2, script blocking and policies.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/413311","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=413311"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/katlaapp"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=413311"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=413311"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=413311"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=413311"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=413311"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=413311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}