The weirdest uses of AI | Industry | Prosyscom USA

By Prosyscom
In October 10, 2018
162 Views

//if no cmp then execute as normal.
window.idguk = window.idguk || {};
(function(){
var hasCmp = typeof window.idguk.cmp !== ‘undefined’ && typeof window.idguk.cmp.pixelTracker !== ‘undefined’;
(function(promise){
promise.then(function(consentOk){
var isDebug = !!window.idguk.cmp.isDebug ? window.idguk.cmp.isDebug() : false;
if(isDebug)console.log(‘GDPR’,’facebook pixel tracker – consentOk’, consentOk);
if(!consentOk)return;
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version=’2.0′;n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,’script’,’https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘783301121827721’); // Insert your pixel ID here.
fbq(‘track’, ‘PageView’);
if(isDebug)console.log(‘GDPR’,’facebook pixel tracker fired’);
});
})(
hasCmp ? window.idguk.cmp.pixelTracker : {then:function(f){f(true);}}
);
})();

قالب وردپرس