Skip to content

Commit

Permalink
docs: gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
phphe committed Mar 4, 2024
1 parent 5a2d128 commit c232536
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,21 @@ export default defineConfig({
lang: "zh",
},
},
head: [
[
"script",
{
async: "",
src: "https://www.googletagmanager.com/gtag/js?id=G-GVYKBNTKPG",
},
],
[
"script",
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GVYKBNTKPG');`,
],
],
});

0 comments on commit c232536

Please sign in to comment.