From 9e231f1105453e825fad06d913ddca349cf076bc Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Tue, 10 Oct 2023 16:49:04 +0200 Subject: [PATCH] add: google analytics code --- .vitepress/config.mts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 6eca8a8..80fc97b 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -102,6 +102,21 @@ export default defineConfig({ ['meta', {property: "og:type", content: "website"}], ['meta', {property: "og:url", content: "https://sigmahq.io/"}], ['meta', {property: "og:image", content: "https://sigmahq.io/images/og_image.jpg"}], + [ + 'script', + { + async: true, + src: 'https://www.googletagmanager.com/gtag/js?id=G-H2V53RDE71', + }, + ], + [ + 'script', + {}, + `window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'G-H2V53RDE71');` + ] ], lastUpdated: true, themeConfig: {