Skip to content

Commit 58b2dc7

Browse files
committed
f
1 parent 12bbfb1 commit 58b2dc7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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-DSTYJWERH0"
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
@@ -342,20 +342,18 @@
342342
</script>
343343
{{/if}}
344344

345-
{{#if google_analytics}}
346345
<!-- Google Analytics Tag (GA4) -->
347346
<script>
348347
window.dataLayer = window.dataLayer || [];
349348
function gtag(){dataLayer.push(arguments);}
350349
gtag('js', new Date());
351-
gtag('config', '{{google_analytics}}');
350+
gtag('config', 'G-DSTYJWERH0');
352351
353352
var gtagScript = document.createElement('script');
354353
gtagScript.async = true;
355-
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id={{google_analytics}}';
354+
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-DSTYJWERH0';
356355
document.head.appendChild(gtagScript);
357356
</script>
358-
{{/if}}
359357

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

0 commit comments

Comments
 (0)