Skip to content

Commit 80ff9bb

Browse files
committed
docs: Update google tag
1 parent 9287c79 commit 80ff9bb

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/.vuepress/config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ export default defineUserConfig({
99
theme,
1010
base: "/",
1111
head: [
12+
[
13+
"script",
14+
{
15+
async: true,
16+
src: "https://www.googletagmanager.com/gtag/js?id=G-9QM0DWGFXG",
17+
},
18+
],
19+
[
20+
"script",
21+
{},
22+
`window.dataLayer = window.dataLayer || [];
23+
function gtag(){dataLayer.push(arguments);}
24+
gtag('js', new Date());
25+
gtag('config', 'G-9QM0DWGFXG');`,
26+
],
1227
[
1328
"script",
1429
{

0 commit comments

Comments
 (0)