Apps built with Lovable, Bolt, v0, Replit, Base44 and Firebase Studio start storing data on a visitor's device the moment the page loads, through auth sessions, built-in analytics, or embedded third-party scripts, yet not one of these tools generates a consent banner for you. Adding one is the developer's job. Where the consent script goes depends almost entirely on a single question: did your builder output a Vite single-page app or a Next.js app?
That split decides everything practical about the implementation. The legal duty is identical across all six platforms. The injection point, the loading order, and the route-change handling are not.
AI-built apps set storage that needs consent
Almost every app generated by these tools writes to the browser before a visitor clicks anything, and most of that storage is not strictly necessary. A login session, an embedded analytics tag, a font or map loaded from a CDN, a payment widget: each can set a cookie or write to local storage on arrival, and under EU law non-essential storage needs prior consent.
The relevant rule is Article 5(3) of the ePrivacy Directive, and one detail trips up most developers working with these platforms: it is technology-neutral. It governs the storing of information, or the gaining of access to information already stored, on a user's device. That covers cookies, but it also covers localStorage, IndexedDB, and session storage. An app that proudly "uses no cookies" while writing an analytics identifier to localStorage sits in exactly the same position as one that sets _ga.
A cookie consent banner is the interface that asks for that permission and, more to the point, holds the non-essential scripts back until the visitor agrees. Strictly necessary storage is exempt: a session token that keeps a logged-in user authenticated while they use a feature they asked for does not need consent. Analytics and advertising cookies always do. The practical task is sorting your app's storage into cookie categories and gating everything that is not essential.
What the law requires, whichever builder you used
The same four things on every platform: consent must be obtained before any non-essential cookie is set, it must be informed and specific, refusing must be as easy as accepting, and a visitor must be able to withdraw it later. Pre-ticked boxes and "by continuing to browse you accept" notices do not count. None of that changes because an AI wrote the code.
Enforcement has made the cost concrete. On 1 September 2025 the French data protection authority, the CNIL, fined SHEIN's Irish subsidiary 150 million euros for placing advertising cookies before any consent was given and for a "Reject all" button that did not actually stop cookies from being set. The same day, the CNIL issued Google a 325 million euro fine over related cookie and consent failures. Across 2025 the regulator handed down 83 sanctions totalling roughly 486.8 million euros, 21 of them over trackers, including a 1.5 million euro penalty against American Express.
Two points from those decisions apply directly to a vibe-coded app. Cookies that fire on arrival, before the banner loads, are a breach. And a reject control that records a preference while scripts keep running is treated as no consent at all. Both are the exact failure modes an AI builder produces by default, because it wires up analytics and auth without ever sequencing them behind a consent check. The rules apply identically whether you ship to one country or operate across the EU and UK, though the precise thresholds shift by region, which is where per-market region settings start to matter.
The two injection surfaces: Vite single-page apps versus Next.js apps
Every one of the six builders produces one of two app shapes, and that shape is the only thing you need to identify before adding a banner.
The first shape is a Vite single-page app. It has a real index.html file at the project root, and a single consent script in its head runs before any application code. The second shape is a Next.js app. It has no index.html at all, so the script goes into the root layout through the framework's own Script component. Get the shape wrong and the banner either fails to load early enough or throws a build error.
| Builder | Default output | Has index.html | Where the consent script goes | Typical non-essential storage |
|---|---|---|---|---|
| Lovable | Vite + React SPA | Yes | head of index.html | Analytics tags, Supabase session |
| Base44 | React + Vite SPA | Yes (editable on paid plans) | head of index.html | Built-in analytics, session recordings |
| Bolt | Whatever you prompt (often Vite) | Usually | index.html head, or layout if Next.js | Analytics, Supabase or built-in auth |
| v0 by Vercel | Next.js + shadcn/ui | No | next/script in app/layout.tsx | Third-party tags (Vercel Web Analytics sets no cookies) |
| Replit | Varies per project | Depends on the stack | index.html head, or layout if Next.js | Replit Auth session, analytics |
| Firebase Studio | Next.js | No | next/script in app/layout.tsx | Firebase Auth (IndexedDB), GA |
Two builders sit in both columns. Bolt runs whatever framework you prompt for inside StackBlitz WebContainers, so a Bolt app might be a Vite project or a Next.js project depending on what you asked for. Replit Agent also picks the stack per project. Check whether the project has an index.html before you start.
Where the consent script goes
Adding a banner to a Lovable, Base44 or Bolt (Vite) app
Drop a single script tag into the head of index.html, above the module script that boots the app, then make sure analytics respects consent on route changes. Because the file is plain HTML and loads first, the banner can block non-essential scripts before React mounts. This is the cleaner of the two surfaces to work with.
The injection itself is one line. With Kukie.io, it is:
<script src="https://cdn.kukie.io/s/YOUR_SITE_KEY/c.js" async></script>
Routing needs one more thought. These apps never reload the page: the banner script loads once and the stored choice carries across every view, but analytics that reports virtual page views from the router has to start only after consent. Kukie.io dispatches a cc:consent-updated event on document when the visitor makes or changes a choice, so code that starts analytics can wait for it:
document.addEventListener("cc:consent-updated", () => {
// Start or stop your router page-view tracking here,
// based on the categories the visitor accepted.
});
Lovable
Lovable ships a Vite and React single-page app with a near-empty index.html head, and its Supabase backend sets an auth session cookie once a user logs in. The session itself is essential. Anything analytics-related is not. The full walk-through for cookie consent on Lovable covers the prompt that adds the tag for you.
Base44
Base44 apps are standard React apps built with Vite, and on paid plans the Code tab lets you edit index.html, so the same approach applies. The twist is that Base44 switches on its own app analytics by default and offers session recordings, so the app can be measuring visitors even when you have added no third-party tags at all. Treat that built-in tracking as non-essential, and note that Base44's own documentation says it does not add a consent banner for you. The Base44 banner guide goes into the hosted-backend specifics.
Bolt
If Bolt generated a Vite project, this is your surface. If it generated Next.js, skip to the next section. Bolt commonly pairs with Supabase or, since Bolt v2, its own built-in auth, both of which set session storage on login. The Bolt.new consent guide has the framework-detection steps.
Adding a banner to a v0, Firebase Studio or Replit (Next.js) app
Inject the consent loader through next/script in app/layout.tsx with a beforeInteractive strategy, so it runs before the page hydrates. Next.js has no index.html to edit, and pasting a raw script tag into a component is the wrong move because the framework controls script ordering itself. The root layout is the one place a tag reliably loads on every route.
import Script from "next/script";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<Script
src="https://cdn.kukie.io/s/YOUR_SITE_KEY/c.js"
strategy="beforeInteractive"
/>
{children}
</body>
</html>
);
}
Server-rendered routes add a second place cookies can appear: Next.js can write them in a Server Component or Route Handler through the cookies() function, entirely outside the browser script's view. Audit the server side as well as the client.
v0 by Vercel
v0 generates Next.js components with shadcn/ui, and a bare component genuinely sets nothing. Vercel Web Analytics, the usual next step, is a closer call. Vercel's Web Analytics privacy page says it uses no third-party cookies and identifies visitors by a hash created from the incoming request, discarded after 24 hours. Without storage on the device, the Article 5(3) consent rule may not be triggered, but the visit data is still personal data under the GDPR and belongs in your privacy policy. Third-party tags added next to it, such as Google Analytics or a pixel, do set cookies and need consent. If you would rather not rely on that reading, render the <Analytics /> component only after analytics consent. The v0 and Vercel guide shows the conditional wrapper.
Firebase Studio
Firebase Studio's App Prototyping agent builds Next.js apps and publishes them to Firebase App Hosting, usually with Firebase Authentication and Cloud Firestore wired in. Firebase Auth stores its session in IndexedDB by default rather than a cookie, which, again, Article 5(3) still covers. One timing note: according to Google's Firebase Studio migration page, new Firebase Studio workspaces were disabled on 22 June 2026 and the product shuts down on 22 March 2027, with migration pointed at Google AI Studio and Antigravity, though apps already deployed keep running. The Firebase Studio consent guide covers the Firebase-specific tags.
Replit
Replit Agent picks the stack per project, so look for an index.html first: if there is one, use the Vite method above, and if the project is Next.js, use app/layout.tsx. Replit Auth sets a first-party session cookie, and the one-click deployment puts the app on a live URL straight away, tracking and all. The Replit consent guide handles the stack-detection edge cases.
How do you confirm the banner actually blocks cookies?
Open the browser developer tools, go to the Application panel, and read what is in Cookies and Local Storage before you touch the banner. On a correctly gated setup, only strictly necessary entries should be present at that point. Anything analytics or advertising related appearing before consent is the SHEIN failure mode, and it is the single most common defect in a vibe-coded app.
Then test the controls properly. Click "Reject all" and confirm no new non-essential storage appears and nothing already set keeps transmitting in the Network tab. Reload, accept, and confirm the tags fire only then. On a single-page app, navigate between routes and re-check, since that is where a first-load-only banner quietly leaks. A scan with a cookie scanner automates the inventory and flags anything firing before consent, which is faster than reading the storage panel by hand on every build.
Is cookie law about to get easier for these apps?
In the EU, not yet. On 19 November 2025 the European Commission proposed its Digital Omnibus package, which would move the cookie rules into the GDPR and ease some of them to cut consent fatigue. As of October 2026 it is still at the committee stage in the European Parliament, so the ePrivacy Directive as written still applies in full.
In the UK, a narrow part has already landed. Since 5 February 2026, the Data (Use and Access) Act 2025 lets sites set some low-risk storage without consent, and lets the ICO fine PECR breaches up to 17.5 million pounds or 4% of global turnover, according to the ICO's commencement statement. The exemptions are narrow and advertising is not among them, so the prudent build for any app shipped from one of these six tools stays consent-first.
Consent in AI builder apps: short answers
Do apps built with AI need a cookie consent banner?
Yes. The tool that generated the code does not change your legal obligations, and apps from Lovable, Bolt, v0, Replit, Base44 and Firebase Studio routinely set non-essential storage that needs prior consent under the ePrivacy Directive.
Where does the cookie consent script go in a Lovable app?
In the head of the index.html file, above the module script that loads the app, so it runs before React mounts. Add a route-change handler so consent re-checks as visitors navigate the single-page app.
Does v0 from Vercel really set no cookies?
A bare v0 component sets nothing, and Vercel says its Web Analytics uses no third-party cookies, identifying visits by a request hash it discards after 24 hours. Third-party tags you add, such as Google Analytics or a pixel, do set cookies and need consent.
Why can a script tag not go in index.html for a Next.js app?
Next.js apps, including those from v0, Replit and Firebase Studio, have no index.html. Inject the consent loader through the next/script component in app/layout.tsx with a beforeInteractive strategy instead.
Are login session cookies covered by consent rules?
A session cookie that keeps a logged-in user authenticated for a feature they requested is strictly necessary and exempt from consent. Analytics, advertising and other non-essential cookies are not exempt and must be gated behind the banner.
Can Firebase Studio still build new apps in 2026?
No. Google disabled new Firebase Studio workspaces on 22 June 2026 and plans to shut the product down on 22 March 2027. Existing workspaces still work and deployed apps keep running, with migration directed to Google AI Studio and Antigravity.
Scan your AI-built app before you ship it
If you built your app with one of these tools and have not checked what it stores on arrival, start with a scan. Kukie.io detects first-party and third-party cookies and local storage, sorts them by category, and loads a consent banner from a single script tag that drops into index.html or a Next.js layout.
