Commit acbda1f7 authored by Jean Rabreau's avatar Jean Rabreau
Browse files

matomo install and config for prod

parent 6632e9dc
NODE_ENV=production
VUE_APP_NAME=pount
VUE_APP_LOGO=https://gitlab.com/uploads/-/system/project/avatar/18299282/pount-front-neunoeuil.png
VUE_APP_AXIOS_BASE_URL=https://pount-api.app.unistra.fr/api/
VUE_APP_SENTRY_TAG=prod
VUE_APP_MATOMO_SERVER=https://matomo-test.app.unistra.fr
VUE_APP_MATOMO_SITE_ID=16
VUE_APP_MATOMO_DEBUG=false
{
"name": "pount",
"version": "0.4.0",
"version": "0.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -16329,6 +16329,11 @@
}
}
},
"vue-matomo": {
"version": "3.14.0-0",
"resolved": "https://registry.npmjs.org/vue-matomo/-/vue-matomo-3.14.0-0.tgz",
"integrity": "sha512-i1IkZGSXNY84zg1gVU8TOuaqajYDWQYl4Vs7M1mEb21cNhlMZKUxxgElvj+xmv7ytYUc/6ekZbxIS+y6W4qTMQ=="
},
"vue-router": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz",
......
......@@ -10,12 +10,23 @@ import './plugins/unistra-formbuilder'
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations'
import VueMatomo from 'vue-matomo'
import '@/components'
import '@/layouts'
if (process.env.VUE_APP_MATOMO_SERVER && process.env.VUE_APP_MATOMO_SITE_ID) {
const MatomoOptions = {
router,
host: process.env.VUE_APP_MATOMO_SERVER,
siteId: process.env.VUE_APP_MATOMO_SITE_ID,
debug: process.env.VUE_APP_MATOMO_DEBUG
}
Vue.use(VueMatomo, MatomoOptions)
}
const isProduction = process.env.NODE_ENV === 'production'
Vue.config.productionTip = isProduction
Vue.config.productionTip = false
// use a true logger, because console.log(...) only goes so far
import {initialize} from './plugins/vuejs-logger'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment