yarn add @nuxtjs/gtm # or npm install @nuxtjs/gtm
export default { modules: [ '@nuxtjs/gtm', ], gtm: { id: 'GTM-XXXXXXX' } }
export default { modules: [ '@nuxtjs/gtm' ], plugins: [ '~/plugins/gtm' ] }
export default function({ $gtm, route }) { $gtm.init('GTM-XXXXXXX') }
this.$gtm.push({ event: 'myEvent', ...someAttributes })