@nuxtjs/gtm
Find more information about @nuxtjs/gtm (opens new window)
Installation
First, you need to add the @nuxtjs/gtm (opens new window) to your application:
yarn add @nuxtjs/gtm
Then, on the nuxt.config.js
file, you need to add it to the modules
key.
export default {
modules: [
'@nuxtjs/gtm',
],
gtm: {
id: 'GTM-XXXXXXX'
}
}
More information about the module options (opens new window)