cookieName = 'FZ_COOKIECONSENT' for (let level = 3; level <= 3; level ++) { if(localStorage.getItem(cookieName + '_' + level) && localStorage.getItem(cookieName + '_' + level) > Math.round(Date.now() / 1000)) { initGoogleAnalytics(); console.log('google analytics init') break; } } jQuery(document).on('user_privacy_changed',function(event,params) { console.log("event with params: " + params); if(params.level >= 3) { initGoogleAnalytics(); console.log('google analytics init via event'); } });


© 2021 Weingut Clauss. All rights reserved.