Add a cookie banner

Ask visitors before analytics and marketing tools start, with a banner you switch on in Site settings.

Updated 19 Nov 2026

The cookie banner asks your visitors for a yes before the tools on your site that count or track them start. Until they say yes, those tools do not load. It is a site setting, not a block you place on a page.

Turn it on

  1. Open your site in the editor and open Site settings.
  2. Click Cookie banner.
  3. Switch the banner on.
  4. Pick how it looks: a bar across the bottom, or a card in the corner.
  5. Publish your site. The banner goes live at your next publish.

You can edit the title and message for each language of your site. A language you leave alone shows the starting text in that language. Keep the message under 300 characters so it fits on a phone.

What waits for a yes

Tools you connect under Integrations and Custom code sit in one of two groups:

  • Statistics, such as Google Analytics.
  • Marketing, such as Meta Pixel.

A tool that sets no cookies, such as the WhatsApp chat button or the Google Search Console check, never waits. A Custom code row waits as Marketing unless you pick another group for it in Custom code. Pick Needed to make a row start for everyone.

Maps, videos and other outside content you embed on a page also wait. The visitor sees a box with a button to show it, or it appears when they say yes to Marketing.

What your visitors see

Visitors get three buttons: Reject all, Accept all and Choose. Their answer is kept in one cookie of your own site for 180 days. If you later connect a new tool, the banner asks again for that group.

A Cookie choices link is added to your footer so visitors can change their mind. You can turn the link off in the settings, or add a round button instead. You can also put your own link to #cookie-choices anywhere on a page: in the editor, search "cookie" in the block menu and pick Cookie choices link.

Preview it

Use Preview on my site in the Cookie banner settings to see the banner on your published site.

Common questions

Does the banner make my site follow the law? The banner gives your visitors the choice. Whether your site meets the privacy rules that apply to you also depends on your wording, your privacy policy and the tools you use, and that part is yours.

I turned it on but nothing changed. Publish your site again. The banner only appears on published pages, not in the editor.

More in this topic

Back to Help centre

Still stuck?

Write to us and a person replies.

Email [email protected]