diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 609b1985..b7f4b1a3 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -145,5 +145,19 @@ export default defineConfig({ copyright: 'Copyright © 2023-present Sam Holt' } }, - head: [['link', { rel: 'icon', href: '/L2MAC/favicon.ico' }]] + head: [ + ['link', { rel: 'icon', href: '/L2MAC/favicon.ico' }], + [ + 'script', + { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-TXHDRXTGTW' } + ], + [ + 'script', + {}, + `window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'G-TXHDRXTGTW');` + ] + ] })