Sayfanızın Head Başlığı altına ekleyebilirisiniz.
Sayfanıza HTML Javascirpt olarak ekleyebilirisiniz.
Google adsense Çerez Politikası HTML Kodu
Google adsense uyumludur.
<!– Çerez Politikası Bildirimi –>
<div id=”cookieConsent” style=”position: fixed; bottom: 0; left: 0; right: 0; background-color: rgba(0, 0, 0, 0.8); color: white; padding: 15px 10px; z-index: 9999; display: none; text-align: center;”>
Bu site çerezler kullanmaktadır. Daha fazla bilgi almak için <a href=”/p/privacy-policy.html” target=”_blank” style=”color: yellow;”>Gizlilik Politikamızı</a> inceleyebilirsiniz. <button id=”acceptCookie” style=”margin-left: 10px; background-color: yellow; color: black; border: none; padding: 5px 10px; cursor: pointer;”>Kabul Et</button>
</div>
<script>
// Çerez ayarı ve kontrol
function getCookie(name) {
let value = “; ” + document.cookie;
let parts = value.split(“; ” + name + “=”);
if (parts.length === 2) return parts.pop().split(“;”).shift();
}
function setCookie(name, value, days) {
let expires = “”;
if (days) {
let date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = “; expires=” + date.toUTCString();
}
document.cookie = name + “=” + (value || “”) + expires + “; path=/”;
}
// Çerez onayı kontrolü
window.onload = function() {
if (!getCookie(“cookieConsent”)) {
document.getElementById(“cookieConsent”).style.display = “block”;
}
document.getElementById(“acceptCookie”).onclick = function() {
setCookie(“cookieConsent”, “accepted”, 365);
document.getElementById(“cookieConsent”).style.display = “none”;
};
};
</script>

