{"id":408489,"date":"2026-11-25T23:17:22","date_gmt":"2026-11-25T23:17:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/koci-cookie\/"},"modified":"2026-11-25T23:16:48","modified_gmt":"2026-11-25T23:16:48","slug":"koci-cookie","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/koci-cookie\/","author":23597580,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.0","stable_tag":"1.3.0","tested":"7.1.5","requires":"6.9","requires_php":"7.4","requires_plugins":null,"header_name":"Koci Cookie","header_author":"Koci M\u00e9dia\u00fcgyn\u00f6ks\u00e9g Kft.","header_description":"GDPR \/ ePrivacy cookie consent: prior blocking of scripts and iframes, consent per category, an equal \"Reject all\" button, Google Consent Mode v2, a consent log and a cookie list, with every design, behaviour and text setting in the admin and a live preview.","last_updated":"2026-11-25 23:16:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/koci.hu","rating":0,"author_block_rating":0,"active_installs":0,"downloads":0,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.3.0":{"tag":"1.3.0","author":"kocimedia","date":"2026-11-25 23:16:48","revision":3824675}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3824675,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3824675,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3824675,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3824675,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3824675,"resolution":"1","location":"assets","locale":"","width":1280,"height":800},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3824675,"resolution":"2","location":"assets","locale":"","width":1280,"height":900},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3824675,"resolution":"3","location":"assets","locale":"","width":1440,"height":1000},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3824675,"resolution":"4","location":"assets","locale":"","width":1204,"height":1017},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3824675,"resolution":"5","location":"assets","locale":"","width":1258,"height":1146}},"screenshots":{"1":"The banner on the site, with equal \"Reject all\" and \"Accept all\" buttons.","2":"The detailed settings with the categories and the cookie list.","3":"The design settings with the live preview.","4":"The automatic cookie scan with the classified cookies.","5":"The consent log with the statistics of the last 30 days."}},"plugin_section":[],"plugin_tags":[20011,223629,388,20272,131785],"plugin_category":[],"plugin_contributors":[291694],"plugin_business_model":[],"class_list":["post-408489","plugin","type-plugin","status-publish","hentry","plugin_tags-consent","plugin_tags-consent-mode","plugin_tags-cookie","plugin_tags-cookie-banner","plugin_tags-gdpr","plugin_contributors-kocimedia","plugin_committers-kocimedia"],"banners":{"banner":"https:\/\/ps.w.org\/koci-cookie\/assets\/banner-772x250.png?rev=3824675","banner_2x":"https:\/\/ps.w.org\/koci-cookie\/assets\/banner-1544x500.png?rev=3824675","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/koci-cookie\/assets\/icon-128x128.png?rev=3824675","icon_2x":"https:\/\/ps.w.org\/koci-cookie\/assets\/icon-256x256.png?rev=3824675","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/koci-cookie\/assets\/screenshot-1.png?rev=3824675","caption":"The banner on the site, with equal \"Reject all\" and \"Accept all\" buttons."},{"src":"https:\/\/ps.w.org\/koci-cookie\/assets\/screenshot-2.png?rev=3824675","caption":"The detailed settings with the categories and the cookie list."},{"src":"https:\/\/ps.w.org\/koci-cookie\/assets\/screenshot-3.png?rev=3824675","caption":"The design settings with the live preview."},{"src":"https:\/\/ps.w.org\/koci-cookie\/assets\/screenshot-4.png?rev=3824675","caption":"The automatic cookie scan with the classified cookies."},{"src":"https:\/\/ps.w.org\/koci-cookie\/assets\/screenshot-5.png?rev=3824675","caption":"The consent log with the statistics of the last 30 days."}],"raw_content":"<!--section=description-->\n<p>Koci Cookie shows a cookie banner and makes sure that tracking codes and embeds only run after the visitor agreed \u2013 whichever plugin or theme adds them.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li><strong>Prior blocking<\/strong> \u2013 recognised tracking codes (Google Analytics \/ Ads \/ Tag Manager, Meta Pixel, Microsoft Clarity, Hotjar, TikTok, LinkedIn, Pinterest, X, Matomo, Yandex \u2026) and embeds (YouTube, Vimeo, Google Maps, Spotify \u2026) are deactivated in the served HTML until consent. Blocked embeds get a placeholder with an \"Allow and load\" button. The output does not depend on the visitor, so it works with page caching.<\/li>\n<li><strong>Two layers<\/strong> \u2013 \"Accept all\" and \"Reject all\" with equal weight on the first layer, a settings panel with a switch per category and the list of cookies on the second. No optional category is pre-ticked.<\/li>\n<li><strong>Google Consent Mode v2<\/strong> (basic or advanced), <strong>Microsoft UET Consent Mode<\/strong> and <strong>WP Consent API<\/strong> support.<\/li>\n<li><strong>Consent log<\/strong> \u2013 random consent ID, time, decision, settings revision and page; the IP address is stored anonymised (IPv4 last byte zeroed) or not at all, the browser only if you turn it on. CSV export and automatic retention period (3 years by default). Visitors see their own consent ID.<\/li>\n<li><strong>Withdraw at any time<\/strong> \u2013 floating button, <code>[koci_cookie_settings]<\/code> shortcode or a <code>#koci-cookie-settings<\/code> link. When consent is withdrawn, the cookies of the category are deleted.<\/li>\n<li><strong>Design<\/strong> \u2013 box, bar, popup or sidebar, 6 positions, colours and colour schemes, fonts, radius, animation and logo, with a live preview in the admin.<\/li>\n<li><strong>Every text can be edited<\/strong>, and translated with Polylang or WPML. The default texts and the admin screens are translatable on translate.wordpress.org.<\/li>\n<li><strong>Automatic cookie scan<\/strong> \u2013 the main pages of the site are loaded in the admin as if all cookies were accepted, and the cookies found are classified with a built-in database of about 100 cookies (provider, category, purpose, expiry). Third-party cookies that the browser does not let us read are added from the detected services.<\/li>\n<li><strong>Integrations by ID<\/strong> \u2013 Google Analytics 4, Google Ads, Google Tag Manager, Meta Pixel, Microsoft Clarity and Hotjar are loaded by the plugin after consent, and their cookies are added to the cookie list automatically.<\/li>\n<li>Consent validity, asking everyone again (revision), Global Privacy Control signal, robots, excluded pages, import \/ export of the settings.<\/li>\n<li><strong>Compliance check<\/strong> in the admin, based on the EDPB guidelines.<\/li>\n<\/ul>\n\n<p>The plugin is a technical tool. The site owner is responsible for the content of the privacy policy and for the accuracy of the cookie list.<\/p>\n\n<h4>Privacy<\/h4>\n\n<ul>\n<li>The consent cookie <code>koci_cookie_consent<\/code> stores the decision (random consent ID, accepted categories, settings revision and time) for the configured period (180 days by default).<\/li>\n<li>The consent log is stored in your own database (table <code>{prefix}koci_cookie_log<\/code>) and sent to your own site (<code>\/wp-json\/koci-cookie\/v1\/consent<\/code>). It is deleted automatically after the retention period.<\/li>\n<li>A suggested privacy policy text is added to Settings &gt; Privacy &gt; Policy guide.<\/li>\n<li>The plugin itself does not send any data to third parties. See \"External services\" for the optional integrations.<\/li>\n<\/ul>\n\n<h4>External services<\/h4>\n\n<p>The plugin connects to the following services only when you enter their ID on the Integrations tab. Their scripts are loaded from the provider's server in the visitor's browser, only after the visitor allowed the category of the service (statistics or marketing). Exception: with the advanced Google Consent Mode the Google tags (Analytics, Ads, Tag Manager) load before consent and send cookieless pings without consent, as described by Google. The scripts send the provider data about the visit (page address, browser and device data, IP address, and the events of the service).<\/p>\n\n<ul>\n<li><strong>Google Analytics 4 and Google Ads<\/strong> (Google tag, <code>https:\/\/www.googletagmanager.com\/gtag\/js<\/code>) \u2013 visitor statistics and ad conversion measurement. Terms: https:\/\/policies.google.com\/terms \u2013 Privacy: https:\/\/policies.google.com\/privacy<\/li>\n<li><strong>Google Tag Manager<\/strong> (<code>https:\/\/www.googletagmanager.com\/gtm.js<\/code>) \u2013 loads the tags set up in your Tag Manager container. Terms: https:\/\/policies.google.com\/terms \u2013 Privacy: https:\/\/policies.google.com\/privacy<\/li>\n<li><strong>Meta Pixel<\/strong> (<code>https:\/\/connect.facebook.net\/en_US\/fbevents.js<\/code>) \u2013 ad measurement and targeting on Meta platforms. Terms: https:\/\/www.facebook.com\/legal\/terms\/businesstools \u2013 Privacy: https:\/\/www.facebook.com\/privacy\/policy\/<\/li>\n<li><strong>Microsoft Clarity<\/strong> (<code>https:\/\/www.clarity.ms\/tag\/<\/code>) \u2013 session recordings and heatmaps. Terms: https:\/\/clarity.microsoft.com\/terms \u2013 Privacy: https:\/\/privacy.microsoft.com\/privacystatement<\/li>\n<li><strong>Hotjar<\/strong> (<code>https:\/\/static.hotjar.com\/c\/hotjar-&lt;site ID&gt;.js<\/code>) \u2013 visitor behaviour analytics. Terms: https:\/\/www.hotjar.com\/legal\/policies\/terms-of-service\/ \u2013 Privacy: https:\/\/www.hotjar.com\/legal\/policies\/privacy\/<\/li>\n<\/ul>\n\n<p>The cookie scan only loads pages of your own site and sends nothing to an external server.<\/p>\n\n<h4>For developers<\/h4>\n\n<ul>\n<li>JS API: <code>window.kociCookie.showPreferences()<\/code>, <code>show()<\/code>, <code>getConsent()<\/code>, <code>hasConsent( 'marketing' )<\/code>, <code>acceptAll()<\/code>, <code>rejectAll()<\/code>, <code>onConsent( fn )<\/code>.<\/li>\n<li>Event: <code>koci_cookie_consent<\/code> on <code>document<\/code> and in the <code>dataLayer<\/code> (GTM trigger) on every decision and page load.<\/li>\n<li>Manual blocking in a theme: <code>&lt;script type=\"text\/plain\" data-kcc-category=\"statistics\"&gt;<\/code> (<code>data-kcc-src<\/code> for an external file) and <code>&lt;iframe data-kcc-src=\"\u2026\" data-kcc-category=\"marketing\"&gt;<\/code>.<\/li>\n<li>Shortcodes: <code>[koci_cookie_settings]<\/code> (a link that opens the settings) and <code>[koci_cookie_list]<\/code> (the cookie table for the cookie policy).<\/li>\n<li>PHP: <code>koci_cookie_has_consent( 'statistics' )<\/code> \u2013 use with care with full page caching.<\/li>\n<li>Filters: <code>koci_cookie_services<\/code> (the service catalogue of the blocking), <code>koci_cookie_cookie_db<\/code> (the built-in cookie database), <code>koci_cookie_block_script<\/code> (keep a detected script unblocked), <code>koci_cookie_blocker_enabled<\/code>, <code>koci_cookie_text<\/code>, <code>koci_cookie_config<\/code>, <code>koci_cookie_scan_urls<\/code>. Action: <code>koci_cookie_settings_saved<\/code>.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from the Plugins &gt; Add New screen, or upload the plugin folder to <code>\/wp-content\/plugins\/<\/code>, then activate it.<\/li>\n<li>Open Koci Cookie in the admin menu. Set the privacy policy page on the General tab.<\/li>\n<li>On the Categories and cookies tab run the cookie scan, and check the cookie list.<\/li>\n<li>Optional: enter your tracking IDs on the Integrations tab, and adjust the design and the texts.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20with%20page%20caching%3F\"><h3>Does it work with page caching?<\/h3><\/dt>\n<dd><p>Yes. Blocking happens in the HTML for every visitor in the same way, and the decision is applied in the browser. After saving, the known page caches are cleared.<\/p><\/dd>\n<dt id=\"which%20scripts%20are%20blocked%3F\"><h3>Which scripts are blocked?<\/h3><\/dt>\n<dd><p>The scripts and iframes of 20 known services (analytics, advertising pixels, video, maps, music and social embeds), whichever plugin or theme adds them. You can add your own rules (text fragment | category) on the Blocking tab, or mark a script manually with <code>type=\"text\/plain\" data-kcc-category=\"\u2026\"<\/code>.<\/p><\/dd>\n<dt id=\"can%20i%20use%20it%20on%20a%20multilingual%20site%3F\"><h3>Can I use it on a multilingual site?<\/h3><\/dt>\n<dd><p>Yes. The banner texts can be translated with Polylang (Languages &gt; String translations) or WPML (String Translation).<\/p><\/dd>\n<dt id=\"how%20do%20i%20add%20a%20tracking%20code%20that%20is%20not%20on%20the%20integrations%20tab%3F\"><h3>How do I add a tracking code that is not on the Integrations tab?<\/h3><\/dt>\n<dd><p>Add it in your theme (or with the plugin that adds it) as usual. Known services are blocked automatically; for anything else add a rule on the Blocking tab (text fragment | category), or mark the script with <code>type=\"text\/plain\" data-kcc-category=\"statistics\"<\/code>. The plugin does not store custom code. Custom CSS for the banner belongs in Appearance &gt; Customize &gt; Additional CSS or in the styles of the Site Editor.<\/p><\/dd>\n<dt id=\"how%20can%20visitors%20change%20their%20decision%3F\"><h3>How can visitors change their decision?<\/h3><\/dt>\n<dd><p>With the floating button (on by default), or with the <code>[koci_cookie_settings]<\/code> shortcode or a <code>#koci-cookie-settings<\/code> menu link if you turn the button off.<\/p><\/dd>\n<dt id=\"when%20do%20i%20have%20to%20ask%20everyone%20again%3F\"><h3>When do I have to ask everyone again?<\/h3><\/dt>\n<dd><p>When you add a new cookie, service or purpose. Use \"Ask everyone for consent again\" on the Tools tab: the banner is shown to every visitor again.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>First public release on WordPress.org.<\/li>\n<li>English source texts, translation-ready (translations are delivered by translate.wordpress.org).<\/li>\n<li>The durations of the cookie list are translatable.<\/li>\n<li>Scripts and styles are added with the WordPress script and style functions; every input is sanitized where it is read; the first-scan hint is shown on the plugin's own page only.<\/li>\n<li>Saving the settings also clears the page cache of Koci Cache 1.1 and later.<\/li>\n<li>Removed: the custom script fields (Blocking tab) and the custom CSS field (Appearance tab). Code saved in them earlier is no longer added to the site; the Tools tab shows it once so that it can be moved, and deletes it on request.<\/li>\n<li>Blocking uses the template enhancement output buffer of WordPress, so WordPress 6.9 or later is required.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>The privacy and imprint links moved to the settings panel opened with the gear icon.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Compact banner and settings panel, shorter default texts, one-row buttons on mobile and a gear icon.<\/li>\n<li>One-time update of the old default sizes and texts; custom settings are kept.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Automatic cookie scan and built-in cookie database.<\/li>\n<li>The cookies of the integrations are added to the cookie list automatically.<\/li>\n<li>WooCommerce Order Attribution (<code>sbjs_*<\/code>) is blocked until consent.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"GDPR cookie consent banner with prior script blocking, Google Consent Mode v2, a consent log and an automatic cookie scan.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/408489","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=408489"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kocimedia"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=408489"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=408489"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=408489"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=408489"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=408489"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=408489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}