Okito Cookie Consent
Okito Cookie Consent
Description
Okito Cookie Consent adds a customizable cookie consent banner to your WordPress site and keeps Google Analytics, Google Ads and your other tags in line with each visitor’s choice. It helps you meet the GDPR, UK GDPR, ePrivacy, CCPA/CPRA and other US state privacy laws, Brazil’s LGPD and Türkiye’s KVKK.
You design the banner in the Okito dashboard; the plugin connects your site with one click and loads a single asynchronous script. No coding and no theme changes are needed.
Why Okito
- Google Consent Mode v2 — ad_storage, analytics_storage, ad_user_data and ad_personalization are set before your Google tags run and updated the moment a visitor decides. Works with Google Analytics 4, Google Ads, Google Tag Manager and Site Kit by Google.
- IAB TCF v2.4 — registered IAB Europe CMP (ID 508) with the full
__tcfapi, Google Additional Consent (AC string) and Google’senableAdvertiserConsentMode, for sites that run AdSense, Ad Manager or programmatic ads. - WP Consent API — every choice is passed to the WP Consent API, so Site Kit and other compatible plugins follow it automatically.
- Geo-targeting by privacy law — show the banner only where consent is required (EEA, UK, Switzerland, Türkiye, Brazil and similar) and keep measurement on elsewhere.
- US privacy — opt-out notice with a “Do Not Sell or Share My Personal Information” link, the IAB US Privacy API (
__uspapi) and Global Privacy Control (GPC) support. - Automatic script blocking — tracking scripts wait until the visitor consents to their category.
- Cookie scanner — Okito scans your site and sorts cookies into categories for your cookie policy.
- Cookie table — the
[okito_cookie_table]shortcode lists your site’s cookies on your cookie policy page, by category, and updates itself after every scan. - Consent records — every decision is logged as proof of consent.
- 50+ languages — the banner speaks your visitor’s language automatically.
Built for WordPress
- Connect with Okito — sign in, pick your site and the banner is live. No key to copy.
- Fast — one small asynchronous script. Nothing is rendered by PHP, so your pages stay light.
- Caching and optimization friendly — works with WP Rocket, LiteSpeed Cache, Autoptimize, SiteGround Optimizer, W3 Total Cache and Cloudflare; the consent scripts are never delayed, combined or deferred.
- Site Health checks — Tools Site Health warns you about a second cookie plugin, a missing WP Consent API, Site Kit’s Consent Mode setting and Google tags that load before your consent defaults.
- Debug mode — add
?okito_debug=1to any URL to see whether the consent defaults load before your Google tags.
Free plan
Start free and upgrade when you need more websites or advanced features. See Okito pricing.
External services
This plugin relies on Okito, a third-party cookie consent and compliance platform operated by Okito (https://okito.com). It is required for the plugin to function: the banner, consent storage, IAB TCF v2.4 signals, Google Consent Mode v2 and the cookie scanner are all delivered by Okito’s service. A free plan is available.
The plugin contacts the Okito service in five ways:
- CDN script load (visitor’s browser, public pages only when the banner is enabled)
- Endpoint:
https://cdn.okito.com/js/{WEBSITE_KEY}(andhttps://cdn.okito.com/js/{WEBSITE_KEY}/blocker.jswhen the Early blocker is on and no copy of it is available on your server, see 5) - When: On every public page view in the visitor’s browser, after the plugin is enabled and a Website Key is configured.
- What is sent: The visitor’s browser performs a standard HTTPS request for the script file. This means Okito receives the Website Key (as part of the URL), the visitor’s IP address, User-Agent and the standard
Refererheader sent by the browser. While the banner is displayed, it stores the visitor’s consent choices in the browser (cookies / local storage) and reports anonymized consent metrics to Okito so they can be shown in your Okito dashboard. - Why: This is what renders the cookie consent banner, captures the visitor’s choice, blocks/unblocks tagged third-party scripts and feeds the Okito analytics for that website.
- Admin “Test Connection” request (server-side, WordPress admin only)
- Endpoint:
https://cdn.okito.com/js/{WEBSITE_KEY} - When: Only when an administrator clicks the “Test Connection” button on the Okito Settings page.
- What is sent: A standard HTTPS GET request from your server containing only the Website Key entered in the form. No visitor data, posts or user information is transmitted.
- Why: To verify that the Website Key is valid against the Okito CDN.
- “Connect with Okito” (administrator’s browser, WordPress admin only)
- Endpoint:
https://app.okito.com/integrations/wordpress/connect - When: Only when an administrator clicks “Connect with Okito”.
- What is sent: The site’s home URL, the URL of the plugin settings page and a random one-time code. After the administrator signs in to Okito and chooses a website, Okito sends the browser back to the settings page with the Website Key and the same code, which the plugin checks before saving the key.
- Why: To connect the site to an Okito account without copying the Website Key by hand.
- IAB TCF check (server-side)
- Endpoint:
https://cdn.okito.com/api/embed/{WEBSITE_KEY}/tcf-stub - When: When the Website Key is saved, then at most once an hour (every 5 minutes while Okito cannot be reached or the site is paused), in the background through WP-Cron after a public page is viewed. Pages do not wait for this request, except while there is no answer yet for the Website Key: then one public page every 5 minutes waits for it (up to 3 seconds) until Okito answers. On sites where WP-Cron does not run, a public page makes the request instead, as before version 1.1.6.
- What is sent: A standard HTTPS GET request from your server containing only the Website Key. No visitor data, posts or user information is transmitted.
- Why: To learn whether the site’s banner uses IAB TCF, so the IAB TCF stub is printed in the page head only when it is needed.
- Early blocker script (server-side)
- Endpoint:
https://cdn.okito.com/js/{WEBSITE_KEY}/blocker.js(with avparameter that changes every hour, so caches return a current copy) - When: While the Early blocker setting is on, at most once every 12 hours (every 10 minutes while Okito cannot be reached), in the background through WP-Cron after a public page is viewed. Pages do not wait for this request; on sites where WP-Cron does not run, a public page makes it instead (waiting at most 3 seconds). While your server has no copy yet, it is also made in the WordPress admin (up to 3 seconds) after the plugin is activated or updated, when the Website Key is saved and when the Early blocker is turned on, so the first public page already has it.
- What is sent: A standard HTTPS GET request from your server containing only the Website Key. No visitor data, posts or user information is transmitted.
- Why: The early blocker (the same small script for every site) is printed inline at the top of the page, so visitors’ browsers do not wait for a separate request before the page renders. The last copy is kept in the WordPress options table.
The plugin does not send any other data to Okito or any other third party. No personal data of WordPress visitors is transmitted by PHP code in this plugin.
Use of the Okito service is subject to:
- Okito Terms of Service: https://okito.com/terms-of-service/
- Okito Privacy Policy: https://okito.com/privacy-policy/
Site administrators are responsible for ensuring their own privacy policy describes the use of Okito where required by law. Suggested wording is registered with WordPress and visible under Settings Privacy after this plugin is active.
Privacy
This plugin:
- Saves your Okito Website Key and an enabled/disabled flag in the WordPress options table.
- When enabled, loads the script described in External services on public pages so visitors see the cookie banner and consent features.
Suggested wording for your Privacy Policy is available in WordPress under Settings Privacy after this plugin is active.
Installation
Install
- In WordPress, go to Plugins Add New, search for Okito Cookie Consent, then click Install Now and Activate.
- Or upload the ZIP under Plugins Add New Upload Plugin.
Connect your site
- Go to Okito Settings.
- Click Connect with Okito, sign in (or create a free account) and choose your website.
- You are sent back to WordPress with the cookie banner enabled.
Prefer to do it by hand? Copy the Website Key from the Okito dashboard, paste it into Okito Settings, enable the banner and save.
Recommended
- Install the WP Consent API plugin so other plugins follow the visitor’s choice.
- Using Site Kit by Google? Turn on Consent Mode under Site Kit Settings Admin Settings.
- Check Tools Site Health for Okito’s setup checks.
Faq
Install Okito Cookie Consent, click Connect with Okito in Okito Settings and choose your website. The banner appears on your site right away; change its design, texts and languages in the Okito dashboard.
Yes. Consent Mode v2 defaults (ad_storage, analytics_storage, ad_user_data, ad_personalization) are set before your Google tags load and updated as soon as the visitor makes a choice (advanced Consent Mode). For basic Consent Mode, choose Google tags Basic in the Okito Banner Builder and add add_filter( 'okito_print_consent_mode_defaults', '__return_false' ); to your theme or a small plugin: Okito then sends no Consent Mode commands and keeps Google tags blocked until the visitor consents.
Yes. Keep your Google Tag Manager container or Site Kit as it is: Okito’s defaults load first in the page head. Site Kit also reads the visitor’s choice through the WP Consent API.
Yes. Okito is registered with IAB Europe as CMP ID 508 and supports TCF v2.4, including the Google Additional Consent string.
Yes. With geo-targeting the banner opens only where a consent law requires it, and measurement stays on for visitors from other regions.
No. It loads one asynchronous script; the banner is rendered in the visitor’s browser, not by PHP on your server.
Yes. Okito tells WP Rocket, LiteSpeed Cache, Autoptimize, SiteGround Optimizer, W3 Total Cache and Cloudflare Rocket Loader to leave its consent scripts alone, so they are never delayed, combined or deferred.
Yes, the banner is managed in an Okito account. You can create one for free while connecting the plugin.
Add the [okito_cookie_table] shortcode to your cookie policy page. It shows the cookies from your latest Okito scan by category, with their provider, purpose and duration, and a button to change cookie settings. It updates itself after every scan. The table follows the visitor’s language; cookie descriptions are translated automatically into your banner languages.
The plugin only adds the consent script. What appears inside the banner is set in your Okito dashboard.
Reviews
Simple implementation for WordPress sites
By senanurcelik on August 24, 2026
I used Okito while setting up cookie consent on a WordPress website. Installation was simple, and the banner settings were easy to understand. I found the documentation customization options scanning feature helpful during the setup. It can be a practical option for users who want to manage their cookie banner from a clear dashboard.
Straightforward setup
By bilalkeles29 on August 19, 2026
I installed Okito on a WordPress site and found the setup process to be very straightforward. The dashboard is intuitive, and locating the basic settings was easy.
I have been using it for two months, and so far, I haven't encountered any compatibility or performance issues on the site. The feature I use the most is the customizable banner.
Easy to set up and manage
By seymademir29 on August 17, 2026
We use Okito on our online store for our cookie banner. The setup was easy, and I was able to manage the basic settings without needing much technical knowledge.
I especially found the banner customization cookie scanning language settings useful for our website. So far, the plugin has worked well for our needs.
Easy to Set Up and Manage
By aslmck2 on August 14, 2026
I used Okito to set up a cookie consent system on a WordPress website. The installation was straightforward, and the banner settings were easy to understand. The documentation, customization options, various settings, and the scanning feature were very helpful during the setup process. It can be a practical choice for users who want to manage their cookie banner via an intuitive dashboard.
Fast Setup with Flexible Banner Customization
By mehmetbektas on August 12, 2026
As a digital agency managing multiple client websites, we need tools that are easy to deploy and maintain. Okito's WordPress plugin made the implementation process straightforward.
What we like most is the clean interface and the ability to customize the consent banner without spending hours on configuration. The plugin has worked smoothly across different WordPress installations and has saved us time when handling compliance requirements.
Helpful for managing our cookie banner
By erimirem on August 6, 2026
I manage a content website with visitors from different countries. Okito made it easier for me to manage the cookie banner without dealing with complicated settings.
I liked being able to adjust the banner text, languages, regional settings, design for our visitors. The plugin has been stable on our website so far.
Clean Interface and Smooth Onboarding Experience
By rumeysaduman on August 3, 2026
One of the things I appreciate about Okito is its balance between simplicity and functionality. Many consent tools are either too basic or overly complicated. Okito sits somewhere in the middle.
The user interface is intuitive and the documentation helped us during setup. We would like to see even more integrations in the future, but overall our experience has been positive.
I highly recommend it for startups.
By alperenbayrak on July 24, 2026
As a startup, we needed an affordable solution that would help us manage cookie consent without requiring significant technical effort. Okito met those expectations very well.
The WordPress plugin is lightweight, easy to configure, and provides useful customization options. We especially liked how quickly we were able to get everything running.
Simple, Fast & Reliable Cookie Consent Solution
By umutakalin on July 20, 2026
We were looking for a simple cookie consent solution that would not slow down our website. Okito was very easy to install on WordPress and the setup took only a few minutes. The dashboard is clear and understandable, even for users without technical knowledge.
The cookie scanning feature helped us identify scripts we were not aware of, and the consent banner customization options were enough for our needs. Overall, it has been a reliable solution for managing privacy compliance.
Okito Cookie Consent Widget is a performance product.
By ugurbasar on May 31, 2026
We chosen Okito because of price is good and website integration is very easy. I like it to much there is too many documentation. Dashboard is understandable. Easy dashboard screens.
Changelog
1.1.7
- The early blocker copy is fetched in the WordPress admin while your server has none yet: after the plugin is activated or updated, when the Website Key is saved (also through Connect with Okito) and when the Early blocker is turned on. The first public page then already has the blocker printed inline, and so does the copy a page cache keeps of it; before, the first pages loaded it from the Okito CDN until the background refresh had run. When Okito cannot be reached, pages work as before
- The IAB TCF and GPP stubs in the page head answer calls from other frames (postMessage) only to the frame that asked, at its own origin, and ignore messages from frames without an origin (such as sandboxed frames). Over postMessage, the TCF stub answers commands outside the CMP API with an error instead of queueing them
- The IAB TCF stub reports API version 2.4, like the Okito banner script
- The suggested Privacy Policy text names cdn.okito.com, where the banner script is loaded from, and links to Okito’s privacy policy
1.1.6
- The Early blocker is now on by default. Sites updating from an older version get it turned on once, with a notice in the WordPress admin; you can turn it off in Okito Settings, and that choice is kept
- The early blocker is printed inline at the top of the page instead of loading as a separate file, so the page no longer waits for an extra request before it renders. The copy comes from Okito and is refreshed in the background every 12 hours, so pages do not wait for it; when Okito cannot be reached the last copy is used, and without any copy the file is loaded from the Okito CDN as before
- The IAB TCF / GPP stub check normally no longer runs while a visitor’s page is built: Okito’s answer is refreshed in the background, and a new Website Key gets its answer when it is saved. A page still asks Okito itself while there is no answer yet for the key, or when WP-Cron does not run on the site
1.1.5
- New setting: Early blocker (off by default). It adds a small script at the very top of the page that holds back tags from known tracking services (Meta Pixel, TikTok, Hotjar, Microsoft Clarity, LinkedIn and others) written by the theme or other plugins until the visitor consents. The site’s own scripts, libraries and Google tags are not affected
- With the Early blocker on, those tracker tags are also marked in the page on the server before it is sent, so visitors’ browsers do not even download them before consent (a browser downloads script files it sees in the page early, before any script can run). Preload and preconnect hints for those services are removed. Works with page caches (the cached page is the marked one). New
okito_hold_tracker_markupfilter: return false to send the tags unchanged - The IAB TCF stub is printed in the page head only when the site’s banner can use IAB TCF. On other sites Google ad tags follow Google Consent Mode, so ads work again after the visitor accepts. New
okito_print_tcf_stubfilter (true / false) to override - IAB Global Privacy Platform stub (__gpp) in the page head for sites with the US State Laws notice (without IAB TCF): ad tags that start before the Okito banner script find the GPP API. New
okito_print_gpp_stubfilter (true / false) to override - New
[okito_cookie_table]shortcode: the cookie table for your cookie policy page, filled by the Okito script with the cookies of your latest scan (by category) and updated after every scan - South Korea, China and India added to the regions where the Google Consent Mode defaults printed in the page head start as denied (consent first)
- The Okito banner script is requested with high fetch priority on WordPress 6.9 and later, so the banner and its consent signals come sooner on pages with many images
- IAB TCF references updated to v2.4 in the plugin screens and readme (the banner already follows TCF v2.4: the standard Features text, the new name of Special Feature 2 and the multi-device notice)
1.1.4
- New
okito_consent_mode_ads_data_redactionfilter (default true) andokito_consent_mode_url_passthroughfilter (default false) for the Consent Mode commands printed in the page head, matching the Banner Builder settings
1.1.3
- New
okito_print_consent_mode_defaultsfilter: return false to skip the Consent Mode defaults printed in the page head (basic Consent Mode, where Google tags stay blocked until consent)
1.1.2
- IAB TCF stub in the page head: the TCF API (__tcfapi) is available before Google tags run, even when they load before the Okito banner script
1.1.1
- WP Rocket “Delay JavaScript”: the WP Consent API and Site Kit’s Consent Mode script are no longer delayed until the first interaction, so Site Kit receives the visitor’s choice right away
1.1.0
- Tested with WordPress 7.1
- One-click “Connect with Okito”: sign in, pick the site and the banner is enabled, no key copying
- WP Consent API integration: visitor choices are passed to the WP Consent API (functional, preferences, statistics, marketing), so Site Kit and other compatible plugins follow them
- Google Consent Mode v2 defaults printed early in the page: region-aware, Global Privacy Control support and Okito’s Google developer ID
- Compatibility with caching and optimization plugins (WP Rocket, LiteSpeed Cache, Autoptimize, SiteGround Optimizer, W3 Total Cache, Cloudflare Rocket Loader): Okito’s scripts are never delayed, deferred or combined
- Site Health checks: banner setup, other active consent plugins, WP Consent API, Site Kit Consent Mode and whether Google tags load before the consent defaults
- Escaped all admin output, prepared database queries and other WordPress Plugin Check fixes
1.0.2
- Fixed a PHP 8+ fatal error when the cookie banner was enabled (script tag filter)
- Improved banner enable flag handling and WordPress 6.3+ async script loading
- Added compatibility helpers for WordPress 6.4–7.0 and PHP 7.4–8.x
- Script loading uses native
asyncstrategy on WordPress 6.3+ and a safe fallback on older supported versions
1.0.1
- Updated IAB TCF references to v2.3 in plugin UI and documentation
- Switched script delivery and connection checks to cdn.okito.com
- Improved script connection verification logic for CDN responses
- Added custom Okito admin menu icon
1.0.0
- Initial release
- CDN script injection in
wp_head - Settings for Website Key and enable/disable
- Connection test from WordPress admin
- Suggested privacy policy text for the site Privacy Policy page