From 061392e95a37a16b2ab7676089dd0f0aa906a69e Mon Sep 17 00:00:00 2001 From: Zhumei Song Date: Tue, 5 Nov 2024 21:11:59 +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 e6e3e3f..693929a 100644 --- a/src/.vitepress/config.mts +++ b/src/.vitepress/config.mts @@ -25,5 +25,17 @@ export default defineConfig({ content: "71A3myPAsbW4yU-SCkZlmMSVmyagcPQGxCxU2IfHhx4", }, ], + [ + 'script', + { + async: true, + src: 'https://www.googletagmanager.com/gtag/js?id=G-3TJCENNN9X', + }, + ], + [ + 'script', + {}, + "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-3TJCENNN9X');", + ], ], });