Skip to content

Commit 5dab7e7

Browse files
Add Google Tag Manager snippet to Mintlify docs
- Added GTM script (GTM-T7G5S78D) to docs.json head section - This will enable Google Analytics tracking on docs.codegen.com - Ready for Admind to verify the installation
1 parent c53c8e3 commit 5dab7e7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/docs.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,11 @@
134134
"posthog": {
135135
"apiKey": "phc_GLxaINoQJnuyCyxDmTciQqzdKBYFVDkY7bRBO4bDdso"
136136
}
137-
}
137+
},
138+
"head": [
139+
{
140+
"tag": "script",
141+
"content": "(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-T7G5S78D');"
142+
}
143+
]
138144
}

0 commit comments

Comments
 (0)