Skip to content

Commit 9812481

Browse files
committed
Add GTag deps
1 parent 54d10d2 commit 9812481

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"bootstrap-vue": "^2.21.2",
1616
"sass": "^1.34.1",
1717
"sass-loader": "^12.0.0",
18-
"vue": "^2.5.21"
18+
"vue": "^2.5.21",
19+
"vue-gtag": "1.16.1"
1920
},
2021
"devDependencies": {
2122
"@vue/cli-plugin-babel": "^3.3.0",

website/src/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The Vue build version to load with the `import` command
22
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
33
import Vue from 'vue'
4+
import VueGtag from 'vue-gtag'
45
import App from './App'
56
import {
67
AlertPlugin,
@@ -20,6 +21,12 @@ import {
2021
import 'bootstrap/dist/css/bootstrap.css'
2122
import 'bootstrap-vue/dist/bootstrap-vue.css'
2223

24+
if (process.env.VUE_APP_GOOGLE_ANALYTICS_ID) {
25+
Vue.use(VueGtag, {
26+
config: { id: process.env.VUE_APP_GOOGLE_ANALYTICS_ID }
27+
})
28+
}
29+
2330
Vue.config.productionTip = false
2431

2532
Vue.use(AlertPlugin)

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12540,6 +12540,11 @@ vue-functional-data-merge@^3.1.0:
1254012540
resolved "https://registry.yarnpkg.com/vue-functional-data-merge/-/vue-functional-data-merge-3.1.0.tgz#08a7797583b7f35680587f8a1d51d729aa1dc657"
1254112541
integrity sha512-leT4kdJVQyeZNY1kmnS1xiUlQ9z1B/kdBFCILIjYYQDqZgLqCLa0UhjSSeRX6c3mUe6U5qYeM8LrEqkHJ1B4LA==
1254212542

12543+
12544+
version "1.16.1"
12545+
resolved "https://registry.yarnpkg.com/vue-gtag/-/vue-gtag-1.16.1.tgz#edb2f20ab4f6c4d4d372dfecf8c1fcc8ab890181"
12546+
integrity sha512-5vs0pSGxdqrfXqN1Qwt0ZFXG0iTYjRMu/saddc7QIC5yp+DKgjWQRpGYVa7Pq+KbThxwzzMfo0sGi7ISa6NowA==
12547+
1254312548
vue-hot-reload-api@^2.3.0:
1254412549
version "2.3.1"
1254512550
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.1.tgz#b2d3d95402a811602380783ea4f566eb875569a2"

0 commit comments

Comments
 (0)