summaryrefslogtreecommitdiff
path: root/docs/_templates/layout.html
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-07 17:19:44 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-07 18:23:56 +0300
commit8d5187cd45fefc2b0803eba0545960de348615bd (patch)
tree9366def4c9ea208428f47f9c30240a116b878673 /docs/_templates/layout.html
parentbcdfb210fb08c9039210284b7b9e9d2f5b042152 (diff)
downloadvyos-documentation-8d5187cd45fefc2b0803eba0545960de348615bd.tar.gz
vyos-documentation-8d5187cd45fefc2b0803eba0545960de348615bd.zip
feat(docs): read GTM_ID from environment instead of hardcoding
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)
Diffstat (limited to 'docs/_templates/layout.html')
-rw-r--r--docs/_templates/layout.html2
1 files changed, 1 insertions, 1 deletions
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');</script>
+ })(window,document,'script','dataLayer','{{ gtm_id }}');</script>
<style>#vyos-header-iframe{position:fixed;top:0;left:0;right:0;z-index:999999999;width:100%;border:none}</style>
<style>#vyos-footer-iframe{width:100%;border:none}</style>