If you want to integrated the consent of GDPR with the retargeting code of seznam.cz, it's required to add a custom integration and custom script like the following one:
Code: |
/* START Custom code for GDPR Seznam.cz */
jQuery(function($){
$(document).on('click', 'a.cc-btn.cc-allow', function(){
console.log('Seznam.cz consent accepted');
window.sznIVA.IS.updateIdentities({
eid: null
});
var retargetingConf = {
rtgId: 31758,
consent: 1
};
window.rc.retargetingHit(retargetingConf);
});
$(document).on('click', 'a.cc-btn.cc-deny', function(){
console.log('Seznam.cz consent denied');
window.sznIVA.IS.updateIdentities({
eid: null
});
var retargetingConf = {
rtgId: 31758,
consent: 0
};
window.rc.retargetingHit(retargetingConf);
});
var gdprConsent = localStorage.getItem('hasConsented');
if(gdprConsent) {
console.log('Seznam.cz default consent accepted');
var retargetingConf = {
rtgId: 31758,
consent: 1
};
window.rc.retargetingHit(retargetingConf);
} else {
console.log('Seznam.cz default consent denied');
var retargetingConf = {
rtgId: 31758,
consent: 0
};
window.rc.retargetingHit(retargetingConf);
}
});
/* END Custom code for GDPR Seznam.cz */
|