Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CW2-34 Add Google Analytics #255

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"core-js": "^3.6.5",
"validator": "^13.1.1",
"vue": "^2.6.10",
"vue-gtag": "^2.0.1",
"vue-router": "^3.3.4",
"vuetify": "^2.3.4",
"webpack": "^4.43.0"
Expand All @@ -21,6 +22,7 @@
"@vue/cli-plugin-eslint": "~4.5.2",
"@vue/cli-service": "~4.5.2",
"@vue/eslint-config-airbnb": "^5.1.0",
"@vue/shared": "^3.4.32",
"@vue/test-utils": "^1.0.3",
"babel-eslint": "^10.0.1",
"css-loader": "^4.2.2",
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import Vue from 'vue';
import VueGtag from 'vue-gtag';
import App from './App';
import router from './plugins/router';
import vuetify from './plugins/vuetify';

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

Vue.use(VueGtag, {
// The G-tag is not a secret and is available to view by the public
config: { id: 'G-3D5099EXGN' },
});

new Vue({
router,
vuetify,
Expand Down
Loading
Loading