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 5, 2024
1 parent da236e1 commit 061392e
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 @@ -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');",
],
],
});

0 comments on commit 061392e

Please sign in to comment.