From 126b7c7b125749a0a269fd557eccdf66576a4d5d Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Wed, 6 Nov 2024 19:42:02 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20google=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.vitepress/config.mts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/.vitepress/config.mts b/src/.vitepress/config.mts index 009553e..2d65c60 100644 --- a/src/.vitepress/config.mts +++ b/src/.vitepress/config.mts @@ -30,5 +30,17 @@ export default defineConfig({ content: "71A3myPAsbW4yU-SCkZlmMSVmyagcPQGxCxU2IfHhx4", }, ], + [ + 'script', + { + async: true, + src: 'https://www.googletagmanager.com/gtag/js?id=G-L74CKN4BBD', + }, + ], + [ + 'script', + {}, + "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-L74CKN4BBD');", + ], ], });