Skip to main content

Integration

Cookie banner for Webflow with Custom Code

Last reviewed

Short answer

Webflow sites need a consent banner as soon as they use analytics, ad pixels or embeds such as YouTube or Google Maps. With Limes you paste one script into Site Settings > Custom Code > Head Code, design the banner in the Limes editor to match your Webflow typography and colours, and connect a footer link so visitors can change their choice.

Install
Site Settings > Head Code
Requires
Webflow site plan
Styling
Isolated, matches your brand
Consent Mode v2
Automatic

Setup

  1. Paste the script

    Open Site Settings > Custom Code and paste the Limes script at the top of Head Code.

  2. Add a settings link

    In the Designer, add a "Cookie settings" link to your footer component that reopens the Limes settings.

  3. Publish the site

    Publish to your custom domain or .webflow.io. Webflow does not run custom code in Designer preview.

  4. Test in a private window

    Test in a private window that Google tags report denied consent until you accept.

Embeds, Interactions and analytics

Use an Embed element for YouTube, Vimeo, Google Maps or Calendly. Write data-src instead of src on the iframe and add data-limes-category="marketing". Until the visitor consents, Limes shows a placeholder with a button that grants only that category. Google Analytics and Google Ads added via Webflow's integrations receive Consent Mode defaults from Limes, as long as the Limes script comes first in the head.

For Webflow studios

Studios that build many client sites can run them from one Limes account. The Agency plan puts 50 domains and 2,500,000 sessions in one pool. Client workspaces and white label follow.

Frequently asked questions

Why doesn't the banner show in Webflow preview?

Webflow only runs custom code on published sites. Publish to staging (.webflow.io) or your domain to test.

Can the banner match my Webflow design?

Yes. Choose layout, colours, corner radius and logo in the Limes editor. The banner renders in an isolated Shadow DOM so your Webflow styles and Limes styles never clash.

Does Limes work on Webflow's free plan?

Custom code requires a paid Webflow site plan. Check Webflow's current plan features.

Ship consent with your next publish

Design the banner, paste one line into Head Code, publish.

Free up to 2,500 sessions. No payment details.