feat: add gtm
This commit is contained in:
7
src/modules/gtm.ts
Normal file
7
src/modules/gtm.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createGtm } from '@gtm-support/vue-gtm'
|
||||
import type { UserModule } from '~/types'
|
||||
|
||||
export const install: UserModule = ({ app }) => {
|
||||
// add google tag manager, and add GA4 in gtag
|
||||
app.use(createGtm({ id: 'GTM-5FJSV46' }))
|
||||
}
|
||||
Reference in New Issue
Block a user