Skip to content

Commit

Permalink
chore: add gtm (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeifXu authored May 24, 2024
1 parent 60d0c0c commit 0b582c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export default defineConfig({
id: process.env.GOOGLE_ANALYTICS_ID,
}
: undefined,
gtm: process.env.GOOGLE_TAG_MANAGER_ID
? [
{
id: process.env.GOOGLE_TAG_MANAGER_ID,
},
]
: undefined,
}),
],

Expand Down

0 comments on commit 0b582c4

Please sign in to comment.