DanielGietmann Help

React CookieBot

The Cookiebot Consent Banner Loader is a streamlined script designed to effortlessly integrate the Cookiebot consent management platform into your website. This lightweight, GDPR-compliant solution ensures that your site adheres to international privacy regulations by managing and documenting visitor consents for cookies and tracking technologies. Easy to implement and operate, the Cookiebot Loader enhances user trust by providing clear options to accept or reject cookies, maintaining a balance between compliance and user experience.

Features

  • Easy Integration: The Cookiebot Consent Banner Loader is a simple script that seamlessly integrates with your website.

  • Cookiebot Cookie Notifikation: The Cookiebot Consent Banner Loader displays a cookie notification banner to inform users about the use of cookies.

Installation

To install the Cookiebot Consent Banner Loader, follow these steps: Install with npm

npm i @danielgietmann/react-cookiebot
yarn add @danielgietmann/react-cookiebot
pnpm add @danielgietmann/react-cookiebot

Usage

Get Your Implementation script and use only the data-cbid. User this ID and set it as CookieBotID.

import CookieBotLoader from "@danielgietmann/react-cookiebot"; function App() { return ( <html lang="en"> <body> <CookieBotLoader/> {children} </body> </html> ) }

Options

Set in your .env File

Option

Type

Description

Default

COOKIEBOT_ID

string

The ID of your Domain

""

COOKIEBOT_DEBUG

string

Enable the Debug Mode

"false"

Roadmap

  • More Config Options

License

MIT License

Last modified: 03 August 2024