Turn off during development

Stop sending hit to your domain during development

Example:

  1. Vue.use(VueAnalytics, {
  2. id: 'UA-XXX-X',
  3. debug: {
  4. sendHitTask: false
  5. }
  6. })

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

  1. Vue.use(VueAnalytics, {
  2. id: 'UA-XXX-X',
  3. debug: {
  4. sendHitTask: process.env.NODE_ENV === 'production'
  5. }
  6. })

Google Analytics docs: debugging