This commit is contained in:
Carlos Polop
2026-01-21 21:14:36 +01:00
parent 12bbfb1041
commit 58b2dc7621
2 changed files with 2 additions and 5 deletions

View File

@@ -23,7 +23,6 @@ additional-js = [
"theme/sponsor.js", "theme/sponsor.js",
"theme/ai.js" "theme/ai.js"
] ]
google-analytics = "G-DSTYJWERH0"
no-section-label = true no-section-label = true
preferred-dark-theme = "hacktricks-dark" preferred-dark-theme = "hacktricks-dark"
default-theme = "hacktricks-light" default-theme = "hacktricks-light"

View File

@@ -342,20 +342,18 @@
</script> </script>
{{/if}} {{/if}}
{{#if google_analytics}}
<!-- Google Analytics Tag (GA4) --> <!-- Google Analytics Tag (GA4) -->
<script> <script>
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);} function gtag(){dataLayer.push(arguments);}
gtag('js', new Date()); gtag('js', new Date());
gtag('config', '{{google_analytics}}'); gtag('config', 'G-DSTYJWERH0');
var gtagScript = document.createElement('script'); var gtagScript = document.createElement('script');
gtagScript.async = true; gtagScript.async = true;
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id={{google_analytics}}'; gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-DSTYJWERH0';
document.head.appendChild(gtagScript); document.head.appendChild(gtagScript);
</script> </script>
{{/if}}
{{#if playground_line_numbers}} {{#if playground_line_numbers}}
<script> <script>