PageSourceSearch

https://www.hampsteadpreowned.com/resources/taggbaa/chunks/setup-honda-gtm.d856e49341704a033a81.js

js hampsteadpreowned.com collected 2026-09-29 11:58:15 UTC 2,398 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaggbaa=self.webpackChunktaggbaa||[]).push([[542],{6457:function(e,t,n){n.d(t,{SL:function(){return o},Zn:function(){return r}});const a=[{oem:"honda",containerIds:["GTM-ND7WWDN"],location:"head"},{oem:"hyundai",containerIds:["GTM-T9QJJTD","GTM-WPGZWQGR"],location:"head"}];function o(e){return a.find(t=>t.oem===e.toLowerCase())}function r(e,t){if(function(e){const t=document.querySelectorAll('script[src*="googletagmanager.com/gtm.js"]');for(const n of t){const t=n.getAttribute("src")||"";if(e.containerIds.some(e=>t.includes(e)))return!0}return!1}(e))return;if(window.dataLayer=window.dataLayer||[],t?.length)for(const e of t)window.dataLayer.push(e);const n=document.getElementsByTagName("script")[0];if(!n?.parentNode)return void console.error("Cannot find script element to insert OEM GTM containers");const a=[...e.containerIds];let o=a.length;for(;o--;){const e=a[o],t=document.createElement("script");t.async=!0,t.src=`https://www.googletagmanager.com/gtm.js?id=${e}`,window.dataLayer.push({"gtm.start":Date.now(),event:"gtm.js"}),n.parentNode.insertBefore(t,n)}}},1707:function(e,t,n){n.r(t),n.d(t,{setUp:function(){return r}});var a=n(6457);let o=!1;function r(e,t){!function(e,t,n){n.usePageLoadDataLayer&&t?.pageLoadDataLayer&&(window._dl=t.pageLoadDataLayer),window.dataLayer=window.dataLayer||[],window.dataLayer.push(e);const r=(0,a.SL)(n.gtmConfigKey);r&&(0,a.Zn)(r),function(e=""){o||(o=!0,window.addEventListener("searchFilterUpdate",t=>{const n=t.detail;if(!n)return;const a=new URLSearchParams(n.filters),o=new URLSearchParams;for(const[e,t]of a)o.append(e.toLowerCase(),t);const r=o.get("bodytype")??"any",i=o.get("bodystyle")??"any",d=o.get("make")??"any",c=o.get("vehicleyear")??o.get("yearrange")??"any";let s=o.get("condition");if(!s){const e=/search(new|used)/i.exec(window.location.pathname);s=e?e[1]:"any"}let g=o.get("model")??"any",u="any";const w=o.get("modelandtrim");if(w){const e=w.split(":");g&&"any"!==g||(g=e[0]),e.length>1&&(u=e[1]||"any")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({[`${e}event`]:`${e}vehicle-search`,[`${e}VCategory`]:s,[`${e}VType`]:r,[`${e}Vmake`]:d,[`${e}Vmodel`]:g,[`${e}VTrim`]:u,[`${e}VBodystyle`]:i,[`${e}VYear`]:c,[`${e}Dealerid`]:window.DlronGlobal_DealerId,[`${e}Vviewed`]:n.count})}))}(n.prefix)}(e,t,{prefix:"autodata.honda.",gtmConfigKey:"honda",usePageLoadDataLayer:!1})}}}]);

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.