Tag Consent Banner
Keep optional tags on hold until your visitors grant the matching category. Add a cookie consent banner to your Craft CMS 5 site. You can gate scripts with a Twig helper or inert HTML. Necessary is always on. Visitors can choose analytics, marketing, and preferences, then revisit those choices from the footer.
Set up
- Run
composer require brightdesk/tag-consent-banner, thenphp craft plugin/install tag-consent-banner. - Open Settings > Plugins > Tag Consent Banner to set the consent lifetime, Policy version, and appearance.
- Add
{{ craft.tagConsent.head() }}near the top of<head>before Google tags,{{ craft.tagConsent.banner() }}beforeendBody(), and{{ craft.tagConsent.settingsLink() }}in the footer. Callhead()andendBody()in the Craft layout. Put optional scripts behind their category gates and check requests in the browser's Network pane.
Features
Get a cookie consent banner with granular category preferences, appearance and consent settings, manual script gating, Basic Google Consent Mode v2, known-tag matching within supplied markup, consent logging with CSV export and retention controls, and text overrides by Craft site and language with a shared fallback.
The plugin uses no SaaS or telemetry. Tags may send data to their own providers after consent.
Help
Full setup guide: https://brightdeskapps.com/craft/cookie-consent — questions: support@brightdeskapps.com
Standard
Plus $19/year after one year.
To install this plugin, copy the command above to your terminal.
This plugin doesn't have any reviews.



