Add a cookie banner with your AI
Built your site with an AI tool? Do four quick steps here, then paste one prompt into your AI. No coding needed.
- 1
Create a free account
Use your email and a password. Click the link in the email we send you to verify it.
Create account - 2
Add your website
Type your website address, for example myshop.com. The free plan includes 1 website.
Add website - 3
Switch your website on
On the dashboard, turn on the switch next to your website. New websites start switched off.
Open dashboard - 4
Copy your Domain ID
On the setup page, copy the Domain ID. It looks like myshop.com- followed by a long code.
Open setup page
Add the Cookiefy cookie consent banner to this website.
Paste the code below inside <head> in index.html (for Next.js: the root layout with next/script strategy="beforeInteractive"). It must come before any analytics or tracking scripts such as Google Analytics, Google Tag Manager or Meta Pixel. Do not load it from a React component or useEffect, and do not change anything else.
<!-- Cookiefy cookie banner -->
<script>
window.cookieConsentConfig = {
domainId: 'YOUR_DOMAIN_ID',
enableElementInterceptor: false,
enableMutationObserver: false,
reloadOnConsent: false,
enableFetchInterceptor: false,
enableBeaconInterceptor: false,
enableLocalStorageInterceptor: false,
enableGoogleConsentMode: true
};
</script>
<script src="https://cdn.cookiefy.app/cookiefy-core.min.js" data-cookie-category="necessary" data-cookie-consent-ignore="true"></script>
<script src="https://cdn.cookiefy.app/cookiefy-ui.min.js" data-cookie-category="necessary" data-cookie-consent-ignore="true"></script>
<!-- End Cookiefy -->
More details: https://cookiefy.app/llms.txtWhen your AI is done, publish the site and open it in a private browser window. The cookie banner should appear.
Read https://cookiefy.app/llms.txt and set up the Cookiefy cookie banner on my website. Ask me for anything you need.
It will give you a link and a code. Open the link, sign in, check the code matches, and click Approve. You never share your password with the AI.
- Check that your website is switched on in the dashboard.
- Check that the Domain ID was copied exactly, with nothing missing at the start or end.
- Open the site on the same address you added in Cookiefy (for example myshop.com, not a preview link).
- Ask your AI: "Is the Cookiefy code in the head section of index.html, before any analytics scripts?"
- Want other colours or text? Change them in the dashboard under Banner settings. No new prompt needed.