Skip to content

Commit

Permalink
Get Google analytics ID from the CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeezley committed Jan 10, 2020
1 parent c03a4a4 commit 4d2e225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/main.js
Expand Up @@ -31,8 +31,8 @@ if (process.env.NODE_ENV === 'production') {
}

Vue.use(VueGtag, {
config: { id: 'UA-6042509-40' },
enabled: process.env.NODE_ENV === 'production',
config: { id: process.env.VUE_APP_GOOGLE_ANALYTICS_ID },
enabled: process.env.NODE_ENV === 'production' && process.env.VUE_APP_GOOGLE_ANALYTICS_ID,
}, router);

new Vue({
Expand Down

0 comments on commit 4d2e225

Please sign in to comment.