浏览代码

test matomo

Olivier Massot 7 月之前
父节点
当前提交
c685b09c4a
共有 1 个文件被更改,包括 9 次插入2 次删除
  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