diff options
| -rw-r--r-- | docs/_templates/layout.html | 6 | ||||
| -rw-r--r-- | docs/conf.py | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 2521026b..464e73f8 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,11 +1,11 @@ {% extends "!layout.html" %} {%- set current_version = "1.5.x circinus" %} {% block extrahead %} - {% if gtm_id %} + {% if gtm_id and cookiebot_id %} {# Cookiebot CMP — must load first so its auto-blocker can scan/block other tags #} <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" - data-cbid="932cb8b9-5141-4dc9-9018-21fc31a0586f" + data-cbid="{{ cookiebot_id }}" data-blockingmode="auto" type="text/javascript"></script> @@ -64,7 +64,7 @@ {% endblock %} {% block body %} - {% if gtm_id %} + {% if gtm_id and cookiebot_id %} <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_id }}" height="0" width="0" style="display:none;visibility:hidden" title="Google Tag Manager"></iframe></noscript> diff --git a/docs/conf.py b/docs/conf.py index 74ad1ff6..083482a8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -148,6 +148,7 @@ html_context = { 'github_version': _github_version, 'conf_py_path': '/docs/', 'gtm_id': os.environ.get('GTM_ID', ''), + 'cookiebot_id': os.environ.get('COOKIEBOT_ID', ''), } # sphinx-sitemap: baseurl already includes /en/rolling/, so skip lang+version |
