summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/_templates/layout.html2
-rw-r--r--docs/conf.py2
2 files changed, 2 insertions, 2 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>
diff --git a/docs/conf.py b/docs/conf.py
index 1cfe669e..fa0e9349 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -142,6 +142,7 @@ html_context = {
'github_repo': 'vyos-documentation',
'github_version': _github_version,
'conf_py_path': '/docs/',
+ 'gtm_id': os.environ.get('GTM_ID', ''),
}
# sphinx-sitemap: baseurl already includes /en/1.5/, so skip lang+version
@@ -152,7 +153,6 @@ sitemap_url_scheme = '{link}'
# _templates/llms.txt.j2 by the _write_llms_txt() build-finished hook
# below; llms-full.txt is still auto-generated by sphinx-llms-txt.
llms_txt_file = False
-
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#