CookieConsent
PaketBrowser consent banner and category-based script blocking in JavaScript
- Fiyat
- Free, open source
- Erişim
- None, runs locally
Hakkında
MIT-licensed JavaScript package for cookie consent banners and preference dialogs. Configure consent categories, translations and script blocking in your site. It stores choices in the browser; a configured banner does not by itself guarantee GDPR compliance or provide a centralized audit ledger.
Neler yapabilirsin
- Let visitors accept or reject optional cookie categories on a website
- Load analytics scripts only after their required category is accepted
- Show translated preference dialogs and ask again after a consent revision
Başlarken
- Install vanilla-cookieconsent and import its stylesheet
- Configure languages, consent categories and modal text
- Mark optional scripts for blocking until their category is accepted
Örnek kod
import "vanilla-cookieconsent/dist/cookieconsent.css";
import * as CookieConsent from "vanilla-cookieconsent";
// Run CookieConsent.run with your categories and language configuration.Ayrıntılar
- Barındırma
- Kendi bilgisayarında
- Kullanılabildiği yerler
- Tüm dünya
- MCP sunucusu
- Yok