@danielgietmann/react-cookiebot
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

React Simple Cookiebot Consent Banner Loader

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
  • Cookiebot Cookie Notifikation

Installation

Install with npm

  npm i @danielgietmann/react-cookiebot

Usage/Examples

Create a Account at https://admin.cookiebot.com/

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

!! Only Works on Website registerd at Domains in Cookiebot Pannel !!

In the Main Layout File Replace GTag with your GTag ID and GAnalytics with your Analytics Id

import CookieBotLoader from "@danielgietmann/react-cookiebot";

function App() {
  return (
      <html lang="en">
            <body>
                <CookieBotLoader
                    CookieBotID="123131-231312-132123-12313"
                />
                {children}
            </body>
        </html>

  )
}

Roadmap

  • More Config Options
  • Switch to .ENV

License

MIT

Package Sidebar

Install

npm i @danielgietmann/react-cookiebot

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

5.82 kB

Total Files

8

Last publish

Collaborators

  • danielgietmann