0) { dataLayer.push({ ‘search_term’: searchTerm }); } if (errorMessage.length > 0) { dataLayer.push({ ‘error_message’: errorMessage }); } if (productId.length > 0) { dataLayer.push({ ‘productid’: productId, ‘product_price’: productPrice.toString(), ‘product_name’: productName, ‘product_category’: productCat, ‘stock_status’: stockStatus, ‘cart_price’: cartPrice.toString(), }); } if (pageType==’cart-page’||pageType==’contact-info-page’ ||pageType==’customer-info-page’||pageType == ‘billing-info-page’) { dataLayer.push({ ‘cart_items’:cartItems }); } if (pageType == ‘cart-page’ || pageType == ‘confirmation-page’) { if (cartTotal != null && cartPrice != null){ dataLayer.push({ ‘cart_total’: cartTotal.toString(), ‘cart_price’: cartPrice.toString(), ‘order_number’:orderNum, ‘shipping’ :shipAmount.toString(), ‘discount’ : discountAmount.toString() }); } } if (categoryId.length > 0) { dataLayer.push({ ‘categoryId’: categoryId }); } if (pageType == ‘category’){ if(categoryId == ”){ categoryId = pageName } dataLayer.push({ ‘categoryId’: categoryId }); } function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘UA-66077102-1’, { ‘send_page_view’: false }); ]]> ]]> 1) { CQuotient.cqeid=split_value[1]; } if (split_value.length > 2) { CQuotient.cqlid=split_value[2]; } } } } } CQuotient.getCQCookieId = function () { if(window.CQuotient.cqcid == ”) window.CQuotient.initFromCookies(); return window.CQuotient.cqcid; }; CQuotient.getCQUserId = function () { if(window.CQuotient.cquid == ”) window.CQuotient.initFromCookies(); return window.CQuotient.cquid; }; CQuotient.getCQHashedEmail = function () { if(window.CQuotient.cqeid == ”) window.CQuotient.initFromCookies(); return window.CQuotient.cqeid; }; CQuotient.getCQHashedLogin = function () { if(window.CQuotient.cqlid == ”) window.CQuotient.initFromCookies(); return window.CQuotient.cqlid; }; CQuotient.trackEventsFromAC = function (/* Object or Array */ events) { try { if (Object.prototype.toString.call(events) === “[object Array]”) { events.forEach(_trackASingleCQEvent); } else { CQuotient._trackASingleCQEvent(events); } } catch(err) {} }; CQuotient._trackASingleCQEvent = function ( /* Object */ event) { if (event && event.id) { if (event.type === dw.ac.EV_PRD_DETAIL) { CQuotient.trackViewProduct( {id:”, alt_id: event.id, type: ‘raw_sku’} ); } // not handling the other dw.ac.* events currently } }; CQuotient.trackViewProduct = function(/* Object */ cqParamData){ var cq_params = {}; cq_params.cookieId = CQuotient.getCQCookieId(); cq_params.userId = CQuotient.getCQUserId(); cq_params.emailId = CQuotient.getCQHashedEmail(); cq_params.loginId = CQuotient.getCQHashedLogin(); cq_params.product = cqParamData.product; cq_params.realm = cqParamData.realm; cq_params.siteId = cqParamData.siteId; cq_params.instanceType = cqParamData.instanceType; cq_params.locale = CQuotient.locale; if(CQuotient.sendActivity) { CQuotient.sendActivity(CQuotient.clientId, ‘viewProduct’, cq_params); } else { CQuotient.activities.push({activityType: ‘viewProduct’, parameters: cq_params}); } }; /* ]]]]> */ // –> ]]> 0)if(e&&”performance”in e&&e.performance&&”function”==typeof e.performance.setResourceTimingBufferSize)e.performance.setResourceTimingBufferSize();!function(){if(BOOMR=e.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var n=””==”true”?1:0,t=””,a=”y35ubdtii2scaylir2gq-f-0488d236b-clientnsv4-s.akamaihd.net”,i=”false”==”true”?2:1,o={“ak.v”:”32″,”ak.cp”:”1129104″,”ak.ai”:parseInt(“669368″,10),”ak.ol”:”0″,”ak.cr”:19,”ak.ipv”:4,”ak.proto”:”http/1.1″,”ak.rid”:”29c40fbc”,”ak.r”:42012,”ak.a2″:n,”ak.m”:”dsca”,”ak.n”:”essl”,”ak.bpcip”:”198.251.64.0″,”ak.cport”:34134,”ak.gh”:”104.70.164.28″,”ak.quicv”:””,”ak.tlsv”:”tls1.3″,”ak.0rtt”:””,”ak.csrc”:”-“,”ak.acc”:”reno”,”ak.t”:”1634242189″,”ak.ak”:”hOBiQwZUYzCg5VSAfCLimQ==90etczmYFa5dUtCuCr6WPcVPWLIvPUv2BUVpzvfjJKDVRzFDranlc4GrYP1X6zRZtbFpFuq4Y0/25XKha3EQ9xG8RbhV9TLe5YQ3OW3DUlWT7LVE/xj5w31HwRdOG2yzpfPUkoiGv2RTnkWMaZ1wqRYs7qIgFSEWjpjN/HY9l/HAlJt0An5d7HOVpQWRPu7gu5mUYRWRanABeQ7b/ka4/nK7MC8C7Org85INSCzp+91Iaxj5RvG0enlWzfcC/nzGLW+9DvYiojU+waOs4iUdbnjRYWu+DItyumFP+lkMvtQeiuLwDy65GLbrn0e4pdM1zW2wLqxgT6IRfcHbsmFr01b/t0ZDHmNz/rPtq3p7uD6GJbq9vJC9gNFVjMBHJsWwboTSmkqZryGee5pqGtY9RY+o95/j9PiNVqg3vS1DJ54=”,”ak.pv”:”26″,”ak.dpoabenc”:””,”ak.tf”:i};if(“”!==t)o[“ak.ruds”]=t;var r={i:!1,av:function(n){var t=”http.initiator”;if(n&&(!n[t]||”spa_hard”===n[t]))o[“ak.feo”]=void 0!==e.aFeoApplied?1:0,BOOMR.addVar(o)},rv:function(){var e=[“ak.bpcip”,”ak.cport”,”ak.cr”,”ak.csrc”,”ak.gh”,”ak.ipv”,”ak.m”,”ak.n”,”ak.ol”,”ak.proto”,”ak.quicv”,”ak.tlsv”,”ak.0rtt”,”ak.r”,”ak.acc”,”ak.t”,”ak.tf”];BOOMR.removeVar(e)}};BOOMR.plugins.AK={akVars:o,akDNSPreFetchDomain:a,init:function(){if(!r.i){var e=BOOMR.subscribe;e(“before_beacon”,r.av,null,null),e(“onbeacon”,r.rv,null,null),r.i=!0}return this},is_complete:function(){return!0}}}}()}(window);]]> Skip to main content Skip to footer content //common/scripts.isml window.Urls = {“productHitTile”:”/on/demandware.store/Sites-athome-sfra-Site/default/Tile-Show?pid=”}; window.dataLayer = window.dataLayer || []; window.PWR_INCLUDE=true; var recaptchaurl = “https://www.google.com/recaptcha/api.js?onload=grecaptcha_callback”; var pageType = “homepage”; var pageCat = “”; var pageName = “”; var searchTerm = “”; var errorMessage = “”; var productId = “”; var productPrice = “”; var productName = “”; var productCat = “”; var stockStatus = “”; var cartTotal = “”; var cartPrice = “”; var categoryId = “”; var cartItems = “”; var emailID = “”; var orderNum = “”; var shipAmount = “”; var discountAmount = “”; dataLayer.push({ ’email_id’: emailID }); dataLayer.push({ ‘page_type’: pageType, ‘page_category’: pageCat, ‘page_name’: pageName }); if (searchTerm.length > 0) { dataLayer.push({ ‘search_term’: searchTerm }); } if (errorMessage.length > 0) { dataLayer.push({ ‘error_message’: errorMessage }); } if (productId.length > 0) { dataLayer.push({ ‘productid’: productId, ‘product_price’: productPrice.toString(), ‘product_name’: productName, ‘product_category’: productCat, ‘stock_status’: stockStatus, ‘cart_price’: cartPrice.toString(), }); } if (pageType==’cart-page’||pageType==’contact-info-page’ ||pageType==’customer-info-page’||pageType == ‘billing-info-page’) { dataLayer.push({ ‘cart_items’:cartItems }); } if (pageType == ‘cart-page’ || pageType == ‘confirmation-page’) { if (cartTotal != null && cartPrice != null){ dataLayer.push({ ‘cart_total’: cartTotal.toString(), ‘cart_price’: cartPrice.toString(), ‘order_number’:orderNum, ‘shipping’ :shipAmount.toString(), ‘discount’ : discountAmount.toString() }); } } if (categoryId.length > 0) { dataLayer.push({ ‘categoryId’: categoryId }); } if (pageType == ‘category’){ if(categoryId == ”){ categoryId = pageName } dataLayer.push({ ‘categoryId’: categoryId }); } function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘UA-66077102-1’, { ‘send_page_view’: false }); //
Sign In to add items to your wishlist
0){ var x = url.substring(url.indexOf(‘sfmc_u’)).split(‘=’)[1]; SFMCID = x.indexOf(‘&’)>0 ? x.substring(0, x.indexOf(‘&’)) : x; window.localStorage.setItem(‘sfmc_id’, SFMCID); } if(window.localStorage.getItem(‘sfmc_id’)===null) { window.localStorage.setItem(‘sfmc_id’,”) } var storeId = “Kansas-Wichita”; var storeNumber = $(“meta[name=’quickview-store-number’]”)[0].content; var profile = {} profile.newOrRepeat=neworrepeat; profile.loginStatus=loginStatus != ‘null’ ? loginStatus : ‘Anonymous’; if(window.localStorage.getItem(‘loyalty_level’).length>0){ profile.loyaltyLevel=window.localStorage.getItem(‘loyalty_level’) } if(window.localStorage.getItem(‘global_Party_ID’).length>0){ profile.GPID=window.localStorage.getItem(‘global_Party_ID’); } if(window.localStorage.getItem(‘sfmc_id’).length>0){ profile.SFMCID=window.localStorage.getItem(‘sfmc_id’); } if(window.localStorage.getItem(‘customer_ID’).length>0){ profile.CCID=window.localStorage.getItem(‘customer_ID’); } profile.customerGroups=customerGroupdata; window.adobeDataLayer = window.adobeDataLayer || []; window.adobeDataLayer.push({ ‘user’: { ‘profile’:profile, ‘store’:{ ‘storeId’:storeId, ‘storeNumber’:storeNumber } } }); var CCID = window.localStorage.getItem(‘customer_ID’); if(CCID.length>0){ certona.CCID = CCID } ]]> 0 || pageAction == ‘RedirectURL-Start’ || pageAction == ‘CSRF-Fail’) { window.adobeDataLayer.push({ ‘event’:’pageLoad’, // event key to signify a page load event ‘page’:{ ‘pageInfo’:{ ‘pageName’:pageName, ‘pageType’:pageType // refers to prop1 value }, ‘category’:{ ‘errorPage’:’errorPage’ }} }); } else{ if(pageAction != ‘Product-Show’){ pageLoadEvent(); } } function pageLoadEvent(){ var pageLoadObj = { ‘event’:’pageLoad’, // event key to signify a page load event ‘page’:{ ‘pageInfo’: { ‘pageName’:pageName, ‘pageType’:pageType }, ‘category’: { ‘primaryCategory’:primaryCategory, // refers to site section ‘hierarchy1’:heirarchy1, ‘hierarchy2’:heirarchy2, ‘hierarchy3’:heirarchy3, ‘hierarchy4’:heirarchy4, ‘hierarchyCurrent’:heirarchycurrent } } } if (upsellerEnabled && pageAction === ‘Product-Show’) { var available = !!document.getElementById(‘upsellerModal’); Object.assign(pageLoadObj, { ‘UpsellerButtonAvailable’: available, ‘UpsellerButtonPresent’: available }); } window.adobeDataLayer.push(pageLoadObj); } //AHD-1117 – trigger formStart event on landing in login orcart login pages $( ‘#header-login-form-email,#wishlist-login-form-email,#mobileheader-login-form-email,#login-form-email’).on(‘click’,function () { window.adobeDataLayer.push({ ‘event’:’formStart’, // event key ‘form’: { ‘formName’:’login’ } }); }); //AHD 1194 – Rakuten conversion tag if (pageAction == ‘Checkout-Confirmation’) { var customerStatus =”; window.adobeDataLayer.forEach(function (data) { if(data.user!=null && data.user.profile.newOrRepeat!=null) { customerStatus = data.user.profile.newOrRepeat; if(customerStatus===’new’) { customerStatus =’New’; }else if (customerStatus===’repeat’) { customerStatus =’Returning’; } } }); rm_trans = { displayConfig: {rdMID: ‘7875’}, orderid: orderNumber, currency: ‘USD’, customerStatus: ”, conversionType: ‘Sale’, customerID: window.localStorage.getItem(‘customer_ID’)!=null ? window.localStorage.getItem(‘customer_ID’):”, discountCode: discountCode, discountAmount: discountAmount!=’0′?Number(discountAmount):0.00, taxAmount: tax!=”?Number(tax):tax, lineitems: lineItems }; // start rakuten conversion tag !function(a,b,c){ var d=a.rakutenDataLayerName||”rakutenDataLayer”;a[d]=a[d]||{},a[d].events=a[d].events||{},a[d].events.SPIVersion=”3.4.1″,a[d].Sale=a[d].Sale||{},a[d].Sale.Basket=a[d].Sale.Basket||{},c.Ready=a[d].Sale.Basket.Ready&&a[d].Sale.Basket.Ready+1||1,a[d].Sale.Basket=c; var e=function(a){for(var c,d=a+”=”,e=b.cookie.split(“;”),f=0;f
Source