PageSourceSearch

https://www.bostonproper.com/cdn/shop/t/1516/assets/bp-track-page.js?v=89286407019962503341790192827

js bostonproper.com collected 2026-09-25 18:47:35 UTC 4,074 bytes, 2 lines download raw bytes

1(function(){"use strict";if(window.__bpTrackPageWired)return;window.__bpTrackPageWired=!0;function push(eventName,extra){window.dataLayer=window.dataLayer||[];var payload={event:eventName};extra&&Object.keys(extra).forEach(function(k){payload[k]=extra[k]}),window.dataLayer.push(payload),window.__DL__&&(window.__DL__.lastEvent=eventName)}function pageType(){var t=window.__pageType__||"";if(t)return _pretty(t);var p=window.location.pathname;return p==="/"||p===""?"Homepage":p.indexOf("/products/")===0?"Product Detail":p.indexOf("/collections/")===0?"Site Browse":p.indexOf("/search")===0?"Search Results":p.indexOf("/cart")===0?"Cart":p.indexOf("/blogs/")===0?"Blog":p.indexOf("/pages/")===0?"Page":p.indexOf("/account")===0?"Account":"Other"}function _pretty(template){return template?template==="index"?"Homepage":template==="product"?"Product Detail":template.indexOf("collection")===0?"Site Browse":template==="search"?"Search Results":template==="cart"?"Cart":template.indexOf("article")===0||template.indexOf("blog")===0?"Blog":template.indexOf("page")===0?"Page":template.indexOf("customer")===0?"Account":"Other":"Other"}function eventLocation(){var p=window.location.pathname,t=(window.__pageType__||"").toLowerCase();return p.indexOf("/pages/digital-catalog")===0||t.indexOf("page.digital-catalog")===0?"Digital Catalog":p.indexOf("/collections/")===0||t.indexOf("collection")===0?"Product Listing":pageType()}function utmAid(){try{return new URL(window.location.href).searchParams.get("aid")||""}catch(_){return""}}function userDetails(){if(window.__bp_user_details__)return window.__bp_user_details__;if(typeof window.bpUserDetailsSync=="function")return window.bpUserDetailsSync();var cid=window.__customer_id__;return{log_state:cid?"Logged In":"Logged Out",user_id:null,customer_id:cid?String(cid):null,customer_type:window.__customer_type__||"new",orders_count:window.__orders_count__!=null?Number(window.__orders_count__):null,is_first_order:null,enhanced_conversion_data:window.__enhanced_conversion_data__||{},user_hashed_data:window.__user_hashed_data__||{}}}function fireAll(){var pt=pageType(),ft=window.__first_touch__||{};push("Begin DataLayer"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({page_details:null}),push("page_loaded",{page_details:{page_path:window.location.pathname,page:window.location.pathname+window.location.search,landing_page:ft.page||window.location.pathname,landing_page_type:ft.template?_pretty(ft.template):pt,utm_aid:utmAid(),event_location:eventLocation(),timestamp:String(Date.now()),event_id:Date.now()+"-"+Math.floor(Math.random()*1e9),user_details:userDetails()}});try{var SESSION_LANDED="bp_session_landed";sessionStorage.getItem(SESSION_LANDED)||(push("Landing",{pageType:pt}),sessionStorage.setItem(SESSION_LANDED,"1"))}catch(_){}var ecd=window.__enhanced_conversion_data__||{};push("Log State",{userId:window.__customer_id__||"",customerEmail:ecd.email||"",customerInfo:{firstName:ecd.first_name||"",lastName:ecd.last_name||"",address:ecd.street||"",city:ecd.city||"",province:ecd.state||"",zip:ecd.zip_code||"",country:ecd.country||"",phone:ecd.phone_number||"",totalOrders:window.__orders_count__||0},logState:window.__customer_id__?"Logged In":"Logged Out",customerType:window.__customer_type__||"new",currency:window.Shopify&&window.Shopify.currency&&window.Shopify.currency.active||"USD",firstLog:ft.timestamp||Date.now(),timestamp:Date.now(),pageType:pt}),(window.location.pathname==="/"||window.location.pathname==="")&&push("Homepage",{pageType:"Homepage"});var ptl=(window.__pageType__||"").toLowerCase();ptl.indexOf("article")===0&&push("Blog",{pageType:"Blog",title:document.title||""});try{localStorage.getItem("login_GA4")==="true"&&(window.bpTrack&&window.bpTrack.login&&window.bpTrack.login("email"),localStorage.removeItem("login_GA4"))}catch(_){}push("DataLayer Loaded")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",fireAll,{once:!0}):fireAll()})();
2//# sourceMappingURL=/cdn/shop/t/1516/assets/bp-track-page.js.map?v=89286407019962503341790192827

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.