Forum
Welcome, Guest
Please Login to access forum.
Seznam.cz retargeting code and GDPR (1 viewing) 
Go to bottom
TOPIC: Seznam.cz retargeting code and GDPR
#8187
John Dagelmore
Admin
Posts: 3746
User Online Now
Seznam.cz retargeting code and GDPR Karma: 80  
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 */
 
Logged Logged  
  The administrator has disabled public write access.
Go to top