1// Meta Pixel (Events Manager dataset "CardCompass Web"). Loaded with `defer` right after the 2// GA4 snippet on every page that has it, so window.gtag already exists. 3// Consent: same rule as the GA default line (saved cc_consent wins, else Europe/* timezones 4// opt in and everyone else is on with opt-out), and every gtag consent update that carries 5// ad_storage (cookie banner, privacy-policy opt-out) is followed. 6// Events: GA4 events the pages already fire are mirrored, so pages keep one set of calls. 7// No event parameters are forwarded (card names, amounts), only the event itself. 8(function () { 9 var PIXEL_ID = '2044412450295047'; 10 var MIRROR = { 11 hero_calc_use: ['trackCustom', 'CalculatorUse'], 12 quiz_complete: ['trackCustom', 'QuizComplete'], 13 sign_up: ['track', 'CompleteRegistration'], 14 newsletter_signup: ['track', 'Lead'], 15 apply_click: ['trackCustom', 'ApplyClick'] 16 }; 17 18 /* eslint-disable */ 19 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? 20 n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; 21 n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; 22 t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, 23 document,'script','https://connect.facebook.net/en_US/fbevents.js'); 24 /* eslint-enable */ 25 26 var consent; 27 try { 28 consent = localStorage.getItem('cc_consent') || 29 (/^Europe\//.test(Intl.DateTimeFormat().resolvedOptions().timeZone) ? 'denied' : 'granted'); 30 } catch (e) { consent = 'denied'; } 31 if (consent !== 'granted') fbq('consent', 'revoke'); 32 fbq('init', PIXEL_ID); 33 fbq('track', 'PageView'); 34 35 var gtag = window.gtag; 36 if (typeof gtag !== 'function') return; 37 window.gtag = function (cmd, name, params) { 38 if (cmd === 'event' && MIRROR[name]) fbq(MIRROR[name][0], MIRROR[name][1]); 39 if (cmd === 'consent' && name === 'update' && params && params.ad_storage) { 40 fbq('consent', params.ad_storage === 'granted' ? 'grant' : 'revoke'); 41 } 42 return gtag.apply(this, arguments); 43 }; 44})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.