0.1.0 • Published 6 years ago

nuxt-google-tag-manager v0.1.0

Weekly downloads
12
License
MIT
Repository
github
Last release
6 years ago

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