Install CookieAsk on Webflow
Templates and presets are not legal advice.
Webflow lets you add custom code to the <head> of every page. This needs a paid Site plan (a Webflow requirement, not ours).
1. Turn off other consent tools
If you added a Webflow consent banner, an app or a script for cookie consent, remove it so visitors see one banner only.
2. Add the snippet
- In the Webflow Designer open Site settings (the gear in the left bar), then Custom code.
- Paste your snippet from the CookieAsk install page into Head code. It is shown here with placeholders; use the one from your dashboard:
<script src="https://YOUR-LOADER-ORIGIN/l/YOUR-SITE-KEY.js" referrerpolicy="origin"
data-cfasync="false" data-skip-moving="true" data-no-optimize="1" nowprocket></script>
- Put it at the top of the Head code box, above any other code (analytics, pixels, tag managers).
- Save, then Publish the site. Custom code does not run in the Designer or in preview; it runs on the published site.
Do not use Footer code for CookieAsk: scripts there run after the page's content.
3. Check the order
- View the published page's source: the CookieAsk tag should be in
<head>, above your other tracking code. - Webflow's own Google Analytics field under Integrations (and any app that injects tags) is added by Webflow, and it may run before your custom code. If you use it, add the tracking through your Head code instead, below the CookieAsk snippet, so the loader can hold it back until the visitor agrees.
- Run the verification scan on the install page and read what it lists.
4. Page-level code
Custom code on a single page (Page settings → Custom code) runs only there. Use the site-wide Head code, so every page, including CMS collection pages, has the loader.
5. If you use a Content-Security-Policy
Webflow does not let you set response headers on its hosting, so no policy entries are needed. If you export the site and host it yourself, follow the plain HTML guide.
Check it works
- Open the published site in a private window: the banner appears.
- Answer it, and look at the Installation status card on the CookieAsk install page for the last consent event.