How can I get the cookie consent banner to show up on my Webflow page?

TL;DR
  • Enable Webflow’s native cookie consent in Project Settings > Privacy for a basic banner.  
  • For advanced features like GDPR compliance, embed a third-party script (e.g., Cookiebot) via Custom Code and publish the site to activate the banner.

To display a cookie consent banner on your Webflow site, you need to either enable Webflow’s native option or integrate a third-party solution.

1. Use Webflow's Native Cookie Consent Banner

  • Go to Project Settings in your Webflow dashboard.
  • Click on the Privacy tab.
  • Under Cookie Consent, toggle Enable Cookie Consent to ON.
  • You can customize the messagebutton text, and policy link.
  • Webflow will automatically inject the banner on published sites.

Note: The native banner is simple and only informs users—there’s no built-in logic for blocking cookies until consent is given.

2. Add a Third-Party Cookie Consent Tool

If you need more control (e.g., GDPR-compliant blocking or consent logs), use tools like CookiebotOneTrust, or Osano.

  • Sign up with the tool of your choice and configure your cookie categories.
  • Most tools will provide a JavaScript snippet to embed.
  • In Webflow, go to Project Settings > Custom Code, and paste the script in the Head or Before </body> section.
  • Save and Publish your site for the script to take effect.

Important: Make sure to only load tracking scripts after consent if you're targeting GDPR/CCPA regions.

3. Display the Banner in Preview Mode (If Testing)

  • Webflow’s native banner doesn’t show in preview mode within the Designer.
  • You need to publish the site to a live domain (Webflow staging domain is fine) to see it.
  • For third-party banners, confirm the provider doesn’t block the banner on localhost or staging sites.

Summary

Enable the cookie banner in Project Settings > Privacy for a basic option, or integrate a third-party cookie tool for advanced compliance. You must publish the site to see the banner in action.

Rate this answer

Other Webflow Questions