The Developer-First Google Consent Mode v2 Banner

Pass audits, respect user privacy, and keep your analytics data. SafeBanner is a lightweight, open source consent banner for modern sites.

Google Consent Mode v2 Ready~4kb gzippedMIT Licensed
View on GitHubBuilt in public
Try SafeBannerOpen full demo →
<script src="https://www.safebanner.com/safebanner.js"></script>

That's it. No config required. Defaults work out of the box.

bottom
top
bottom-left
bottom-right
Light
Dark
EN
FR
DE
#2563eb

Compliance shouldn't require a six-figure contract.

OneTrust costs a fortune. Cookiebot breaks your site. You just need a cookie banner that works, stores consent properly, and doesn't embarrass you in an audit.

Live in 5 minutes.

1

Add one script tag

No build step. Works with any stack.

2

Customize if you want

Colors, position, text. Or use defaults.

3

You're compliant

Consent stored. Google signals sent automatically.

Built for teams who hate their current solution.

Open source

Audit the code yourself. No black boxes.

Lightweight

~4kb gzipped. Won't slow your site.

Actually works

GDPR opt-in by default. Consent persists. Google gets the signal.

No account required

Free tier runs entirely client-side.

What SafeBanner covers

  • Visible consent banner on first visit
  • Accept All / Reject All buttons
  • Granular categories (Necessary, Analytics, Marketing)
  • Google Consent Mode v2 signals
  • Mobile-friendly, accessible UI
  • GDPR-compliant opt-in by default
  • Multi-language support (EN, FR, DE)
  • Timestamped consent in localStorage

Intentionally simple

SafeBanner focuses on consent UI and signaling. It doesn't:

  • Block or rewrite scripts
  • Manage vendors or IAB TCF strings
  • Act as a full CMP

You stay in control. SafeBanner exposes consent state via API. Check hasConsentFor('analytics') before loading your trackers.

Free until you need proof.

Free

Available now

$0

  • Banner + consent UI
  • Local consent storage
  • GDPR mode
  • Self-host or use CDN

Paid features coming soon

Select what you need. We'll build the most requested features first.

Enterprise

Need SLAs, dedicated support, or custom integrations? Let's talk.

admin@safebanner.com

FAQ

Is this really free?

Yes. The open-source version is fully functional. Paid tiers add audit logs and multi-domain support.

Can I self-host?

Yes. MIT license. Run it on your own infra.

Does this work with React/Next/WordPress/etc?

Yes. It's a single script tag. Works everywhere.

What if I'm audited?

Free tier stores consent locally. Paid tiers give you exportable logs for legal.

Stop overpaying for cookie consent.

Replace OneTrust in under 5 minutes. No sales call required.