The Cookiebot CMP works by manipulating the DOM object (e.g. the collection of elements that make up a webpage). Scripts, frameworks and addons that employ similar techniques can conflict with the Cookiebot CMP.
Cloudflare Rocket Loader
Rocket Loader is a product that loads elements asynchronously to optimize page loading times. This is known to conflict with both the Cookiebot CMP's ability to detect and dynamically load elements according to the website visitor's consent.
We recommend using Rocket Loader in manual mode to ensure that the Cookiebot CMP controls which page elements are loaded/executed and only use Rocket Flare to optimize elements that you are certain do not set any (or only necessary) cookies. To selectively enable Rocket Loader optimization for a script, when Rocket Loader is in manual mode, set the attribute
- In Cloudflare settings, under 'Performance Settings', set the 'Rocket Loader' option to Manual.
- If needed, manually mark up the elements that you wish to be loaded by Rocket Loader:
<script data-cfasync="true" src="https://example.org/js/">
These elements will be able to set cookies regardless of the visitor's consent choices, so only mark up elements that do not set any or only set necessary cookies.
Please sign in to leave a comment.