From 8d5187cd45fefc2b0803eba0545960de348615bd Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Thu, 7 May 2026 17:19:44 +0300 Subject: feat(docs): read GTM_ID from environment instead of hardcoding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the Google Tag Manager container ID out of the template and into conf.py via os.environ.get('GTM_ID', ''), exposed to Jinja via html_context. Set GTM_ID in the RTD project environment variables. 🤖 Generated by [robots](https://vyos.io) --- docs/_templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/_templates/layout.html') diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 1347a6e6..a0edef7b 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -35,7 +35,7 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); - })(window,document,'script','dataLayer','GTM-T5VQHRT'); + })(window,document,'script','dataLayer','{{ gtm_id }}'); -- cgit v1.2.3