Katla Cookie Consent
v1.2.0Katla · 2026年11月26日 上架
Cookie consent for WordPress and WooCommerce, powered by Katla: GDPR, CCPA and DMA banner, Google Consent Mode v2, script blocking and policies.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 0
- 最近更新
- 2026年11月26日
贡献者
Katla 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.
Two ways to run it
Hosted widget. Paste in your Site ID and Katla renders the banner, styled from your dashboard. Nothing else to configure.
Advanced / headless. Katla loads the cookie guard and consent API only, with no UI. Either use this plugin’s own banner — plain HTML and CSS custom properties you can restyle and translate through WordPress — or turn it off entirely and build your own against window.KatlaConsent and the katla:consent event.
What the plugin adds
- Script blocking. 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.
- Embed blocking. YouTube, Vimeo, Maps and other third-party iframes are replaced with a consent placeholder and loaded on request.
- Policies. 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.
- Essential cookie protection. WordPress and WooCommerce cookies that are strictly necessary — logins, carts, sessions — bypass the cookie guard so nothing breaks before consent.
- WooCommerce. 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.
- Google Consent Mode v2. Signal consent to Google tags from the plugin, or let the hosted widget do it.
- WP Consent API. With the WP Consent API 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.
- WP-CLI.
wp katla status,verify,cookies,policy,flush.
Requirements
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.
External services
This plugin connects your site to Katla, a cookie consent service. It needs Katla to work: the banner, the cookie list and the policies all come from your Katla site.
- Consent script, from dist.katla.app. On every page, the visitor’s browser loads your site’s consent script from
https://dist.katla.app/{your Site ID}.js. 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. - Consent records, to consent.katla.app. When a visitor makes or changes a choice, the script sends it to
https://consent.katla.appas 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. - Cookie and policy data, from dist.katla.app. Your server fetches your site’s cookie list, cookie and privacy policies and a manifest from
https://dist.katla.app/{your Site ID}: 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.
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.
Katla’s terms of service and privacy policy.