PageSourceSearch

https://www.integrativenutrition.com/hubfs/hub_generated/template_…/1790261611780/template_params.min.js

js integrativenutrition.com collected 2026-09-24 17:50:32 UTC 3,171 bytes, 2 lines download raw bytes

1(()=>{const trackingParamKeys=["adagencytoken","affid","ambassadorID","erefer","gbraid","gclid","msclkid","utm_channel","wbraid"],sourceMappings={chopraeducation:"HealCo"},{hostname:hostname,search:search}=window.location,hostnameParts=hostname.split("."),subdomain=hostnameParts.length>2?hostnameParts[hostnameParts.length-3]:"",isSourceSubdomain=Object.entries(sourceMappings).some(([key])=>key===subdomain),defaultCookieName=IIN.cookies.trackingCookie,queryString=search.startsWith("?")?search.slice(1):search,urlParams=IIN.utilities.makeObjectFromKeyValueString(queryString),paramSource=urlParams?.source,excludedParams=["discount_code","event_id","fbclid","gtm_debug","hs_preview","hsDebug","hsLang"],TARGET_URL="https://store.integrativenutrition.com",setCookieData=name=>{const newData=(()=>{const data={};Object.entries(urlParams).forEach(([key,value])=>{excludedParams.some(param=>param===key)||(data[key]=value)}),isSourceSubdomain&&!paramSource&&(data.source=sourceMappings[subdomain]);const{host:host,pathname:pathname,protocol:protocol}=window.location;return Object.keys(data).length?(data.url=`${protocol}//${host}${pathname}`,data):null})();if(null==newData)return;const encodedData=encodeURIComponent(JSON.stringify(newData));IIN.cookies.setCookie(name,encodedData,30)},updateLinks=data=>{if(!data)return;document.querySelectorAll(`a[href^='${TARGET_URL}']`).forEach(link=>((link,params,newPathname)=>{if(!link||!params)return;let newParams,newUrl,oldPathname;try{const oldUrl=link.href,linkQuery=link.search.startsWith("?")?link.search.slice(1):link.search;newParams=IIN.utilities.makeObjectFromKeyValueString(linkQuery),newUrl=new URL(newPathname?TARGET_URL:oldUrl),oldPathname=new URL(oldUrl).pathname}catch{return}Object.entries(params).forEach(([key,value])=>{(value||0===value)&&(newParams[key]=value)}),newPathname?newUrl.pathname=newPathname:oldPathname&&(newUrl.pathname=oldPathname),newUrl.search=IIN.utilities.makeKeyValueStringFromObject(newParams),link.href=newUrl})(link,data))},cookieData=(name=>{const existingData=IIN.cookies.getCookieObject(name),shouldReset=trackingParamKeys.some(key=>{const param=urlParams[key];return Boolean(param)||0===param});existingData&&shouldReset?IIN.cookies.deleteCookie(name):existingData&&IIN.cookies.extendCookie(name,30),!existingData||shouldReset?setCookieData(name):paramSource&&((name,dayCount)=>{const data=IIN.cookies.getCookieObject(name),localSource=data?.source;if(!isSourceSubdomain||localSource||!paramSource)return;const newData=encodeURIComponent(JSON.stringify({...data,source:sourceMappings[subdomain]}));IIN.cookies.deleteCookie(name),IIN.cookies.setCookie(name,newData,dayCount)})(name,30)})(defaultCookieName);window.addEventListener("load",()=>{updateLinks(cookieData)});const extendCookie=()=>{IIN.cookies.extendCookie(defaultCookieName,30)};["beforeunload","mousedown"].forEach(extensionEvent=>{window.addEventListener(extensionEvent,extendCookie)});window.addEventListener("scroll",IIN.helpers.debounce(extendCookie,750))})();
2//# sourceURL=https://23273748.fs1.hubspotusercontent-na1.net/hubfs/23273748/hub_generated/template_assets/1/165454931586/1790261611780/template_params.js

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.