Skip to content

Commit

Permalink
chore: 🤖 google tag and meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Nov 9, 2024
1 parent fecf415 commit 7171514
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"cSpell.words": [
"adsense",
"CDUT",
"colorit",
"Hackathon",
Expand Down
29 changes: 28 additions & 1 deletion src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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');",
],
],
});

0 comments on commit 7171514

Please sign in to comment.