How do I add a cookie banner to Framer?
On Framer, you add the code once as custom code for all pages, so the banner applies to the whole published site without editing pages one by one. The banner presents the choices. To make optional services wait for consent, also adjust their installation and then test the published website.
What you need before installation
- Your website is registered in KEKSONAUT and your banner is published. Find the Settings ID on the installation page.
- You can add custom code to your Framer project and publish the site.
- You know which analytics, advertising and embed services the website uses and can adjust their existing installations.
Set up step by step
Prepare your website in your account
Add your website to KEKSONAUT. Select the services you use, review their categories and publish your banner. Your installation page provides the code with your Settings ID.Open the right insertion point
In your Framer project's settings, open Custom Code and click Add Script. Framer's guide names no particular plan for this; if the option is missing for you, check your plan.Set up the code or plugin
Paste the installation code, choose the start of the page head (Start of <head>) as placement, let it run on all pages and set Run to Once. Then publish the site so the change goes live. A script you assign to selected pages only applies there.Make optional services wait for consent
Configure tracking scripts and embeds using the blocking guide. Inline code needs an explicit service assignment. A visible banner alone does not hold back every service that has already started.Publish and test
Open your public website in a private browser window. Test a first visit, rejection, acceptance and withdrawal. Also test navigation and whether optional services wait for the matching consent.
Your installation code
Add the code at the insertion point described above. Preserve existing entries and load the runtime only once per document.
Paste your Settings ID — the code below updates automatically. Find it on your website's installation page in your account. The ID is public and is not an API key.
Add your Settings ID to get your finished installation code. Without an ID, you can copy the template with the SETTINGS_ID placeholder.
<script async src="https://api.keksonaut.com/runtime.js"
data-settings-id="SETTINGS_ID"
data-api-base="https://api.keksonaut.com"></script>What matters for your platform
If you enter Google Analytics in Site Settings under Google Analytics Measurement ID, Framer loads it itself and KEKSONAUT cannot reliably hold it back. Delete the Measurement ID there and add analytics as deferred code instead. Framer's own Cookie Banner component passes choices to Google Tag Manager; remove it so only one banner appears.
Official Framer documentationExample: hold back an inline script
Replace direct execution with a deferred script and assign it to the service actually registered in your account. The service slug must match your account. This example is for Google Analytics 4; it does not replace a complete analytics setup.
<script type="text/plain" data-cm-service="google-analytics-4">
// Your existing analytics code
</script>How to check that installation works
Test the published website in a private browser window. Inspect the services you use and their requests; a visible banner alone does not confirm blocking.
- First visit and rejection: Optional services remain blocked.
- Selective consent: Only the permitted services start.
- Reopen settings and withdraw: The refusal still applies on the next page load.
- Navigation: The document contains only one banner script and the saved choice is still respected.
Consider your audience and services
The installation determines where the banner loads. Also review the choices your visitors need and the signals your services receive for your audience's region and your actual setup.
Frequently asked questions
Do I need an API key in the embed code?
No. The public embed code uses your website's Settings ID. An API key for management functions, such as in the WordPress plugin, must stay out of public code.
Does installation immediately block every tracker?
No. A visible banner alone does not hold back every service that has already started. Configure tracking scripts and embeds using the blocking guide.
Can I start with Free?
Yes. Free has no time limit and covers one website with 5,000 page views per month.
How do I avoid two cookie banners on Framer?
Remove Framer's Cookie Banner component from your project, usually from the shared component that appears on every page, and delete other consent scripts under Custom Code. According to Framer, that component passes the choice to Google Tag Manager; with KEKSONAUT you do not need it as well.
What about Framer Analytics?
According to Framer, the built-in analytics set no cookies and work without persistent identifiers. KEKSONAUT does not pass your visitors' choice to Framer Analytics. Whether your privacy policy has to mention it is a separate question from the banner.