CookieBeam Documentation
Everything you need to implement cookie consent on your website
Quick Start
Copy the generated script tag and paste it into your website's HTML.
<script src="//cdn.cookiebeam.com/script.js"></script>Features
Built-in support for GDPR, CCPA, and major privacy regulations worldwide.
Match your brand with custom colors, fonts, and layouts.
Google Consent Mode v2, Microsoft Consent Mode (Clarity & Bing Ads), and Meta Pixel consent signals.
Track consent rates and user preferences with detailed analytics.
Implementation Guides
Step 1: Get Your Script
After creating your banner, copy the script from your dashboard.
<script src="//cdn.cookiebeam.com/banner/YOUR_ID.js"></script>Step 2: Add to HTML
Place the script tag in your website's head section or before the closing body tag.
Custom Categories
Configure custom cookie categories and manage granular consent.
Event Callbacks
Hook into consent events to trigger custom actions in your application.
API Integration
Use our REST API to programmatically manage banners and consent data.
API Reference
CookieBeam.getConsent()
Returns the current consent status for all categories.
const consent = CookieBeam.getConsent();
// Returns: { necessary: true, analytics: false, marketing: true }CookieBeam.updateConsent()
Programmatically update consent preferences.
CookieBeam.updateConsent({
analytics: true,
marketing: false
});CookieBeam.showBanner()
Manually display the consent banner.
CookieBeam.showBanner();