nuxt-google-tag-manager

0.1.0 • Public • Published

nuxt-google-tag-manager

npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style

Nuxt.js module for google tag manager, forked from official modules repo to add custom settings

📖 Release Notes

Features

The module features

Setup

  • Add nuxt-google-tag-manager dependency using yarn or npm to your project
  • Add nuxt-google-tag-manager to modules section of nuxt.config.js
{
  modules: [
    ['@nuxtjs/google-tag-manager', { id: 'GTM-XXXXXXX' }],
  ]
}

Options

id

  • Required Should be in form of GTM-XXXXXXX

Other options

{
  layer: 'dataLayer',
  env: {
    gtm_auth:        '...',
    gtm_preview:     '...',
    gtm_cookies_win: '...'
  },
  scriptURL: '//example.com',
  delay: 300 // (ms) the time delay to wait for page transition before firing event
}

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) DaxChen dd@daxchen.com

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-google-tag-manager

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

280 kB

Total Files

10

Last publish

Collaborators

  • daxchen