diff --git a/plugins/vue-matomo.js b/plugins/vue-matomo.js index 0b2cd388..bc812c10 100644 --- a/plugins/vue-matomo.js +++ b/plugins/vue-matomo.js @@ -2,9 +2,11 @@ import Vue from 'vue' import VueMatomo from 'vue-matomo' export default ({ app }) => { - Vue.use(VueMatomo, { - router: app.router, - host: 'https://matomo.avris.it', - siteId: 20, - }) + if (process.env.NODE_ENV === 'production') { + Vue.use(VueMatomo, { + router: app.router, + host: 'https://matomo.avris.it', + siteId: 20, + }) + } }