Skip to content

Commit

Permalink
feat: ✨ add google tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Nov 6, 2024
1 parent 52eee64 commit 126b7c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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');",
],
],
});

0 comments on commit 126b7c7

Please sign in to comment.