В момента няма излъчване
Реклама
var fortrigger = function(tcData, success) {
console.log('Script event listener in');
if(tcData.purpose.consents[1] && tcData.purpose.consents[3] && tcData.purpose.consents[4] && tcData.purpose.consents[8] && tcData.purpose.consents[10]){
//1,3,4 + 29 and 30 from custom purposes
window.dataLayer.push({'event': 'TCF2 - User Eligible'});
console.log('Script Event fired TCF2 - User Eligible');
} else {
window.dataLayer.push({'event': 'TCF2 - User NOT Eligible'});
console.log('Script Not eligible');
}
};
setTimeout(function() {
__tcfapi('addEventListener', 2, fortrigger);
}, 700);