diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 6be24405..9e6638e3 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -30,4 +30,19 @@ module.exports = { }, ], }, + + head: [ + [ + 'script', + { + async: true, + src: 'https://www.googletagmanager.com/gtag/js?id=G-37DX3WR4T0', + }, + ], + [ + 'script', + {}, + "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-37DX3WR4T0');", + ], + ], }