Clarke Cookie Consent asks visitors for permission before any non-essential cookies are set, as the UK GDPR,
PECR and the ICO’s guidance require.
Paste tracking code (Google Analytics, Meta Pixel and so on) into Settings > Cookie Consent > Scripts, under
the right category. It is added to every page, but only runs once the visitor accepts that category.
Scripts already in your theme can be blocked by changing the script tag to:
<script type="text/plain" data-cd-category="analytics"> ... </script>
using analytics or marketing as the category.
As well as the floating button, you can add a button anywhere with the shortcode [cd_cookie_settings],
link a menu item to #cd-cookie-settings, or give any element the class cd-cookie-settings.
window.cdCookieConsent.hasConsent( 'analytics' ), .getConsent() and .showPreferences().cd-cookie-consent:ready and cd-cookie-consent:change (the choice is in event.detail.consent).cd_cookie_consent_categories and cd_cookie_consent_clear_cookies.--cd-cc-accent and --cd-cc-bg.A Pro add-on adds banner position and colour options, and holds back YouTube videos and Google Maps until visitors consent.