OptinFlare does not display a cookie banner. It follows the choices collected by your consent tool. The same instructions appear in OptinFlare โบ Settings, Consent tool.
Once a consent tool is connected, its answer wins in every privacy profile. Without one, the privacy profile decides.
Cookiebot and Complianz
No code is needed. OptinFlare reads their choices and links their categories:
- Statistics: statistics and attribution.
- Marketing: display frequency, targeting and A/B testing.
- Preferences: the external CAPTCHA.
Before the visitor answers, OptinFlare follows the toolโs region settings. Where the tool asks for consent first, for example for the European Union, these features wait for acceptance. Elsewhere, they run until the visitor refuses.
Another consent tool
- In your consent tool, find where you can run code after a visitor accepts or refuses: a JavaScript callback, a consent event or a Google Tag Manager trigger, depending on the tool.
- Paste the code below there. Replace each
trueorfalsewith the visitorโs answer:truewhen accepted,falsewhen refused or withdrawn, and alsofalsebefore the visitor answers if your tool asks for consent first. - Run it on every page once the choice is known, and again whenever the visitor changes it.
var choices = { analytics: true, personalization: false, captcha: true };
if (window.optinFlarePrivacy) {
window.optinFlarePrivacy.setConsent(choices);
} else {
document.addEventListener('DOMContentLoaded', function () {
if (window.optinFlarePrivacy) window.optinFlarePrivacy.setConsent(choices);
});
}analytics: statistics and attribution.personalization: display frequency, targeting and A/B testing.captcha: the external CAPTCHA.
The full browser API is described in Consent API.
Check the connection
Open a page of your public site, open the browser console and run window.optinFlarePrivacy.permissions(). It lists the choices OptinFlare received. It does not work in the WordPress administration, where the public script is not loaded.
Refusal and withdrawal
When a visitor refuses or withdraws a choice, OptinFlare deletes its own cookies and browser storage for that purpose, in every open tab of your site. If the external CAPTCHA was loaded, the page reloads to stop it. Requests already sent cannot be recalled, and OptinFlare does not control tracking added by your theme or other plugins.