From f34f1d66b760d6616080ca07ad1b403cf75338bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 13:42:08 +0000 Subject: fix(docs): deduplicate GTM ID via Jinja var and use window.dataLayer in gtag() Agent-Logs-Url: https://github.com/vyos/vyos-documentation/sessions/f6d95cc7-cdbe-4d76-8077-f7fae5e9ddf2 Co-authored-by: andamasov <12631358+andamasov@users.noreply.github.com> --- docs/_templates/layout.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/_templates') diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index cfc59dca..8c57a066 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,5 +1,6 @@ {% extends "!layout.html" %} {%- set current_version = "1.5.x circinus" %} +{%- set gtm_id = "GTM-T5VQHRT" %} {% block extrahead %} {# Cookiebot CMP — must load first so its auto-blocker can scan/block other tags #} + })(window,document,'script','dataLayer','{{ gtm_id }}'); @@ -64,7 +65,7 @@ {% block body %} {# GTM noscript fallback #} - {{ super() }} {% endblock %} -- cgit v1.2.3