legal_put_consent
Configure the consent banner and tracking credentials for GTM, GA4, and Ahrefs to block all tracking until visitor consent is given.
Instructions
Configure the consent banner and every tracking credential the site uses. Nothing is handed to the browser until the visitor accepts - this plugin owns GTM, GA4 and Ahrefs Web Analytics precisely because it owns the gate. Search-engine verification meta tags are NOT here; those belong to cvrt-seo-manager because they fire no request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| ga4_id | No | GA4 measurement id G-XXXXXXXXXX, for a site running GA4 WITHOUT a GTM container. Ignored when gtm_id is set, since loading both double-counts every hit. | |
| gtm_id | No | GTM-XXXXXXX | |
| enabled | Yes | ||
| ahrefs_key | No | Ahrefs Web Analytics data-key. Cookieless but still a third-party request, so it is consent-gated and must be named in the Datenschutz text before enabling. | |
| loader_url | No | Optional first-party GTM loader URL. Leave empty to load straight from googletagmanager.com (the default on all our sites) | |
| log_enabled | No | Turn the consent decision log on or off. Stays off (the default) until a 'einwilligungsnachweis' section exists in the Datenschutz document - set it only after that section is in place. | |
| imprint_page | No | Page id of the Impressum page | |
| privacy_page | No | Page id of the Datenschutz page |