Consent Management

Cookie banner and script gating for Payload, with consent services managed in the admin panel

Community 3 121/wk MIT v1.0.2

Installation

pnpm add @bespokecode/payload-consent

About

Consent Management lets editors maintain cookie consent for a Payload site as ordinary collections. Third-party services, consent categories, descriptions and cookie declarations are edited in the admin panel, and the frontend gets a themeable banner and a settings dialog for visitors to change their choice later.

Non-essential scripts stay out of the page until the visitor grants the category they belong to. Withdrawing consent removes the cookies and storage keys declared for that service and resets Google Consent Mode signals to denied. Global Privacy Control signals from the browser are honoured, and embedded content such as video iframes can be held behind a placeholder until the visitor allows it.

Package info

Package name
@bespokecode/payload-consent
Latest version
1.0.2
Unpacked size
528 kB
License
MIT
Weekly downloads
121
Last publish
Aug 5, 2026

Similar plugins

More in Admin

Records who created or updated documents and shows update history in the admin panel

Opens nested blocks and array rows in stacked panels with breadcrumb navigation

Click-to-edit overlays on the frontend that open the matching field in the admin

Inline editing on your live website for Payload content, with reviewed drafts

Appearance panel where each editor picks a style, palette and icons for the admin

Visual drag-and-drop page builder for Payload collections with live canvas editing