// Define dataLayer and the gtag function. window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} // Fonction pour mettre tous les arguments en 'denied' gtag('consent', 'default', { 'ad_storage': 'denied', 'analytics_storage': 'denied', 'functionality_storage': 'denied', 'personalization_storage': 'denied' }); // Fonction pour mettre à jour tous les consentements en 'granted' function consentGrantedAll() { gtag('consent', 'update', { 'ad_storage': 'granted', 'analytics_storage': 'granted', 'functionality_storage': 'granted', 'personalization_storage': 'granted' }); } consentGrantedAll();