Skip to content

Commit 50b8992

Browse files
committed
f
1 parent f979e8d commit 50b8992

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

book.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ additional-js = [
2323
"theme/sponsor.js",
2424
"theme/ai.js"
2525
]
26-
google-analytics = "G-8QHENNPT4B"
2726
no-section-label = true
2827
preferred-dark-theme = "hacktricks-dark"
2928
default-theme = "hacktricks-light"

theme/index.hbs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,20 +343,18 @@
343343
</script>
344344
{{/if}}
345345

346-
{{#if google_analytics}}
347346
<!-- Google Analytics Tag (GA4) -->
348347
<script>
349348
window.dataLayer = window.dataLayer || [];
350349
function gtag(){dataLayer.push(arguments);}
351350
gtag('js', new Date());
352-
gtag('config', '{{google_analytics}}');
351+
gtag('config', 'G-8QHENNPT4B');
353352
354353
var gtagScript = document.createElement('script');
355354
gtagScript.async = true;
356-
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id={{google_analytics}}';
355+
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-8QHENNPT4B';
357356
document.head.appendChild(gtagScript);
358357
</script>
359-
{{/if}}
360358

361359
{{#if playground_line_numbers}}
362360
<script>

0 commit comments

Comments
 (0)