fs-cc-category
and type="text/plain"
to ensure they only run after explicit user consent.To implement a GDPR-compliant cookie consent in Webflow using Finsweet's Cookie Consent solution from the tutorial by Joe Krug, follow each key step and configuration carefully to meet UK data protection requirements.
Example Location: Paste it before the closing </head>
in the Head Code area.
Use the Finsweet Cloneable project or build from scratch.
Add the container elements used by Finsweet:
One for the banner (fs-cc="banner"
).
One for accept all (fs-cc="accept-all"
).
One each for specific category acceptances like:
fs-cc="accept-functional"
fs-cc="accept-marketing"
One to trigger preferences modal (fs-cc="open-preferences"
).
Style the modal and banner using Webflow Designer as needed.
script
tag with type="text/plain"
and add:fs-cc-category="marketing"
for marketing cookies.fs-cc-category="functional"
for site-enhancing but not necessary scripts.Example: Modify a Google Analytics script like this:
<script fs-cc-category="marketing" type="text/plain"> // Your GA tracking code</script>
Publish your Webflow site.
Open it in an incognito browser or clear existing cookies.
Accept, reject, or choose categories and inspect via browser dev tools:
Check that no cookies are loaded before acceptance.
Confirm scripts are only triggered after correct consent.
Use tools like Cookiebot validator or GDPR Cookie Scanner to verify compliance.
To use the Finsweet Cookie Consent tool in Webflow for full UK GDPR compliance, install the CDN script via Project Settings, configure your cookie banner elements using Finsweet Attributes, tag your non-essential scripts with fs-cc-category, and ensure no cookies load before explicit consent. Tailor consent settings specifically for the UK and always test your implementation thoroughly.