To add a cookie consent pop-up in Webflow, it's best to use a lightweight, GDPR-compliant script. One of the most reliable solutions is Osano or Cookie Consent by FreePrivacyPolicy, but for a customizable and code-light approach, CookieConsent by Osano is ideal.
Go to the Setup page and click Download or CDN.
Choose the CDN version for the easiest integration.
You’ll get a script snippet like this (shortened here for clarity):
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>window.addEventListener("load", function(){window.cookieconsent.initialise({ ... })});</script>
You can customize colors, position, theme, and text directly in the config object.
initialise()
config:To add a cookie consent pop-up in Webflow, use the CookieConsent by Osano script for a lightweight, GDPR-compliant solution. Just embed the CDN script into your Webflow project's Footer code section and customize the appearance with their built-in options.