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

Remove Google Analytics #290

Merged
merged 1 commit into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
VUE_APP_ACCOUNTS_BASE_URL=http://localhost:3000
VUE_APP_GOOGLE_ANALYTICS_ID=UA-00000000-0
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
VUE_APP_ACCOUNTS_BASE_URL=https://accounts.prolab.club
VUE_APP_GOOGLE_ANALYTICS_ID=UA-00000000-0
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 0 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
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';

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,
Expand Down
6 changes: 0 additions & 6 deletions src/store/modules/criticalError/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { exception } from 'vue-analytics';

export default {
namespaced: true,
state: {
Expand Down Expand Up @@ -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 });
},
},
Expand Down