Crumbs

Cookie consent for Framer · Consent Mode v2 · Tag Manager

Cookie consent for Framer

A cookie banner people actually click.

A cookie banner people actually click.

A cookie banner people actually click.

Crumbs asks for consent, remembers the answer and passes it to Google Consent Mode and Tag Manager, so your tags wait for a yes. Accepting takes a bite out of the cookie.

Crumbs asks for consent, remembers the answer and passes it to Google Consent Mode and Tag Manager, so your tags wait for a yes. Accepting takes a bite out of the cookie.

This demo page loads no trackers. Your choice is only saved in your browser.

Card, bar or modal.

Card, bar or modal.

Card

Sits in a corner, left or right.

Bar

Full width along the bottom.

Modal

Centred, with a backdrop.

Preferences

Switches for each category.

Does the boring part properly.

Does the boring part properly.

Tags wait for a yes

Sends a crumbs_consent event to Tag Manager with each category, so analytics and ad tags fire only after consent.

Google Consent Mode v2

Sends the Consent Mode update when the visitor chooses. The included head snippet sets the default (denied, or the saved choice) before any tag loads.

Categories with switches

Necessary, Analytics, Marketing and Preferences, each with your own name and description.

Remembers the answer

Stored in the visitor’s browser. Ask again after a set number of days or when you change the version.

A settings link for your footer

Crumbs Settings reopens the banner with the current choices, so visitors can change their mind.

Looks like your site

Three layouts, your colours, radius and font, with or without the cookie.

Good to know

— Crumbs is a consent tool, not legal advice. You still need a privacy policy that says what you collect.

— Crumbs doesn’t load any scripts itself. Load GA4, the Meta Pixel and other tags through Google Tag Manager and hold them back with the Crumbs event or Consent Mode.

— Google Analytics added in Framer’s site settings loads without waiting for consent, so move it into Tag Manager instead.

— Consent Mode needs its default before your tags load, and a component only runs after the page loads. So paste the head snippet below into Site Settings → General → Custom Code → Start of <head>, above Tag Manager. The banner then only sends the update when the visitor chooses. Without the snippet, Crumbs sends the default itself, too late for tags that already fired. This demo has the snippet installed.

— The Privacy policy link in this demo’s banner points here. On your site, link your own policy page.

Head snippet · Start of <head>

<script>
window.dataLayer=window.dataLayer||[];
function gtag(){dataLayer.push(arguments)}
(function(){
var VERSION='1',DAYS=180;
var c={a:0,m:0,p:0};
try{var s=JSON.parse(
localStorage.getItem('crumbs-consent'));
if(s&&s.v===VERSION&&(!DAYS||
Date.now()-s.t<DAYS*864e5))c=s
}catch(e){}
function g(b){return b?'granted':'denied'}
gtag('consent','default',{
analytics_storage:g(c.a),
ad_storage:g(c.m),
ad_user_data:g(c.m),
ad_personalization:g(c.m),
functionality_storage:g(c.p),
personalization_storage:g(c.p),
security_storage:'granted',
wait_for_update:500});
window.__crumbsDefault=true})();
</script>

<script>
window.dataLayer=window.dataLayer||[];
function gtag(){dataLayer.push(arguments)}
(function(){
var VERSION='1',DAYS=180;
var c={a:0,m:0,p:0};
try{var s=JSON.parse(
localStorage.getItem('crumbs-consent'));
if(s&&s.v===VERSION&&(!DAYS||
Date.now()-s.t<DAYS*864e5))c=s
}catch(e){}
function g(b){return b?'granted':'denied'}
gtag('consent','default',{
analytics_storage:g(c.a),
ad_storage:g(c.m),
ad_user_data:g(c.m),
ad_personalization:g(c.m),
functionality_storage:g(c.p),
personalization_storage:g(c.p),
security_storage:'granted',
wait_for_update:500});
window.__crumbsDefault=true})();
</script>

Crumbs · cookie consent for Framer

Create a free website with Framer, the website builder loved by startups, designers and agencies.