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 compliance with major privacy regulations worldwide.
Match your brand with custom colors, fonts, and layouts.
Seamless integration with Google Tag Manager Consent Mode v2.
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();
Platform Integrations
Easy integration with WordPress sites using our plugin or manual implementation.
Add the script to your Shopify theme for seamless e-commerce compliance.
Configure GTM tags to respect user consent preferences automatically.
Need Help?
Knowledge Base
Browse our comprehensive guides and tutorials.
Community
Join our community forum for discussions and tips.
Contact Support
Get direct help from our technical support team.