Skip to main content

CookieBeam Documentation

Everything you need to implement cookie consent on your website

Quick Start

1. Create Account

Sign up for a free CookieBeam account and create your first banner configuration.

2. Add Script

Copy the generated script tag and paste it into your website's HTML.

<script src="//cdn.cookiebeam.com/script.js"></script>
3. Go Live

Your cookie banner is now live! Monitor consent rates and compliance in your dashboard.

Features

Privacy Regulation Support

Built-in support for GDPR, CCPA, and major privacy regulations worldwide.

Customizable Design

Match your brand with custom colors, fonts, and layouts.

Consent Mode Integration

Google Consent Mode v2, Microsoft Consent Mode (Clarity & Bing Ads), and Meta Pixel consent signals.

Real-time Analytics

Track consent rates and user preferences with detailed analytics.

Implementation Guides

Basic Implementation

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.

Advanced Configuration

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

JavaScript API

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

Google Tag Manager

Configure GTM tags to respect user consent preferences automatically. Supports Google Consent Mode v2.

Server-side GTM

Optional add-on for server-side tagging. Improve page speed, data accuracy, and privacy control with a managed sGTM container.

Shopify

Add the script to your Shopify theme for seamless e-commerce compliance.

Need Help?

Knowledge Base

Browse our comprehensive guides and tutorials.

Community

Connect with us and other CookieBeam users on LinkedIn.

Contact Support

Get direct help from our technical support team.