{"repo":"nuxt-community/gtm-module","free":true,"listed":false,"github":"https://github.com/nuxt-community/gtm-module","clone":"git clone https://github.com/nuxt-community/gtm-module.git","description":"Google Tag Manager Module for Nuxt.js","language":"JavaScript","stars":344,"topics":["nuxt","nuxtjs","module","google-tag-manager","gtm","analytics"],"license":"MIT","category":"analytics","readme_excerpt":"@nuxtjs/gtm [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Checks][checks-src]][checks-href] [![Codecov][codecov-src]][codecov-href] [![License][license-src]][license-href] Google Tag Manager Module for Nuxt.js 📖 Release Notes ℹ️ If coming from v1 ( @nuxtjs/google-tag-manager ) please read v2 release notes. Setup 1. Add @nuxtjs/gtm dependency to your project 2. Add @nuxtjs/gtm to the modules section of nuxt.config.js Runtime Config You can use runtime config if need to use dynamic environment variables in production. Otherwise, the options will be hardcoded during the build and won't be read from nuxt.config anymore. Options Defaults: enabled GTM module uses a debug-only version of $gtm during development ( nuxt dev ). You can explicitly enable or disable it using enabled option: debug Whether $gtm API calls like init and push are logged to the console. Manual GTM Initialization There are several use cases that you may need more control over initialization: - Block Google Tag Manager before user directly allows (GDPR realisation or other) - Dynamic ID based on request path or domain - Initialize with multi containers - Enable GTM on page level nuxt.config.js : plugins/gtm.js : - Note: All events will be still buffered in data layer but won't send until init() method getting called. - Note: Please consult with Google Tag Manager Docs for more information caveats using multiple containers. Router Integration You","default_branch":null,"files":null,"tree":[],"storefront":"/r/nuxt-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nuxt-community/gtm-module/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}