Frequently asked questions
How to install the banner, list cookies, use Google Consent Mode, and read your consent and performance data.
Getting started
consent is a cookie banner you add to your website with one script tag. It shows visitors a choice, blocks common trackers until they agree, and keeps a record of each decision.
consent has three plans — Starter, Growth and Enterprise. Open Plans in your dashboard to compare what each includes and what it costs. The free site check on our website is always free.
No tool can guarantee that. consent helps you present a banner, block scripts until a visitor chooses, and keep a record of those choices. You still need accurate wording, the right categories for cookies you actually use, and a privacy policy that matches your site.
Banner message templates are starting points, not legal advice. Edit them to fit your site.
Sign up, add your domain, choose the laws your site follows (Details tab), customize the banner if you like, then paste the snippet from the Install tab as the first script in the <head> of every page. The banner appears for visitors who haven't chosen yet.
Laws & policies
The EU (GDPR and ePrivacy), the UK (UK GDPR and PECR), India (the DPDP Act) and the United States (California and other state laws). On the Details tab, choose the ones your site follows. The checklist at the top of the page, the policies we write and the compliance check all follow your choice.
Everyone gets the same banner, wherever they are, and nothing non-essential runs until they agree. We never look up where a visitor is, so the laws you choose change what you set up and publish, not how the banner behaves.
A signal some browsers send to ask websites not to sell or share the visitor's data. US law expects sites to respect it, but only some browsers send it, so most visitors won't be affected.
Turn on “Honor Global Privacy Control” on the Banner tab, under Privacy signals, and Accept all keeps marketing off for visitors whose browser sends it. They can still switch it on themselves in Customize. It's off until you turn it on, and when it's on, the privacy policy we write for a site that follows US law says so.
Yes. The Policies tab drafts the pages a site like yours needs, such as a privacy policy, cookie policy, terms and refund policy, from a few answers about your business, your cookie list and the laws you chose.
They're starting points, not legal advice, so read them before you publish. Generate them again after you change your cookies, your laws or Global Privacy Control, so they stay up to date.
It reads your homepage and looks for the policies a site like yours is expected to have (privacy policy, cookie policy, terms, refund and shipping policies, contact and grievance officer details). It tells you which are required, which are recommended, and whether each one is there.
The public checker shows the findings. After you sign in, the Compliance tab keeps them for your site, and it checks for the laws you chose on the Details tab. Drafts from the Policies tab are a starting point, not legal advice.
Install
In <head> on every page, as the first script — before Google Tag Manager, gtag.js, or any analytics or ads snippet. Don't add async or defer. The banner needs to run first so it can send Consent Mode signals and block trackers before those tags load.
Place the Install snippet first in <head>, then Google's container snippet immediately after it.
Do not add the banner as a Custom HTML tag in Tag Manager. The banner needs to run first.
- The snippet is on the page and is the first script in
<head>. - The page hostname matches the domain in Details, or an extra hostname on the allowlist (
wwwvs the bare domain is a common miss). - The site status in Details is Active, not Paused.
- You haven't already made a choice in this browser. Open the live preview on Install and hit Reset, or try a private window.
- If you're on localhost, a preview URL, or Tag Manager preview, add a token (see below) — those hostnames usually aren't on your allowlist.
The domain is your live site. The banner loads and records consent there.
The allowlist is for extra stable hostnames that should show the same banner — for example www, a staging subdomain, or another brand domain. You don't need to repeat the primary domain. Allowlist changes apply when you save.
A token is for pages with no stable hostname you can list: localhost, a one-off preview URL, or Google Tag Manager preview. Add the token before the snippet — the Install tab shows exactly how. Generating or removing a token takes effect immediately.
Add a link to your footer that reopens the banner, so visitors can change or withdraw their choice at any time. The Install tab has it ready to copy. The EU, UK, India and the US all expect this.
In the US, California asks for the name “Your Privacy Choices” with its official opt-out icon beside it. If the US is one of your laws, the link on the Install tab includes both.
You can also show a small button for a few seconds after a visitor chooses (Banner tab, under After visitors decide). It fades away, so it doesn't replace the footer link.
Yes. On the Banner tab, set Color mode to Automatic and design a light look and a dark look. The banner follows your site's own light or dark switch if it has one, then the visitor's system setting, then your default.
To tell the banner which one your site is showing, set an attribute on the <html> tag or call a function from your script. The Install tab has both, ready to copy. If you use both, the call wins.
Changes apply right away, even to a banner that's already open. In Manual mode the banner always uses the colors you set and ignores all of this.
Yes, on the Banner tab: the message, the Accept, Reject and Customize buttons, the title and Save button of the preferences window, the text of the small button after a decision, and the name and description of each category. There's a starting-point message for each law.
Yes. The Install tab shows how to read a visitor's choice and how to listen for changes, so you can run or skip your own tags from there. Auto-blocking still applies to recognized trackers unless you handle those yourself.
The banner is for web pages, including on phones and inside an app's web view — a web view has no hostname you can list, so add a token there.
Install on your platform
- Install a plugin that adds code to your site's head, such as WPCode, or open your child theme's header.php.
- Paste the snippet into the header section for every page (or right after the opening <head> tag in header.php), above any other code there.
- Save, then clear your site's cache.
Pick this platform on the Install tab: it shows the exact version of the snippet to paste here.
Good to know:
- Speed plugins (WP Rocket, Autoptimize, LiteSpeed Cache, SiteGround Optimizer, Cloudflare Rocket Loader) can delay or reorder scripts. The WordPress version of the snippet carries the attributes they look for to leave it alone. If the banner still appears late, add api/embed to the plugin's list of scripts to exclude from delay or defer.
- Turn off any other cookie banner plugin, or visitors will see two.
- WooCommerce shop and checkout pages use the same theme head, so one snippet covers them.
- In your Shopify admin, go to Online Store, then Themes. Next to your live theme, choose the three dots, then Edit code.
- Open layout/theme.liquid.
- Paste the snippet directly under the opening <head> tag, above {{ content_for_header }}.
- Save. Then, under Settings, Customer privacy, turn off Shopify's own cookie banner so visitors don't see two.
Good to know:
- The banner controls the scripts in your theme. Shopify's own analytics, and the pixels listed under Settings, Customer events, follow Shopify's privacy settings: set each pixel there to require the matching consent. We don't yet pass visitors' choices to Shopify's Customer Privacy API.
- Standard Shopify plans can't edit the checkout, so the banner shows on your storefront and not on the checkout pages.
- Apps and sales channels that add their own tracking can load regardless. Run a scan on the Cookies tab after installing to see what a visitor's browser actually receives.
Needs a Premium plan and a connected domain for custom code.
- In your dashboard, go to Settings, then Custom code (under Advanced), and choose Add custom code.
- Paste the snippet, name it Cookie banner, and set it to load on all pages, placed in the head.
- Apply, then publish your site.
Good to know:
- Turn off Wix's own cookie banner in your site's privacy settings, so visitors don't see two.
Needs the Business plan or higher for code injection.
- Go to Settings, then Advanced, then Code injection (Website tools in some versions).
- Paste the snippet at the top of the Header box, above anything already there.
- Save.
Good to know:
- Turn off Squarespace's own cookie banner under Cookies and visitor data, so visitors don't see two.
Needs a paid Site plan for custom code.
- Open Site settings, then Custom code.
- Paste the snippet at the top of Head code, above anything already there.
- Save, then publish the site: custom code only goes live on publish.
Good to know:
- Webflow has its own Google Analytics field in Site settings. Remove it, and add Google Analytics through Tag Manager or below this snippet, so the banner can run first.
- App Router: open app/layout.tsx. Pages Router: open pages/_document.tsx.
- Add the snippet as the first child of <head> (in the root layout's <html>, or in <Head> in _document), above any other script.
- Deploy. Test on the live address, or add a token for localhost (the Install tab shows how).
Good to know:
- Use a plain script tag, not next/script. Its strategies load a script after the page is interactive or without waiting for it, which is too late for the banner to hold other scripts back.
- Route changes don't reload the page, so the banner shows once per visit and stays available through the preferences link you add to your footer (the Install tab has it).
- If your site sends a Content-Security-Policy, allow the address in the snippet under both script-src and connect-src, or the browser will block the banner and its requests.
Single-page apps built with Vite, Create React App, Vue CLI or the Angular CLI.
- Open the HTML file your app is built from: index.html in Vite and Vue CLI projects, public/index.html in Create React App, src/index.html in Angular.
- Paste the snippet as the first script in <head>, above anything else, including the tags your bundler adds.
- Build and deploy. Test on the live address, or add a token for localhost (the Install tab shows how).
Good to know:
- The page loads once, so the banner shows once per visit and stays available through the preferences link you add to your footer (the Install tab has it). Or call window.cosmoopsConsent.showPreferences() from your own button.
- Add trackers (Google Tag Manager, analytics) after the snippet in the same file, not from your app code, so the banner runs first.
- If your site sends a Content-Security-Policy, allow the address in the snippet under both script-src and connect-src, or the browser will block the banner and its requests.
- Go to Storefront, then Script Manager, and choose Create a script.
- Name it Cookie banner. Set the location to Header, the pages to All pages, and the script type to Script URL.
- Set the script category to Essential, then paste the address and save.
Pick this platform on the Install tab: it shows the exact version of the snippet to paste here.
Good to know:
- The category matters. BigCommerce holds back scripts in any other category until its own consent banner is accepted, so the banner would never run. Essential makes it run first on every page.
- Turn off BigCommerce's own cookie banner in your store's privacy settings, so visitors don't see two.
Magento.
- In the admin, go to Content, then Design, then Configuration. Edit the scope you want (the whole store, a website or a store view).
- Open HTML Head, and paste the snippet into Scripts and Style Sheets.
- Save, then flush the cache under System, Cache Management.
Good to know:
- That field is written near the end of the head. If your theme loads trackers before it, ask your developer to place the snippet first in the theme's head layout.
- Turn off Magento's Cookie Restriction Mode (Stores, Configuration, General, Web, Default Cookie Settings) if you use this banner, so visitors don't see two.
- In Ghost admin, go to Settings, then Code injection (under Advanced in older versions).
- Paste the snippet at the top of Site header, above anything already there.
- Save.
Good to know:
- Put any tracking code you add later below this snippet in the same box, so the banner runs first.
Plain HTML, PHP, Laravel, Rails, Django, Astro, Hugo, Jekyll and other sites whose templates you edit.
- Find the template that every page shares: the layout, base or head partial (for example layouts/app.blade.php in Laravel, application.html.erb in Rails, base.html in Django, baseof.html in Hugo, or header.php).
- Paste the snippet as the first script in <head>, above any other script.
- Deploy, and clear any page cache your server or CDN keeps.
Good to know:
- A page cache or CDN that serves old HTML keeps serving the version without the snippet until it is cleared.
- Don't add async or defer; the banner must run before your other scripts.
- If your site sends a Content-Security-Policy, allow the address in the snippet under both script-src and connect-src, or the browser will block the banner and its requests.
Cookies & blocking
They do different jobs, and you'll want both.
- Listing (the Cookies tab) is the table visitors see in Customize: each cookie's name, provider, purpose and expiry. Declining a category also clears the cookies you've listed under it.
- Blocking holds a script back until its category is allowed. For trackers we recognize it's automatic, using the category you listed their cookies under.
A script can be blocked without being listed, and a cookie can be listed without being blocked. Together, the script stays off until visitors agree, and they can see what they're agreeing to.
The new choice applies straight away. Turning a category on lets its held-back scripts load. Turning one off clears the cookies you've listed under it from the visitor's browser and, with Google Consent Mode in Advanced mode, tells Google's tags to stop using theirs.
A few things can't be cleared from a web page: cookies marked HttpOnly, cookies set by another company's domain, and storage inside a third-party embed. A script that's already running keeps going until the page reloads, and the banner can reload it for you (the reload option on the Banner tab). A cookie can only be cleared if it's on your Cookies tab, so run a scan and approve what it finds.
Necessary cookies are never cleared. If a login or cart cookie is listed under another category, declining it would sign people out, so list it under Necessary.
Adding a cookie asks visitors who've already chosen to choose again the next time they load a page. Removing one doesn't ask anyone again, and it's cleared from their browser straight away.
To change a listed cookie's name, domain, path or category, delete it and add it again. You can edit its provider, purpose, privacy link and expiry at any time, and visitors aren't asked again for that.
Necessary cookies are never cleared, so removing a login or cart cookie from the list won't sign anyone out. If your site keeps setting a cookie you removed, the next scan suggests it again.
With the consent script placed first, common trackers that load through Tag Manager or your page's JavaScript wait until the visitor allows their category. That includes Meta Pixel, TikTok Pixel, LinkedIn Insight, HubSpot and Hotjar.
We recognize a tracker by the address its script loads from. A tracker we don't know, or a script written straight into your HTML, isn't stopped automatically: see “How do I block a tracker that isn't stopped automatically?” below.
A tracker waits for the category you listed its cookies under, or its usual category if you haven't listed it.
Google Analytics and Google Ads follow Consent Mode (Banner tab). In Basic they're blocked until the visitor allows Statistics or Marketing. In Advanced they load, are told what the visitor chose, and honor it themselves.
If it's a script written straight into your HTML, or one we don't recognize that you add yourself, change its type to text/plain and add data-cosmoops-consent set to preferences, statistics, or marketing. We'll run it once that category is allowed. The Install tab has an example to copy.
If Tag Manager loads it, open the tag in Tag Manager, go to Advanced Settings → Consent Settings, choose “Require additional consent for tag to fire”, and add the consent types for its category — see “How do categories map to Google's consent signals?” in the Google Consent Mode section.
- Necessary — required for the site to function. Always on; visitors can't turn it off.
- Preferences — remembers settings like language or region.
- Statistics — analytics about how visitors use the site.
- Marketing — used to show relevant ads.
You can turn Preferences, Statistics, and Marketing off in the Banner tab if you don't use them, and you can edit the labels visitors see.
A scan opens your site in a browser and lists the cookies and browser storage it sets. It runs when you add a site and whenever you press Scan on the Cookies tab. On Growth and up it also runs automatically, every week unless you choose otherwise under Settings on the Cookies tab.
It covers your home page and any pages you add under Settings, up to your plan's limit. Add a checkout or sign-up page if it sets cookies your home page doesn't; you can pick pages from your sitemap or type your own.
What a scan finds appears under Cookie suggestions at the top of the Cookies tab. Nothing changes your banner until you accept it, unless you let scans update recognized cookies automatically.
Everything the last scan wants you to look at, in one table. A dismissed suggestion comes back if a later scan still finds the same thing.
- New: a cookie the scan found that isn't on your list. Approve it, review it first, or dismiss it. Names we don't recognize always open for review first.
- Expiry changed: the cookie's expiry is clearly different from the one you listed. Use the new one, edit it or dismiss it. Visitors aren't asked again.
- Not found in the last scan: earlier scans found this cookie but the latest didn't. Remove it if your site no longer sets it. If it still does (after sign-in, say), choose Don't suggest again. You can undo that under Settings.
It also flags a cookie listed under a less strict category than we think it belongs in, such as a tracker listed under Necessary, because visitors couldn't decline it.
Yes. New sites let scans keep the cookies we recognize up to date: a recognized cookie is added when a scan finds it, and removed when two scans in a row miss it. Anything we don't recognize waits for your review and is never removed.
A cookie a scan adds asks visitors who've already chosen to choose again. One it removes doesn't. The Cookies tab shows what the last scan changed.
To approve every cookie yourself instead, change After a scan under Settings on the Cookies tab. Sites created before this option existed already work that way.
Google Consent Mode
Basic: nothing reaches Google before consent. Google's tags don't load until the visitor allows Statistics (Analytics) or Marketing (Ads). Visitors who decline are missing from your reports.
Advanced: cookieless pings reach Google before consent. Google's tags load right away and follow each choice. Until Statistics or Marketing is allowed they send pings with no cookies or ad identifiers (Google still receives basic request details such as the visitor's IP address and browser), which Google uses to estimate the conversions it can't see. Once allowed, they measure normally. Keep it on Advanced if you use our Google Tag Manager template. It also unlocks region defaults and the ad click ID options.
- Necessary → security_storage (always granted)
- Preferences → personalization_storage, functionality_storage
- Statistics → analytics_storage
- Marketing → ad_storage, ad_user_data, ad_personalization
Every visit starts with denied for everything except security_storage, then updates to the visitor's stored choice. That's why the consent script must load before GTM or gtag.
Yes, if you want Tag Manager to send Consent Mode signals from inside your container. You still need the Install snippet on the page for the banner.
Running both is safe — both start by denying everything except Necessary. Keep the template's Global row set that way, and keep Consent Mode on Advanced.
Configure region defaults, URL passthrough, and ads data redaction in one place. If both are set, the template takes priority.
They set what each visitor starts with, before they choose — only in Advanced mode. Add a Global row for the worldwide default, then extra rows for specific countries or regions. If there's no Global row, everything except Necessary starts denied.
Codes are ISO 3166-2: a country (GB, FR) or a subdivision (US-CA). Separate multiple codes with commas. Global can't share a row with country codes.
Both apply in Advanced mode while Marketing is denied. Passing ad click IDs through URLs helps Google keep conversion measurement without cookies. Redacting ad identifiers strips those IDs when ads storage is denied.
If you also use our Tag Manager template, set these in one place — the template's values take priority.
Consent data
In their browser: the choice itself (so the banner doesn't keep asking). On our side: an anonymous visitor ID, which categories they allowed, and when. We don't collect visitors' IP addresses, names, or other directly identifying information through the banner.
Individual log entries are kept for the period your plan includes (30 days on Starter, 12 months on Growth, 3 years on Enterprise), then deleted. The totals and daily chart are not affected — those stay so you can see trends. Banner configuration is kept until you delete the site or your account.
While an entry exists, you can open it on the Consent data tab to see what that visitor was shown: the banner and the cookie list as they were at the time. That history is kept after the log entries are deleted.
Performance
It loads your live site and reports performance, accessibility, best practices, and SEO scores, plus sitemap and robots.txt health, Core Web Vitals, and the highest-impact things to fix. There's a public checker with no account, and a fuller report on the Performance tab after you sign in.
This test is a single run we just did (mobile or desktop). Real visitors is 28 days of field data from people who actually used the site. A site without much traffic may not have real-visitor numbers yet.
Account
Starter:
- 1 website
- Consent log kept 30 days
- 10 manual cookie scans a month
- Cookie scans cover your root page (/) and up to 3 more pages
Growth:
- 1 website, with up to 2 more as add-ons
- Consent log kept 12 months
- 100 manual cookie scans a month
- Cookie scans cover your root page (/) and up to 10 more pages
- Automatic cookie scanning
- Glass and gradient banners, and automatic light/dark
- Consent Mode defaults by region
- Consent history — what each visitor was shown
- A banner without the “Powered by” credit
Enterprise:
- 10 websites, with more as add-ons
- Consent log kept 3 years
- Unlimited manual cookie scans a month
- Cookie scans cover your root page (/) and up to 25 more pages
- Automatic cookie scanning
- Glass and gradient banners, and automatic light/dark
- Consent Mode defaults by region
- Consent history — what each visitor was shown
- A banner without the “Powered by” credit
Prices and billing cycles (monthly or annual) are on the Plans page in your dashboard.
Upgrades apply straight away. If you move to a plan with fewer websites, or without a feature, nothing is deleted and your existing banners keep working — you just can't add websites beyond the new limit, or switch on what the plan doesn't include.
If a subscription ends, your sites and settings are kept. Choose a plan again whenever you want to carry on managing them.
Pause from Details — the banner is hidden but the site and its settings stay. Delete from the same tab; that permanently removes the site and the banner on your website will stop working.
Email hello@cosmoops.com. For how we handle data, see the Privacy Policy; for using the service, see the Terms of Service.