mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-11-07 23:43:26 +00:00
feat: added google analytics
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user