(function (w, d, l) { 'use strict'; if (l.hostname !== 'www.greenfever.pt' || l.hash || w.__gfClarityInstitutionalLoaded) return; var approvedParameters = { utm_source: true, utm_medium: true, utm_campaign: true, utm_content: true, utm_term: true, gclid: true, msclkid: true, fbclid: true }; var parameters = new URLSearchParams(l.search); for (var pair of parameters) { if (!approvedParameters[pair[0]] || !/^[\w.~-]{1,128}$/.test(pair[1])) return; } function statisticsGranted() { var entry = d.cookie.split('; ').find(function (item) { return item.indexOf('privacy_embeds=') === 0; }); if (!entry) return false; var choices = decodeURIComponent(entry.slice('privacy_embeds='.length)).split(','); return choices.indexOf('consent') !== -1 && choices.indexOf('awb_snip_microsoft-clarity-institucional') !== -1; } function start() { if (!statisticsGranted() || w.__gfClarityInstitutionalLoaded) return; w.__gfClarityInstitutionalLoaded = true; w.clarity = w.clarity || function () { (w.clarity.q = w.clarity.q || []).push(arguments); }; w.clarity('consentv2', { ad_Storage: 'denied', analytics_Storage: 'granted' }); var script = d.createElement('script'); script.async = true; script.src = 'https://www.clarity.ms/tag/yof8mo2w96'; var first = d.getElementsByTagName('script')[0]; first.parentNode.insertBefore(script, first); } // O Avada grava privacy_embeds depois de libertar o snippet no mesmo clique. setTimeout(start, 0); function reconcileRevocation() { if (!w.__gfClarityInstitutionalLoaded || statisticsGranted()) return; w.clarity('consentv2', { ad_Storage: 'denied', analytics_Storage: 'denied' }); l.reload(); } function afterConsentAction(event) { var control = event.target.closest && event.target.closest('a,button,input'); if (control && control.matches('.fusion-privacy-bar-reject,.fusion-privacy-bar-acceptance,.fusion-privacy-bar-accept-all,input[name="consents[]"]')) { setTimeout(reconcileRevocation, 0); } } d.addEventListener('click', afterConsentAction, true); d.addEventListener('change', afterConsentAction, true); }(window, document, location));

About Diogo Costa GreenFever

Este autor ainda não preencheu nenhum detalhe.
So far Diogo Costa GreenFever has created 0 blog entries.
Go to Top