---
title: How to add a cookie banner to a Framer site
description: You add a cookie banner to a Framer site with Framer's own Cookie Banner component or a consent tool such as Cookiebot pasted into the start of the head tag in your site's custom code, and the banner only works properly when your tracking tags wait for a visitor's choice and Google receives that choice through Consent Mode.
slug: /how-to/how-to-add-a-cookie-banner-to-a-framer-site
page_type: playbook
lead_prompt: framer cookie banner
entity: Kite
category: AI marketing agent
author: Devon Wells and Kite
date_published: '2026-12-01'
date_modified: '2026-12-01'
related_use_cases:
  - /use-cases/conversion-tracking.md
integrations:
  - name: Google Analytics
    page: /integrations/google-analytics.md
---

# Playbook

# How to add a cookie banner to a Framer site

## Key Takeaways

- There are two common ways to add a cookie banner to a Framer site. You can use Framer's own Cookie Banner component, or you can paste the script from a consent tool such as Cookiebot, CookieYes, or Termly into the start of the head tag in your site's custom code settings.
- A banner that only appears on screen isn't enough. For visitors in the European Union and the United Kingdom, Google Analytics, ad pixels, and other tracking cookies have to wait until the visitor accepts, and rejecting has to be as easy as accepting.
- Google Consent Mode is how the Google tag learns the visitor's choice. The tag starts with consent denied, and the banner sends an update when the visitor accepts. If either half is missing, your tracking either ignores the banner or never starts.
- Kite doesn't edit Framer sites, so you place the banner and click Publish. Kite reads your live site, lists every tool that sets cookies, recommends the banner that fits, writes the consent code and the banner text, and then tests the published site by rejecting and accepting cookies itself.
- At the end, you have a banner on every page, tags that respect the choice, Google Analytics data that switches on when a visitor accepts, and a recurring check that catches new tags added later without consent.

## How do I add a cookie banner to a Framer site?

You add a cookie banner to a Framer site in one of two ways. The first is Framer's own Cookie Banner component, which you insert from Framer's component library, style to match your site, and set up with your banner text, your buttons, and a link to your privacy policy. It can offer a simple accept-and-reject choice or let visitors choose by category, such as analytics and marketing. The second is a dedicated consent tool, often called a consent management platform. Cookiebot, CookieYes, Termly, Usercentrics, and iubenda all work this way. You create an account, enter your domain, and the tool gives you a short script to paste into the box for the start of the head tag in your Framer site settings, under custom code. Whichever you choose, the banner only reaches your live site after you click Publish.

The banner is the visible part of the job, and it's the easy part. The part that decides whether you're compliant is what your tracking does before and after a visitor chooses. Under the European Union's privacy rules and the United Kingdom's equivalent, a site needs consent before it sets cookies that aren't strictly necessary. That covers Google Analytics, the Meta pixel, the LinkedIn Insight Tag, and many embeds, such as YouTube videos and booking widgets. A banner that appears while Google Analytics has already set its cookies in the background doesn't meet the rule.

Google adds its own requirement on top. If you advertise with Google Ads and have visitors in the European Economic Area, Google needs your site to pass each visitor's choice to its tags through Consent Mode. Without it, Google stops building remarketing audiences from those visitors and loses much of its conversion measurement for them.

A good result has these qualities:

- The banner appears on every page a visitor can land on, not only the home page, because many visitors arrive on a blog post or a landing page first.
- Reject is offered as plainly as Accept, on the first screen of the banner.
- No tracking cookie is set until the visitor accepts.
- The Google tag starts with consent denied and switches on the moment a visitor accepts.
- Visitors can reopen their cookie settings later, usually from a link in your footer, and change their mind.

Kite does this work with you. It finds every tool on your site that needs consent, writes the code and the banner text, and then tests the published site to prove the banner actually controls your tracking.

## How to get started

Start by telling Kite which site needs a banner and what you run on it:

> "We're getting more visitors from Europe. Add a cookie banner to our Framer site that works with Google Analytics and our Google Ads conversion tracking."

Or ask Kite to check a banner you already have:

> "We added Framer's cookie banner last month, but I'm not sure it's blocking anything. Check it."

Kite is an AI marketer. It researches your business, builds a growth strategy, and ships the work that brings you new customers. By the time you ask, it has already read your website during that research, so it knows which marketing tools your pages load and which ads you run. It proposes the kind of banner you need and the consent setup for your tags, and you confirm or change the plan before it writes anything.

Connect your Google Analytics account by signing in with Google, so Kite can see where your visitors come from and confirm that data arrives after a visitor accepts. If you manage your tags in Google Tag Manager, connect that account too, so Kite can set the consent rules on each tag. You don't need to give Kite access to Framer. Kite works from your live site, and you paste what it writes into Framer yourself.

## How Kite adds a cookie banner to a Framer site

### What on the site sets cookies?

Kite starts by opening your live Framer site in a fresh browser, the way a first-time visitor would see it, and recording everything that loads before anyone touches a banner. It renders each page so it sees the code Framer actually serves, including anything added in your site-wide custom code or in a single page's custom code settings. It reads the cookies that exist on the page at that moment and the tags that loaded them.

Then Kite sorts what it finds by the consent each item needs:

- **Analytics tools**, such as Google Analytics, Hotjar, or Microsoft Clarity, which need the visitor's consent for analytics.
- **Advertising tags**, such as the Google Ads tag, the Meta pixel, or the LinkedIn Insight Tag, which need consent for marketing.
- **Embeds that set their own cookies**, such as a YouTube video, a Calendly booking widget, or a chat widget.
- **Strictly necessary items**, such as the cookie that remembers the visitor's own consent choice, which don't need consent.

This list is the real scope of the job. A banner only controls the tools it knows about, so Kite names every one of them before choosing a banner. It also checks each page in your sitemap for an existing banner, which catches the common case where the banner sits on the home page and nowhere else.

### Which banner does your site need?

Kite recommends a banner based on who visits your site and what your site runs. With Google Analytics connected, it reads your visitors by country to see how much of your traffic comes from the European Union, the United Kingdom, and other places with consent rules. That tells it whether the banner needs to ask before any tracking starts, or whether a notice with an opt-out is enough for your audience.

Then it weighs your tools. Framer's own component suits a site whose tracking is mostly Google Analytics and the Google Ads tag, because it keeps everything inside Framer with nothing extra to pay for. A consent tool such as Cookiebot or CookieYes suits a site that loads several marketing tags and embeds, because those tools scan your site for cookies, block known trackers until consent, and keep a record of each visitor's choice that you can show if anyone asks. If your site shows Google AdSense ads to visitors in Europe, Google requires a consent tool it has certified, and Kite recommends one from that list.

Kite also recommends which way Consent Mode should run. In basic mode, the Google tags don't load at all until a visitor accepts. In advanced mode, they load with consent denied and send Google cookieless signals, which Google uses to estimate the conversions it can't observe. Advanced mode keeps more of your Google Ads measurement, so Kite recommends it when you advertise with Google, and basic mode when you'd rather send Google nothing before consent.

### Writing the code and the banner text

Kite writes every piece of the setup and tells you exactly where each one goes in Framer. The box for the start of the head tag gets the Consent Mode defaults first. These are a few lines of code that set Google's four consent signals to denied before any Google tag loads: storage for analytics, storage for advertising, sending user data to Google for advertising, and personalized advertising. The Google tag or your Tag Manager snippet comes right after. When you use a consent tool, its script goes at the very top of the same box, because it has to load before anything it controls.

When your audience is mostly outside Europe, Kite can set those defaults to apply only to visitors from the European Economic Area and the United Kingdom, so visitors elsewhere are measured as usual. When the banner itself doesn't send Google the visitor's choice, Kite writes the short script that does. It runs when a visitor clicks Accept, Reject, or saves their categories, and it switches each signal to granted or keeps it denied to match.

Kite also writes the words on the banner in your brand's voice. The text says in a sentence or two what the cookies are for, gives Accept and Reject the same size and weight, and links to your privacy policy. Kite drafts the list of cookies by category for your cookie policy too, naming each tool it found and what it's used for, so the policy matches what your site actually loads. You paste the code into Framer, set up the banner with the text, and publish the site.

### Setting consent rules on each tag

Tags that aren't from Google need their own instructions to wait for consent, because Consent Mode only governs Google's tags. If you load a Meta pixel, the LinkedIn Insight Tag, or Hotjar, something has to keep it from firing until the visitor accepts the right category.

With Google Tag Manager connected, Kite reads every tag in your container and sets the consent each one requires before it can fire. A Meta pixel waits for advertising consent, and Hotjar waits for analytics consent. Kite makes these changes in your Tag Manager workspace, then you preview them and publish the container. When a tag is pasted straight into Framer's custom code instead, Kite tells you whether to move it into Tag Manager or into your consent tool's blocking settings, so one place controls every tracker on the site.

### Testing the published site

Kite tests the banner by visiting your published site and making both choices itself. It opens the site in a fresh browser with no stored cookies and confirms that the banner appears and that no tracking cookie exists before anyone clicks. Then it clicks Reject, moves between pages, and confirms that no analytics or advertising cookies appear and that Google's consent signals stay denied. In a second fresh visit, it clicks Accept and confirms that the consent update reaches the Google tag and that the Google Analytics cookie appears.

Kite then checks the result from inside your Google Analytics account. It runs the Realtime report, which shows activity from the last 30 minutes, and confirms that visits arrive after acceptance. If a page loads without the banner, or a tag sets a cookie before consent, Kite names the page and the tag and tells you the fix, such as moving a pasted embed behind the consent tool.

### What Kite reports back

When the work is done, Kite posts a summary in the conversation where you asked. It lists every tool that needs consent and the category it belongs to, says which banner you chose and which Consent Mode setting is in place, and shows the results of the reject test and the accept test page by page. Anything left for you, such as publishing a Tag Manager container, comes with the exact step.

Sites change after the banner goes in. Someone embeds a new video, or an agency pastes in a new pixel. Ask Kite to repeat the test every week, and it will reopen your site in a fresh browser, check for any cookie set before consent, and tell you only when something new slipped through.

## What the finished work contains

When Kite finishes, your Framer site asks for consent before it tracks anyone who needs to be asked, and you have proof that it works.

- **The banner.** It appears on every page in your sitemap, offers Accept and Reject with equal weight, links to your privacy policy, and can be reopened from your footer.
- **Consent Mode.** The defaults sit first in the box for the start of the head tag, and the banner sends Google each visitor's choice the moment they make it.
- **Tag rules.** Every tag that isn't from Google waits for the right category of consent, in Google Tag Manager or in your consent tool.
- **The cookie list.** A list of every tool on your site that sets cookies, sorted by category, ready for your cookie policy.
- **The test results.** The reject test and the accept test for each page, with the cookies found before and after each choice, plus Google Analytics confirming that visits arrive after acceptance.
- **A weekly check.** When you ask for it, a recurring test that flags any new tag or embed that sets cookies before consent.

## Common questions

### Can I build a Framer cookie banner myself with HTML or code from GitHub?

Yes, you can paste an open-source banner, such as the CookieConsent library on GitHub, into Framer's custom code, or build one as a code component. You then own everything the banner has to do: remember each visitor's choice, block every tracker until consent, send Google the Consent Mode update, and let visitors reopen their settings. Framer's own component and the consent tools already do most of that, which is why they're the usual choice for marketing sites.

### Will a cookie banner lower my numbers in Google Analytics?

Yes, Google Analytics records less about visitors who reject cookies, so your reported visitors and conversions drop for the share of traffic that says no. With advanced Consent Mode, Google receives cookieless signals from those visitors and, once your property has enough traffic, uses them to estimate the behavior it couldn't observe. Your Framer analytics dashboard is a separate count, so it won't match Google Analytics exactly after the banner goes in.

### Do I need a cookie banner if my visitors aren't in Europe?

It depends on where your visitors are and what your site loads. The strictest rules, which require consent before tracking starts, come from the European Union and the United Kingdom. Many US states instead require a way to opt out of having personal data sold or shared for advertising. If most of your traffic comes from outside Europe, a banner that only asks visitors from Europe and the United Kingdom is a common setup, and Kite can set Consent Mode to work the same way.

## Related pages

- **How-to:** How to add Google Analytics and conversion tracking to Framer (coming soon)
- **How-to:** [Framer contact forms: limits, spam, notifications and better options](/how-to/framer-contact-forms-limits-spam-notifications-and-better-options.md)
- **Guide:** A/B testing on Framer: what is built in and whether the add-on is worth it (coming soon)
- **Integration:** [Google Analytics + Kite](/integrations/google-analytics.md)
