ciao, no, non ho cambiato il codice dei banner, uso sempre lo script indicato da voi nel pannello di controllo, ho solo personalizzato lo script di iubenda per aggiornarlo alle mie preferenze e aggiunto l'anti ad-block di google.
Codice:
<div class="banner hide-for-small">
<div class="banner1" style="float:left">
<script>!function(d,l,e,s,c){e=d.createElement("script");e.src="//ad.altervista.org/js.ad/size=300X250/?ref="+encodeURIComponent(l.hostname+l.pathname)+"&r="+Date.now();s=d.scripts;c=d.currentScript||s[s.length-1];c.parentNode.insertBefore(e,c)}(document,location)</script>
</div>
<div class="banner2 hide-for-small hide-for-medium" style="float:left">
<script>!function(d,l,e,s,c){e=d.createElement("script");e.src="//ad.altervista.org/js2.ad/size=300X250/?ref="+encodeURIComponent(l.hostname+l.pathname)+"&r="+Date.now();s=d.scripts;c=d.currentScript||s[s.length-1];c.parentNode.insertBefore(e,c)}(document,location)</script>
</div>
</div>
Codice:
<script async src="https://fundingchoicesmessages.google.com/i/pub-9210072242964970?ers=1" nonce="0ahBPnjVI7EPZI-Uo_HQHg"></script><script nonce="0ahBPnjVI7EPZI-Uo_HQHg">(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();</script>
<link rel="preload" as="script" href="https://cdn.iubenda.com/cs/iubenda_cs.js"/>
<link rel="preload" as="script" href="https://cdn.iubenda.com/cs/tcf/stub-v2.js"/>
<link rel="preload" as="script" href="https://cdn.iubenda.com/cs/tcf/safe-tcf-v2.js"/>
<script>
(_iub=self._iub||[]).csConfiguration={
cookiePolicyId: 31877247,
siteId: 3304931,
localConsentDomain: 'golarion.altervista.org',
timeoutLoadConfiguration: 30000,
lang: 'it',
enableTcf: true,
tcfVersion: 2,
tcfPurposes: {
"2": "consent_only",
"3": "consent_only",
"4": "consent_only",
"5": "consent_only",
"6": "consent_only",
"7": "consent_only",
"8": "consent_only",
"9": "consent_only",
"10": "consent_only"
},
invalidateConsentWithoutLog: true,
googleAdditionalConsentMode: true,
perPurposeConsent:true,
banner: {
position: "bottom",
explicitWithdrawal:true,
listPurposes:true,
acceptButtonDisplay: true,
rejectButtonDisplay: true,
customizeButtonDisplay: true,
fontSizeBody: "14px",
},
}
</script>
<script async src="//cdn.iubenda.com/cs/tcf/stub-v2.js"></script>
<script async src="//cdn.iubenda.com/cs/tcf/safe-tcf-v2.js"></script>
<script async src="https://cdn.iubenda.com/cs/iubenda_cs.js"></script>
<style>
@media (max-width: 639px) {
#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-rationale {
height: 55vh !important;
min-height: 320px !important;
}
@media print {
#iubenda-cs-banner.iubenda-cs-default .iubenda-cs-rationale {
display: none !important;
visibility: hidden !important;
}
}
}
</style>
grazie per il feedback, ma non ho capito cosa sia lo stub tcf puoi per cortesia specificarmi di quale linea di codice stiamo parlando?
mancano forse queste?
<script async src="//cdn.iubenda.com/cs/tcf/stub-v2.js"></script>
<script async src="//cdn.iubenda.com/cs/tcf/safe-tcf-v2.js"></script>
EDITO: aggiungendole in effetti ora sembra che funzioni devo fare più test al riguardo e vedere come va