Skip to content
Sticky bar Consent and compliance Online store

Cookie banner (GDPR, Consent Mode v2)

A cookie consent banner with an equally visible “Reject”, categories (analytics, marketing) and a button to change the decision. Passes consent to Google Consent Mode v2 and the dataLayer.

✦ Customize with AI
Plan required
Free
Setup time
~3 min
Complexity
simple
Used by
0
What this template does

The banner asks for consent the way European data protection authorities expect: “Accept” and “Reject” are equally visible, and “Settings” lets visitors enable only some categories. The decision is remembered for 12 months, and a small corner button or a footer link with the data-cmm-cookie-settings attribute lets them change it any time. Consent goes to Google Consent Mode v2, to the dataLayer and out as a cmm:consent event, so GA4, GTM and the Pixel can react to it. Important: the banner itself does not block scripts pasted into your pages — configure them to wait for consent (e.g. consent mode in GTM).

Key features
  • “Accept” and “Reject” equally visible
  • Categories: necessary, analytics, marketing
  • Google Consent Mode v2 (gtag consent update) and dataLayer
  • Change the decision: corner button, footer link or __CMM.cookieSettings()
  • Decision remembered for 12 months
  • Trackers injected by ClickMeMaybe wait for consent
Triggers
Fires when
on page load until a decision
Only on
Frequency
once per 12 months
Targeting
Devices
desktop, mobile
Visitor
new & returning
Consent
GDPR-aware
Example configurations

The same widget, set up for a specific industry: starting copy and tips on how to configure it. You can change everything in the editor later.

For: Online store

Cookie banner for an online store

A consent banner for a store that runs GA4, Google Ads and Meta Pixel. It passes the decision to Google Consent Mode v2 and the dataLayer; tags pasted into your pages must be set to wait for it.

Cookies in our store
Essential cookies keep your basket and login working. With your consent we also use analytics and advertising cookies to measure sales and show you our ads.
Accept all
How to set it up

An online store usually runs more trackers than any other kind of site: GA4, a Google Ads conversion tag, Meta Pixel, sometimes TikTok or a remarketing tool. The customer just wants to buy shoes, and you need their consent to measure which campaign brought the order. The banner shows “Accept” and “Reject” with equal weight, and “Settings” separates analytics from marketing. The most important setup step is outside the banner: in Google Tag Manager enable consent mode for your tags and set triggers so Pixel and ad tags wait for marketing consent. The banner does not block scripts pasted into your store theme and does not make the store compliant by itself — it passes the decision on. After setup, use GTM preview mode to check that ad tags do not fire after “Reject”.

Will the banner block a Meta Pixel pasted into my store theme?
Not by itself. Pasted Pixel code runs immediately unless you move it to GTM with a trigger that waits for marketing consent, or add it through ClickMeMaybe.

Will the basket still work after “Reject”?
The banner does not delete your store’s cookies. Basket and login rely on your platform’s essential cookies; rejecting applies to the analytics and marketing categories.

For: Healthcare

Cookie banner for a clinic website

A calm consent banner for a practice, clinic or medical centre website: an equally visible “Reject”, separate categories and a footer link to change the decision. It covers website cookies only, not patient data.

Cookies on our clinic’s website
Essential cookies keep the site working. Analytics cookies help us see whether opening hours are easy to find — we only use them with your consent.
Accept
How to set it up

A patient visits a clinic’s website to check doctors’ hours, test prices or the booking phone number. Often they do it on a phone, under some stress. The banner should not get in the way — so the text is short and “Reject” is as easy to tap as “Accept”. Setup: if you only use GA4, mention analytics in the copy and do not promise ads you do not run. If you run campaigns, set your tags in GTM to wait for consent, because the banner does not block scripts pasted into the page. One caveat to keep: this widget only collects a decision about cookies. It has nothing to do with medical records, your booking system or patient data, and it does not make the site compliant — leave that assessment to your data protection officer.

Does the banner cover patient data?
No. It only stores the visitor’s decision about website cookies. It does not touch your booking system, records or contact forms, and it does not replace legal advice.

I have no ads, only analytics. What should the copy say?
Describe only what you really use, e.g. analytics. You set the banner text in the editor.

For: Law firm

Cookie banner for a law firm

A matter-of-fact consent banner for a law firm: neutral tone, an equally visible “Reject” and a “Cookie settings” link in the footer next to the privacy policy. It passes consent to Consent Mode v2.

Cookies on our firm’s website
Essential cookies keep the site working. With your consent we use analytics cookies to see which articles and practice areas people read.
I agree
How to set it up

Who reads a law firm’s website? Usually someone with a specific problem — a divorce, a dispute with an employer, a debt — reading guidance articles before they call. That reader is sensitive to discretion, and a pushy banner with a huge “Accept” spoils the first impression. This template has a neutral tone and asks only about analytics, because most firms do not run remarketing. If you run Google Ads campaigns, add the marketing category to the copy and set your GTM tags to consent mode — the banner does not block scripts pasted into the page. Tip: put a footer link with the data-cmm-cookie-settings attribute next to your privacy policy so changing the decision is always at hand. The banner passes the decision on, but it does not by itself make the site compliant — that is still your call.

Does the banner replace the firm’s privacy policy?
No. It collects the cookie decision. You prepare the privacy policy and cookie information yourself and link them in the footer.

We do not run ads. Do I have to mention marketing cookies?
Describe only what you really use. If you have no ad tags, mention analytics only.

FAQ
Does the banner block Google Analytics?
It passes the decision to Google Consent Mode v2 and the dataLayer. If GA4 or GTM is pasted into your pages, enable consent mode there and they will wait. Trackers injected by ClickMeMaybe wait automatically.
How do I add a “Cookie settings” link in the footer?
Any element with the data-cmm-cookie-settings attribute opens the settings, e.g. <a href="#" data-cmm-cookie-settings>Cookie settings</a>.
How long is the decision remembered?
12 months. Then the banner asks again.
Installation

One snippet. ~3 minutes.

Use this template now or copy it into your dashboard. Drop the ClickMeMaybe snippet into your site's <head>, click "Publish", done.

Read installation docs →

Ready to publish?

Copy this template to your workspace, customize, and ship.

✦ Customize with AI

Stop guessing. Start converting.

Install in 5 minutes. Publish your first widget today.

Start Free Now