Skip to content

Commit 2cb973a

Browse files
committed
Add Google Analytics
1 parent 33ae634 commit 2cb973a

File tree

3 files changed

+674
-323
lines changed

3 files changed

+674
-323
lines changed

frontend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"core-js": "^3.6.5",
1313
"validator": "^13.1.1",
1414
"vue": "^2.6.10",
15+
"vue-gtag": "^2.0.1",
1516
"vue-router": "^3.3.4",
1617
"vuetify": "^2.3.4",
1718
"webpack": "^4.43.0"
@@ -21,6 +22,7 @@
2122
"@vue/cli-plugin-eslint": "~4.5.2",
2223
"@vue/cli-service": "~4.5.2",
2324
"@vue/eslint-config-airbnb": "^5.1.0",
25+
"@vue/shared": "^3.4.32",
2426
"@vue/test-utils": "^1.0.3",
2527
"babel-eslint": "^10.0.1",
2628
"css-loader": "^4.2.2",

frontend/src/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import Vue from 'vue';
2+
import VueGtag from 'vue-gtag';
23
import App from './App';
34
import router from './plugins/router';
45
import vuetify from './plugins/vuetify';
56

67
Vue.config.productionTip = false;
78
// Vue.prototype.$log = console.log;
89

10+
Vue.use(VueGtag, {
11+
// The G-tag is not a secret and is available to view by the public
12+
config: { id: 'G-3D5099EXGN' },
13+
});
14+
915
new Vue({
1016
router,
1117
vuetify,

0 commit comments

Comments
 (0)