mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-25 09:16:15 -04:00
feat: added google analytics
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
parent
596753ce42
commit
a110a6b212
4 changed files with 15 additions and 0 deletions
8
src/plugins/vue-analytics.js
Normal file
8
src/plugins/vue-analytics.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Vue from 'vue'
|
||||
import VueAnalytics from 'vue-analytics'
|
||||
|
||||
if(process.env.VUE_APP_GANALYTICS){
|
||||
Vue.use(VueAnalytics, {
|
||||
id: process.env.VUE_APP_GANALYTICS
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue