Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit 03e6d8d

Browse files
authored
Merge pull request #290 from ProgrammingLab/gedorinku/remove-ga
Remove Google Analytics
2 parents ee351f6 + e0d1c54 commit 03e6d8d

File tree

7 files changed

+0
-22
lines changed

7 files changed

+0
-22
lines changed

.env.development

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
VUE_APP_ACCOUNTS_BASE_URL=http://localhost:3000
2-
VUE_APP_GOOGLE_ANALYTICS_ID=UA-00000000-0

.env.production

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
VUE_APP_ACCOUNTS_BASE_URL=https://accounts.prolab.club
2-
VUE_APP_GOOGLE_ANALYTICS_ID=UA-00000000-0

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ node_js:
33
- 'stable'
44

55
script:
6-
- echo VUE_APP_GOOGLE_ANALYTICS_ID=$GOOGLE_ANALYTICS_ID > .env.production.local
76
- npm run build
87
- npm run lint
98

package-lock.json

-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"moment": "^2.24.0",
1414
"rxjs": "^6.5.1",
1515
"vue": "^2.6.10",
16-
"vue-analytics": "^5.16.4",
1716
"vue-meta": "^1.6.0",
1817
"vue-multiselect": "^2.1.6",
1918
"vue-router": "^3.0.6",

src/main.js

-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
import Vue from 'vue';
22
import Meta from 'vue-meta';
33
import VueRx from 'vue-rx';
4-
import VueAnalytics from 'vue-analytics';
54
import App from './App.vue';
65
import router from './router';
76
import store from './store';
87

98
Vue.config.productionTip = false;
109
Vue.use(Meta);
1110
Vue.use(VueRx);
12-
Vue.use(
13-
VueAnalytics, {
14-
id: process.env.VUE_APP_GOOGLE_ANALYTICS_ID,
15-
router,
16-
},
17-
);
1811

1912
new Vue({
2013
router,

src/store/modules/criticalError/index.js

-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { exception } from 'vue-analytics';
2-
31
export default {
42
namespaced: true,
53
state: {
@@ -28,16 +26,12 @@ export default {
2826
if (!error.response) {
2927
const number = '';
3028
const message = 'Connection refused';
31-
exception(message);
3229
commit('setError', { number, message });
3330
return;
3431
}
3532

3633
const number = error.response.status;
3734
const message = error.response.data.message || error.response.statusText;
38-
if (number >= 500 && number < 600) {
39-
exception(error);
40-
}
4135
commit('setError', { number, message });
4236
},
4337
},

0 commit comments

Comments
 (0)