matomo.client.ts 1023 B

12345678910111213141516171819202122232425262728
  1. import VueMatomo from 'vue-matomo'
  2. const OPENTALENT_PROD_ID = 196
  3. const OPENTALENT_TEST5_ID = 197
  4. const OPENTALENT_LOCAL_ID = 197
  5. export default defineNuxtPlugin((nuxtApp) => {
  6. // @see https://github.com/AmazingDreams/vue-matomo
  7. nuxtApp.vueApp.use(VueMatomo, {
  8. router: nuxtApp.router,
  9. host: 'https://stats.2iopenservice.com',
  10. siteId: OPENTALENT_LOCAL_ID,
  11. enableLinkTracking: true,
  12. requireConsent: false, // Mettre à true si vous avez besoin du consentement RGPD
  13. trackInitialView: true,
  14. disableCookies: false, // Mettre à true pour respecter certaines règles RGPD
  15. requireCookieConsent: false, // Mettre à true pour demander le consentement pour les cookies
  16. debug: process.env.NODE_ENV !== 'production'
  17. })
  18. // window._paq.push(['trackPageView']); // Pour suivre les visites sur vos pages
  19. // @see https://scripts.nuxt.com/scripts/analytics/matomo-analytics
  20. // useScriptMatomoAnalytics({
  21. // matomoUrl: 'https://stats.2iopenservice.com',
  22. // siteId: 196,
  23. // })
  24. })