Browse Source

test matomo

Olivier Massot 7 tháng trước cách đây
mục cha
commit
c685b09c4a
1 tập tin đã thay đổi với 9 bổ sung2 xóa
  1. 9 2
      plugins/matomo.client.ts

+ 9 - 2
plugins/matomo.client.ts

@@ -2,13 +2,20 @@ import VueMatomo from 'vue-matomo'
 
 const OPENTALENT_PROD_ID = 196
 const OPENTALENT_TEST5_ID = 197
+const OPENTALENT_LOCAL_ID = 197
 
 export default defineNuxtPlugin((nuxtApp) => {
   // @see https://github.com/AmazingDreams/vue-matomo
   nuxtApp.vueApp.use(VueMatomo, {
     router: nuxtApp.router,
-    host: 'https://stats.2iopenservice.com/',
-    siteId: OPENTALENT_TEST5_ID
+    host: 'https://stats.2iopenservice.com',
+    siteId: OPENTALENT_LOCAL_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'
   })
 
   // window._paq.push(['trackPageView']); // Pour suivre les visites sur vos pages