PageSourceSearch

https://nypost.com/wp-content/themes/gtf/client/build/js/browser-tracking.bundle.js?ver=b2604267635594a54448

js nypost.com collected 2026-09-24 07:33:48 UTC 2,902 bytes, 1 lines download raw bytes

1!function(){"use strict";var e=(...e)=>e.filter(e=>e instanceof HTMLAnchorElement).at(0)?.href??"";const t=e=>{const t=window.gtfScripts?.nypost_wp_vars?.nypostSite??"";if(new RegExp(`https?://go.${t}.com/`).test(e))try{return new URL(e).searchParams.get("url")??e}catch{return e}return e};function o(e,...t){if("undefined"==typeof window||"gtf-console"!==window.location.hash.replace(/^#/,""))return;const o={log:"log",error:"error",warning:"warn",info:"info",debug:"debug"};void 0!==o[e]&&console[o[e]]("%cGTF","color:white; background-color: #E55842; font-weight: bold; padding: 2px 2px 0;",...t)}var n,i,r,s,a,c,d,l,g,u,_,p,v;const w="gtfCrashTracking",h=["edition","page_type","paid_user","post_id","primary_tag","section"];try{const m=sessionStorage.getItem(w),f=new URL(window.location.href),y=f.origin+f.pathname;if(m){let w={};try{w=JSON.parse(m)}catch(e){}const h=Date.now(),f=null!==(n=w.url)&&void 0!==n?n:"";((o,n=null,i=null)=>{const{event_name:r,...s}=o;Object.entries(s).forEach(([o,r])=>{s[o]=((o,n,i)=>{let r="";switch(o){case"ga_current_url":return encodeURI(window.location.href);case"click_time":return(new Date).toLocaleString();case"__href__":return r=e(n,i?.target),encodeURI(t(r));default:return o}})(String(r),n,i)});const a=window.ga4Dims??{},c={...s,...a,source_page_type:a.page_type??"",source_page:encodeURI(window.location.href),destination:n&&i?encodeURI(t(e(n,i.target))):""};r&&"undefined"!=typeof gtag&&gtag("event",r,c),window.optimizely=window.optimizely??[],window.optimizely.push({type:"event",eventName:"navclick_event__same_trigger_",properties:{Category:String(s.source_unit??"")}})})({event_name:"browser_crash",crashed_url:f,crashed_page_type:null!==(r=null===(i=w.ga4Dims)||void 0===i?void 0:i.page_type)&&void 0!==r?r:"",crashed_section:null!==(a=null===(s=w.ga4Dims)||void 0===s?void 0:s.section)&&void 0!==a?a:"",crashed_post_id:null!==(d=null===(c=w.ga4Dims)||void 0===c?void 0:c.post_id)&&void 0!==d?d:"",crashed_primary_tag:null!==(g=null===(l=w.ga4Dims)||void 0===l?void 0:l.primary_tag)&&void 0!==g?g:"",crashed_edition:null!==(_=null===(u=w.ga4Dims)||void 0===u?void 0:u.edition)&&void 0!==_?_:"",crashed_paid_user:null!==(v=null===(p=w.ga4Dims)||void 0===p?void 0:p.paid_user)&&void 0!==v?v:"",crash_stored_at:"number"==typeof w.storedAt?w.storedAt:0,crash_detected_at:h,crash_timespan_ms:"number"==typeof w.storedAt?h-w.storedAt:"",crash_recovery_url:y,crash_url_origin:y===f}),o("log","BROWSER CRASH: GA event triggered.",w)}sessionStorage.setItem(w,JSON.stringify({url:y,storedAt:Date.now(),ga4Dims:function(){var e;const t=null!==(e=window.ga4Dims)&&void 0!==e?e:{},o={};for(const e of h){const n=t[e];"string"!=typeof n&&"number"!=typeof n||""===n||(o[e]=n)}return o}()})),window.addEventListener("visibilitychange",()=>{try{sessionStorage.removeItem(w),o("log","Removing session storage",document.visibilityState)}catch(e){}})}catch(e){}}();

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.