Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Add Google Analytics to track site usage

Maximilian Roos83e6f2419c63
diff --git a/docs/templates/base.html b/docs/templates/base.html
index 6b0480de4..73ca92e33 100644
--- a/docs/templates/base.html
+++ b/docs/templates/base.html
@@ -33,6 +33,14 @@
<!-- <meta name="twitter:image" content="{{ config.base_url }}social-card.png"> -->
<link rel="stylesheet" href="{{ get_url(path='custom.css') }}">
+<!-- Google tag (gtag.js) -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=G-6YY8BDJ4QH"></script>
+<script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', 'G-6YY8BDJ4QH');
+</script>
<script>
// Disable the Juice theme's scroll-spy by intercepting IntersectionObserver
// Juice creates an observer with threshold: 1 to highlight TOC items on scroll