From 12ad63efd967029147fcff7670e8bf63c668ea47 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sat, 14 Feb 2026 19:35:13 +0100 Subject: [PATCH] re-add google tag manager --- .vitepress/config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.vitepress/config.js b/.vitepress/config.js index af58ebc..c43d3e5 100644 --- a/.vitepress/config.js +++ b/.vitepress/config.js @@ -28,6 +28,18 @@ const defaultConfig = { async: 'true', src: 'https://scripts.simpleanalyticscdn.com/latest.js' } + ], + [ + 'script', + { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-MD3J6G9QVX' } + ], + [ + 'script', + {}, + `window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'G-MD3J6G9QVX', { 'anonymize_ip': true });` ] ], themeConfig: {