diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-07 17:17:10 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-07 18:23:30 +0300 |
| commit | bcdfb210fb08c9039210284b7b9e9d2f5b042152 (patch) | |
| tree | 1c9a68c0185af4f952d93199b2397158d32588df | |
| parent | 887b7c2de8efc107c9a8a6ad5d092e3b77eaba24 (diff) | |
| download | vyos-documentation-bcdfb210fb08c9039210284b7b9e9d2f5b042152.tar.gz vyos-documentation-bcdfb210fb08c9039210284b7b9e9d2f5b042152.zip | |
fix(docs): use window.dataLayer in gtag() for strict-mode safety
🤖 Generated by [robots](https://vyos.io)
| -rw-r--r-- | docs/_templates/layout.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 53963445..1347a6e6 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -16,7 +16,7 @@ admin UI, not here. See https://www.cookiebot.com/en/google-consent-mode/ #} <script> window.dataLayer = window.dataLayer || []; - function gtag(){dataLayer.push(arguments);} + function gtag(){window.dataLayer.push(arguments);} gtag('consent', 'default', { 'ad_storage': 'denied', 'ad_user_data': 'denied', |
