From 9a92db9d232d9f15eedb3b11a5e3190d164c99d8 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Thu, 7 May 2026 17:47:01 +0300 Subject: fix(docs): guard GTM/Cookiebot blocks with {% if gtm_id %} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents broken googletagmanager.com requests with empty container IDs when GTM_ID is not set (local builds, preview environments). 🤖 Generated by [robots](https://vyos.io) --- docs/_templates/layout.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index cf25c15d..2521026b 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,6 +1,7 @@ {% extends "!layout.html" %} {%- set current_version = "1.5.x circinus" %} {% block extrahead %} + {% if gtm_id %} {# Cookiebot CMP — must load first so its auto-blocker can scan/block other tags #}