Skip to content

Commit

Permalink
Add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
PenTest-duck committed Jul 18, 2024
1 parent 33ae634 commit 2cb973a
Show file tree
Hide file tree
Showing 3 changed files with 674 additions and 323 deletions.
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

0 comments on commit 2cb973a

Please sign in to comment.