Turn off during development

Stop sending hit to your domain during development

Example:

Vue.use(VueAnalytics, {
  id: 'UA-XXX-X',
  debug: {
    sendHitTask: false
  }
})

or assign directly your NODE_ENV variable to enable/disable it automatically

Vue.use(VueAnalytics, {
  id: 'UA-XXX-X',
  debug: {
    sendHitTask: process.env.NODE_ENV === 'production'
  }
})

Google Analytics docs: debugging

results matching ""

    No results matching ""