No-code installation
Paste the server URL and the site ID, then test the connection: the banner appears at the top of every page, before any other script.
WordPress
The plugin connects your WordPress site to your Optooki account: the banner loads in the right place and common trackers wait for consent.
What the plugin does
Paste the server URL and the site ID, then test the connection: the banner appears at the top of every page, before any other script.
Google Analytics (gtag), Meta Pixel, Hotjar, Microsoft Clarity, LinkedIn Insight and TikTok Pixel are held back until consent is given.
Embedded YouTube and Vimeo videos are replaced by a placeholder until the visitor accepts the relevant category.
The visitor’s choices are shared with compatible plugins, such as WooCommerce or Site Kit by Google.
[optooki_preferences] displays a “Manage cookies” button, and [optooki_cookie_list] the table of cookies for your policy.
A ready-to-use text is suggested under Settings → Privacy, for you to adapt to your site.
WP Rocket, Autoptimize, LiteSpeed Cache and similar plugins can defer or combine scripts.
Exclude the Optooki script (it carries the
data-optooki attribute) from the “defer”, “delay JavaScript execution” and “combine
JavaScript files” options: it must remain the first script on the page to block trackers in time.
Add its URL to the optooki_blocked_scripts filter:
add_filter( 'optooki_blocked_scripts', function ( $map ) {
$map['cdn.example.com/tracker.js'] = 'analytics';
return $map;
} );
The available categories are necessary, preferences,
analytics and marketing.
The plugin’s admin interface is available in English and French. It requires WordPress 6.0 and PHP 7.4 or later.
Create your account, customise the banner and add one line of code. Free for one site, no credit card required.