(function(){ var WA='AW-783206206/bvgUCP6dtakdEL6Ou_UC', CALL='AW-783206206/kXnSCIGetakdEL6Ou_UC', LEAD='AW-783206206/WOQICISetakdEL6Ou_UC'; function conv(id){ if(typeof gtag==='function'){ gtag('event','conversion',{'send_to':id,'value':1.0,'currency':'USD'}); } } document.addEventListener('click', function(e){ var a = e.target && e.target.closest ? e.target.closest('a[href]') : null; if(!a) return; var h = (a.getAttribute('href')||'').toLowerCase(); if(h.indexOf('tel:')===0){ conv(CALL); } else if(h.indexOf('wa.me')>-1 || h.indexOf('whatsapp')>-1){ conv(WA); } }, true); function bindLead(){ if(window.jQuery){ jQuery(document).on('submit_success', function(){ conv(LEAD); }); } } if(document.readyState==='loading'){ document.addEventListener('DOMContentLoaded', bindLead); } else { bindLead(); } })();
تخطي إلى المحتوى الرئيسي