diff --git a/.env.development b/.env.development index ef52566..3b89a89 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1 @@ VUE_APP_ACCOUNTS_BASE_URL=http://localhost:3000 -VUE_APP_GOOGLE_ANALYTICS_ID=UA-00000000-0 diff --git a/.env.production b/.env.production index bb9ec40..3ce626c 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1 @@ VUE_APP_ACCOUNTS_BASE_URL=https://accounts.prolab.club -VUE_APP_GOOGLE_ANALYTICS_ID=UA-00000000-0 diff --git a/.travis.yml b/.travis.yml index 84c464d..08a72f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ node_js: - 'stable' script: - - echo VUE_APP_GOOGLE_ANALYTICS_ID=$GOOGLE_ANALYTICS_ID > .env.production.local - npm run build - npm run lint diff --git a/package-lock.json b/package-lock.json index 4eacc57..0eca7b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11659,11 +11659,6 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz", "integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==" }, - "vue-analytics": { - "version": "5.16.4", - "resolved": "https://registry.npmjs.org/vue-analytics/-/vue-analytics-5.16.4.tgz", - "integrity": "sha512-M67cUqpPeyk2rftrvlx2uU+BQ/C4E8SkF2Ct9LizOYUoTccZtCCJwhMJfQ3XL8xep6p3K8KYz58FzRWvx5zlPw==" - }, "vue-eslint-parser": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-2.0.3.tgz", diff --git a/package.json b/package.json index 049ed5f..5d21249 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ "moment": "^2.24.0", "rxjs": "^6.5.1", "vue": "^2.6.10", - "vue-analytics": "^5.16.4", "vue-meta": "^1.6.0", "vue-multiselect": "^2.1.6", "vue-router": "^3.0.6", diff --git a/src/main.js b/src/main.js index 62d7a1e..ed7fa74 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,6 @@ import Vue from 'vue'; import Meta from 'vue-meta'; import VueRx from 'vue-rx'; -import VueAnalytics from 'vue-analytics'; import App from './App.vue'; import router from './router'; import store from './store'; @@ -9,12 +8,6 @@ import store from './store'; Vue.config.productionTip = false; Vue.use(Meta); Vue.use(VueRx); -Vue.use( - VueAnalytics, { - id: process.env.VUE_APP_GOOGLE_ANALYTICS_ID, - router, - }, -); new Vue({ router, diff --git a/src/store/modules/criticalError/index.js b/src/store/modules/criticalError/index.js index 3432bca..86ea781 100644 --- a/src/store/modules/criticalError/index.js +++ b/src/store/modules/criticalError/index.js @@ -1,5 +1,3 @@ -import { exception } from 'vue-analytics'; - export default { namespaced: true, state: { @@ -28,16 +26,12 @@ export default { if (!error.response) { const number = ''; const message = 'Connection refused'; - exception(message); commit('setError', { number, message }); return; } const number = error.response.status; const message = error.response.data.message || error.response.statusText; - if (number >= 500 && number < 600) { - exception(error); - } commit('setError', { number, message }); }, },