COOKIE AI logo

COOKIE AI

Published September 2026
   •    Updated today

Plugin details

Free cookie consent for Bubble. Install, fill in a few settings in your Plugins tab, done: the banner runs on every page with no element to place and no page-load workflow.
- Asks before tracking (GDPR, UK PECR) or lets US visitors opt out (CCPA/CPRA), and honours the Global Privacy Control signal
- Holds back tracking scripts until the visitor agrees, and clears tracking cookies if they change their mind
- Sends Google Consent Mode v2 signals so GA4 and Google Ads keep working within the rules
- Accept all, Choose and Reject all, with a preferences panel for Preferences, Analytics and Marketing
- 8 workflow actions, including Open cookie settings for a footer link
- Optional element for advanced builders: live values, events and text that changes by page or language
- No third-party consent platform, no external calls, no running costs

Live demo: https://technicalcofounder-76012.bubbleapps.io/version-test/cookie-ai

COOKIE AI gives you the tools to meet common cookie rules. It is not legal advice.

Free

For everyone

stars   •   0 ratings
13 installs  
This plugin does not collect or track your personal data.

Other actions

Platform

Web

Contributor details

TECHNICAL COFOUNDER logo
TECHNICAL COFOUNDER
Joined 2019   •   4 Plugins
View contributor profile

Instructions

OVERVIEW COOKIE AI is a free cookie consent banner for Bubble. Install it and it runs on every page. There's no element to place and no page-load workflow. It asks before tracking for EU and UK visitors, lets US visitors opt out, honours Global Privacy Control, holds back tracking scripts until consent and sends Google Consent Mode v2 signals. Everything runs in the visitor's browser: no external calls and no running costs. Open source (MIT). Not legal advice.

HOW TO USE
1. Install COOKIE AI. A banner appears on every page straight away, using safe defaults.
2. Open your Plugins tab → COOKIE AI and change any settings you want (all optional).
3. Add a "Cookie settings" link to your footer: When clicked → COOKIE AI - Open cookie settings.

Settings (Plugins tab). Leave any blank to use the default. Bubble adds "(headers)" to each name.
- CONSENT_MODE: opt-in (default) = only essential cookies until the visitor agrees (EU/UK). opt-out = tracking runs until the visitor says no (US only). auto = opt-out on US time zones, opt-in everywhere else.
- COOKIE_POLICY_URL: link to your cookie policy, shown in the banner.
- POLICY_VERSION: change it (e.g. 1 to 2) when your policy changes and everyone is asked again.
- REMEMBER_CHOICE_DAYS: default 365. Safari may ask again after 7 days if a visitor doesn't return.
- BANNER_LAYOUT: bar (default), box or modal.
- BANNER_TITLE, BANNER_MESSAGE: your own wording.
- ACCEPT_BUTTON_TEXT, REJECT_BUTTON_TEXT, CHOOSE_BUTTON_TEXT: button labels.
- BACKGROUND_COLOUR, TEXT_COLOUR, BUTTON_COLOUR: hex code, with or without the #, e.g. #1a9fd6 or 1a9fd6. Button text switches to black or white for contrast.
- UK_ANALYTICS_WITHOUT_CONSENT: yes = analytics on by default for UK visitors (Data (Use and Access) Act 2025). They can still switch it off. Leave blank if unsure.
- CONSENT_LOG_URL: optional. One of your backend workflow URLs. Each choice is sent there so you can keep a record.

Hold back tracking scripts until consent. In Settings → SEO / metatags → Script/meta tags in header, change each tracking script's type and add a category:
<script type="text/plain" data-consent="analytics" src="…"></script>
Categories: preferences, analytics, marketing. Google tags also get Consent Mode signals automatically.
Free plan: Bubble doesn't publish header scripts on the free plan. Put the same tagged scripts in an HTML element on the page (or a reusable header) instead.

Where the choice is stored: in the visitor's browser, as a cookie called cookieai_consent. Nothing goes in your database unless you set that up. Rejecting a category deletes known tracking cookies such as _ga and _fbp.

COMPONENTS
1. Header script (automatic): the banner, stored choice, script gating and Consent Mode. Set up in the Plugins tab.
2. Workflow actions (8): no element needed.
3. Cookie Consent Manager element (optional): live values and events.

ACTIONS
- COOKIE AI - Open cookie settings: opens the preferences panel. Use for a footer link.
- COOKIE AI - Show banner: shows the banner again.
- COOKIE AI - Accept all: allows every category.
- COOKIE AI - Reject all: turns off optional categories and removes their cookies.
- COOKIE AI - Set category: Category (Preferences, Analytics, Marketing), Allowed (yes/no).
- COOKIE AI - Reset consent: clears the choice and shows the banner. Useful for testing.
- COOKIE AI - Set cookie: Name, Value, Days (blank = session), Path, Domain, SameSite, Secure.
- COOKIE AI - Delete cookie: Name, Path, Domain.

ELEMENTS
Cookie Consent Manager (optional, invisible). Place it once, e.g. in a reusable header. Only needed for live values, events, or text that changes by page or language.
- Fields: override the Plugins-tab settings. Leave blank to use the Plugins-tab value.
- States: Consent given, Preferences allowed, Analytics allowed, Marketing allowed, Consent ID, Consent timestamp, Consent record, Policy version, Mode applied, Region, GPC detected, Reload recommended, Cookie value.
- Events: Ready, Banner shown, Consent changed, Accepted all, Rejected all, GPC honoured, Cookie value read.
- Actions: the 8 above, plus Get cookie.
Consent log on any plan: When Consent changed → Create a new Consent log using the element's values.

APIS
No external APIs. For custom code, window.CookieAI offers read(), acceptAll(), rejectAll(), setCategory('analytics', true), showBanner(), showPreferences(), reset() and on(fn).

PLUGIN DEMO
https://technicalcofounder-76012.bubbleapps.io/version-test/cookie-ai
Open it in a private window. In DevTools → Network, filter on "google": Google Analytics doesn't load until you click Accept all.

CHANGELOG
3 October 2026 (1.0.2): colours work with or without the #.
1 October 2026 (1.0.1): instructions restructured.
28 September 2026 (1.0.0): first release.

CONTACT / SUPPORT
Bug reports and feature requests: the COOKIE AI thread on the Bubble forum, or founder@mskpredict.com.

Types

This plugin can be found under the following types:
Background Services   •   Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:
Compliance   •   Analytics   •   Technical   •   Small Business   •   AI   •   Visual Elements

Resources

Support contact
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble