From 7171514851a9ce1e89667781751b4186d86c0c62 Mon Sep 17 00:00:00 2001 From: Zhumei Song Date: Sat, 9 Nov 2024 22:57:49 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20google=20tag=20and=20me?= =?UTF-8?q?ta=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + src/.vitepress/config.mts | 29 ++++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 106a2e9..161082d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "cSpell.words": [ + "adsense", "CDUT", "colorit", "Hackathon", diff --git a/src/.vitepress/config.mts b/src/.vitepress/config.mts index 9e3b829..1949add 100644 --- a/src/.vitepress/config.mts +++ b/src/.vitepress/config.mts @@ -17,5 +17,32 @@ export default defineConfig({ ], }, lastUpdated: true, - head: [], + head: [ + [ + "meta", + { + name: "google-adsense-account", + content: "ca-pub-1141212403322647", + }, + ], + [ + "meta", + { + name: "google-site-verification", + 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');", + ], + ], });