OpenCMP Cookies Manager

Modern and complete solution for cookie consent management with direct Google Tag Manager integration

βœ… GDPR Compliant πŸš€ Google Tag Manager ⚑ React + Tailwind πŸ“± Responsive
npx shadcn@latest add https://jondotsoy.github.io/opencmp/cookies-manager.json
pnpm dlx shadcn@latest add https://jondotsoy.github.io/opencmp/cookies-manager.json
bunx shadcn@latest add https://jondotsoy.github.io/opencmp/cookies-manager.json

Why OpenCMP?

In today's digital landscape, compliance with privacy regulations is essential. OpenCMP Cookies Manager allows you to maintain legal compliance without compromising user experience.

πŸ›‘οΈ

Regulatory Compliance

  • βœ“ Complies with European Union GDPR regulations
  • βœ“ Adherence to California CCPA
  • βœ“ International data protection regulations
πŸ‘₯

User Experience

  • βœ“ Complete transparency about cookie usage
  • βœ“ Full control for users over their data
  • βœ“ Intuitive and customizable interface
⚑

Technical Excellence

  • βœ“ Direct integration with Google Tag Manager
  • βœ“ Modern technology: React + Tailwind CSS
  • βœ“ Fully customizable source code

The platform facilitates technical implementation while ensuring your website complies with the strictest international data protection regulations.

πŸš€ Easy installation via shadcn CLI

Quick Installation

Integrate OpenCMP Cookies Manager into your project in minutes. Compatible with React, Next.js, Astro, and any modern framework.

1 Install the component

Use shadcn CLI to install the component directly into your project:

npx shadcn@latest add https://jondotsoy.github.io/opencmp/cookies-manager.json
pnpm dlx shadcn@latest add https://jondotsoy.github.io/opencmp/cookies-manager.json
bunx shadcn@latest add https://jondotsoy.github.io/opencmp/cookies-manager.json

2 Basic usage

Import and use the component in your application according to the framework you're using:

---
import { CookieDialogSettings, CookiesManager } from "@/components/ui/cookies-manager";
---

<CookiesManager client:only="react" />
import { CookieDialogSettings, CookiesManager } from "@/components/ui/cookies-manager";

// Layout is a Server Component by default
export default function Layout({ children }: { children: React.ReactNode }) {
  return (
    <>
      <main>
        <CookiesManager  />
        {children}
      </main>
    </>
  )
}

Ready to use!

Your cookie manager will be working immediately. The component includes default configuration for GDPR compliance and automatically integrates with Google Tag Manager.

3 Preferences button (optional)

Add a button so users can open the cookie configuration panel at any time and from anywhere on your site:

---
import { CookieDialogSettings, CookiesManager } from "@/components/ui/cookies-manager";
---

<CookieDialogSettings client:load>
  <button>
    Customize your cookie preferences
  </button>
</CookieDialogSettings>

πŸ’‘ Tip: This tag allows opening the preferences panel from anywhere on the site. Use it in your footer, navbar, or wherever you consider most appropriate for user experience.