| 12345678910111213141516171819202122232425 |
- import VueMatomo from 'vue-matomo'
- const OPENTALENT_PROD_ID = 196
- const OPENTALENT_TEST_ID = 197
- export default defineNuxtPlugin((nuxtApp) => {
- const router = useRouter()
- // @see https://github.com/AmazingDreams/vue-matomo
- nuxtApp.vueApp.use(VueMatomo, {
- router,
- host: 'https://stats.2iopenservice.com/',
- siteId:
- process.env.NODE_ENV === 'production'
- ? OPENTALENT_PROD_ID
- : OPENTALENT_TEST_ID,
- enableLinkTracking: true,
- requireConsent: false, // Mettre à true si vous avez besoin du consentement RGPD
- trackInitialView: true,
- disableCookies: false, // Mettre à true pour respecter certaines règles RGPD
- requireCookieConsent: false, // Mettre à true pour demander le consentement pour les cookies
- debug: process.env.NODE_ENV !== 'production',
- trackSiteSearch: true,
- })
- })
|