(function() { function bxBootstrap() { var re = /bot|crawl|slurp|spider|mediapartners|headlesschrome|snap-prefetch|remotasks|woorank|uptime\.com|facebookexternalhit|facebookcatalog/i; if (re.test(navigator.userAgent) || navigator.userAgent == '') { return; } if (!(window.bouncex&&bouncex.website)) { var pushedData = []; if(window.bouncex && bouncex.push && bouncex.length){ pushedData = bouncex; } window.bouncex = {}; bouncex.pushedData = pushedData; bouncex.website = {"id":2002,"name":"BISSELL","cookie_name":"bounceClientVisit2002","domain":"bissell.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"//Fixes specificity issue on iOS AR + MM\nbouncex.addCss('html.bx-client-overlay-ios body.bx-client-overlay-ios {position: absolute !important;}', bouncex.head[0]);","force_https":false,"waypoints":false,"content_width":0,"gai":"UA-2249291-1","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":1,"gmp":0,"whitelist_check":0},"burls":[],"ple":false,"fbe":false,"ffs":"","mas":3,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"bouncex.log(\"vtestt04\")\nvar CLEAN_URL = bouncex.utils.url.allowParams(''),\n\tEXCLUDED_IDS = [\n\t\t'1548',\n\t\t'1650',\n\t\t'1650A',\n\t\t'16501',\n\t\t'16507',\n\t\t'1785',\n\t\t'1785A',\n\t\t'1785B',\n\t\t'1844',\n\t\t'1844A',\n\t\t'1986',\n\t\t'2002',\n\t\t'2003',\n\t\t'2087',\n\t\t'2164A',\n\t\t'2281',\n\t\t'2283',\n\t\t'22839',\n\t\t'22889',\n\t\t'2290A',\n\t\t'2303',\n\t\t'2306A',\n\t\t'24791',\n\t\t'2503',\n\t\t'2551',\n\t\t'2554A',\n\t\t'2746A'\n\t];\n\n//switched to single device replen post replatform \n\n//var COOKIE_NAME = 'dwanonymous_efe02c3d69a8c3d3f15df3b9a05e644e';\n\n/** ****** helper functions *********/\nfunction getDataLayerEvent(eventName){\n return dataLayer.filter(function(item){\n return item.event == eventName;\n }).pop();\n}\n\nfunction isRevolutionUrl(url) {\n var valid_skus = ['3432', '34249'];\n \n if (!url){\n return false;\n }\n \n for (var i = 0; i < valid_skus.length; i++){\n if (url.indexOf(valid_skus[i]) > -1){\n return true;\n }\n }\n return false;\n}\n\nfunction isCrosswaveUrl(url) {\n\treturn url && url.indexOf('crosswave') > -1;\n}\n\nfunction isValidDomain() {\n\treturn ['www.bissell.com'].indexOf(window.location.hostname) > -1 && isEnUS() && bouncex.state.geo.country_code === 'US';\n}\n\nfunction isEnUS() {\n\treturn jQuery('html').attr('lang') === 'en-US' || jQuery('html').attr('lang') === 'en';\n}\n\nfunction getItemIdFromURL(url){\n if (!url){\n return;\n }\n return url.split('-').pop().replace('.html', '');\n}\n\nfunction getPdpId() {\n\treturn CLEAN_URL.split('-').pop().replace('.html', '');\n}\n\nfunction getPageTitle() {\n\treturn jQuery('h1.chakra-heading').first().text().trim();\n}\n\nfunction getCategoryPageTitle() {\n\treturn jQuery('h1.chakra-heading').first().clone().find('p').remove().end().text().replace(/[\\r\\n]+/g, ' ').replace(/[‘’]/g, '').replace(/\\s+/g, ' ').trim() || 'all';\n}\n\nfunction getItemCategory() {\n\treturn jQuery('.chakra-breadcrumb__list-item').last().text().trim() || 'all';\n}\n\nfunction getItemImage() {\n\tvar imgUrl = jQuery('#main .swiper-wrapper .css-0 img').first().attr('src');\n\n\treturn encodeURI(imgUrl);\n}\n\nfunction isSaleItem(dlObj, price) {\n if (!Object.keys(dlObj).length){\n return !!jQuery('.chakra-text[aria-label=\"' + price + '\"]').next('.chakra-badge').length;\n }\n\n\treturn dlObj.discount > 0;\n}\n\nfunction getItemPrice(){\n return jQuery('.chakra-button.add-to-cart').first().text().split(' - ').pop();\n}\n\nfunction isInStock() {\n\treturn jQuery('.chakra-button.add-to-cart').first().text().toLowerCase().indexOf('add to cart') > -1;\n}\n\nfunction getItemFromDL(){\n var DLEvent = getDataLayerEvent(\"view_item\") || {},\n ecommObj = DLEvent.ecommerce,\n item = bouncex.utils.getNestedProp('items[0]', '', ecommObj);\n \n if (item.item_id && item.price && item.item_name){\n return item;\n }\n \n return {};\n}\n\nfunction getRating() {\n var ratingElement = jQuery('.pr-review-snapshot-snippets-headline').first().text(),\n rating = Number(ratingElement);\n \n if (!ratingElement.length) {\n return '';\n }\n \n return rating >= 4 ? rating : '';\n}\n\nfunction getReviews() {\n var ratingElement = jQuery('.pr-review-snapshot-snippets-headline').first(),\n rating = Number(ratingElement.text()),\n reviewsElement = jQuery('.pr-snippet-review-count').first(),\n reviews = reviewsElement.text().replace(/\\D/g, '');\n \n if (!ratingElement.length || !reviewsElement.length) {\n return '';\n }\n \n return rating >= 4 ? reviews : '';\n}\n\n/** ****** item tracking *********/\nfunction buildItem() {\n\tvar id = getItemIdFromURL(CLEAN_URL),\n\t\texcluded = EXCLUDED_IDS.indexOf(id) > -1, // isRevolutionUrl(CLEAN_URL) || isCrosswaveUrl(CLEAN_URL) request SOTEC-13728\n\t\tsalePrice = jQuery('.chakra-container .price-sale').first().text().trim(),\n\t\tlistPrice = jQuery('.chakra-container .price-list').first().text().trim().replace(/[$,]/g, \"\"),\n\t\tdlItem = getItemFromDL();\n \n if (dlItem.item_id != id) {\n dlItem = {};\n }\n\n\treturn {\n\t\tid: id,\n\t\tcopy: dlItem.item_name || getPageTitle(),\n\t\tcategory: getItemCategory(),\n\t\timageurl: getItemImage(),\n\t\turl: CLEAN_URL,\n\t\tinstock: isInStock(),\n\t\tsale: isSaleItem(dlItem, salePrice),\n\t\texcluded: excluded,\n\t\texcludedpricedrop: isRevolutionUrl(CLEAN_URL) || isCrosswaveUrl(CLEAN_URL),\n\t\tprice: dlItem.price || salePrice.replace(/[$,]/g, \"\"),\n\t\toriginalprice: dlItem.list_price ? dlItem.list_price : '',\n\t\trating: getRating(),\n reviews: getReviews(),\n\t};\n}\n\nfunction trackItem() {\n\tvar item;\n \n\tbouncex.et.onTrue(function () {\n\t\titem = buildItem();\n\t\treturn item.id && item.imageurl && item.category && item.copy;\n\t}, function () {\n\t\tbouncex.push(['item', item]);\n\t\tbouncex.push(['view item', {\n\t\t\t'item:id': item.id,\n\t\t\t'item:itemgroupid': item.id\n\t\t}]);\n\n\t\tif (isRevolutionUrl(item.url)) {\n\t\t\tbouncex.push(['view_revolution']);\n\t\t} else if (isCrosswaveUrl(item.url)) {\n\t\t\tbouncex.push(['view_crosswave']);\n\t\t}\n\t}, 15);\n}\n\n/** ************* Category Tracking ***************/\nfunction getItemsIds() {\n\treturn jQuery('.chakra-heading .chakra-link').map(function () {\n\t\tvar itemURL = jQuery(this).attr('href'),\n\t\t id = getItemIdFromURL(itemURL);\n\n\t\tif (id && id.length > 0) {\n\t\t\treturn id;\n\t\t}\n\t}).toArray().join();\n}\n\nfunction trackCategory() {\n\tvar itemIds = getItemsIds();\n\n\tif (itemIds.length > 0) {\n\t\tbouncex.push(['view category', {\n\t\t\t'items:ids': getItemsIds(),\n\t\t\t'page:title': getCategoryPageTitle(),\n\t\t\t'page:url': bouncex.utils.url.allowParams('q')\n\t\t}]);\n\t}\n}\n\n//COOKIE REPLEN \n// function trackATC(elem) {\n// var ogQty = bouncex.vars.cart_qty,\n// itemURL, \n// itemID,\n// cookie;\n \n// setCartValue(elem);\n// setCartImages(elem);\n// setCouponEligible(elem);\n \n \n// bouncex.et.onTrue(function(){\n// itemURL = jQuery(elem).find('.chakra-link').attr('href');\n// itemId = getItemIdFromURL(itemURL);\n// cookie = bouncex.getBounceCookie(COOKIE_NAME);\n \n// return !!itemId && itemId.indexOf('us/account') === -1 && \n// !!cookie && \n// bouncex.vars.cart_qty > ogQty;\n// }, function(){\n// \t\tbouncex.push(['add to cart', {\n// \t\t\t'item:id': itemId,\n// \t\t\t'cart:token': cookie\n// \t\t}]);\n\t\t\n// \t\tbouncex.setv('cart_set', true);\n\t\t\n// \t\tif (isRevolutionUrl(itemURL)){\n// \t\t bouncex.push(['revolution_in_cart']);\n// \t\t}\n// \t\tif (isCrosswaveUrl(itemURL)){\n// \t\t bouncex.push(['crosswave_in_cart']);\n// \t\t}\n\n// }, 10);\n// }\n\n//SINGLE DEVICE REPLEN \nfunction trackATC(elem) {\n var ogQty = bouncex.vars.cart_qty,\n itemURL, \n itemID;\n \n setCartValue(elem);\n setCouponEligible(elem);\n \n bouncex.et.onTrue(function(){\n itemURL = jQuery(elem).find('.chakra-link').attr('href');\n itemId = getItemIdFromURL(itemURL);\n\n return !!itemId && itemId.indexOf('us/account') === -1 && bouncex.vars.cart_qty > ogQty;\n }, function(){\n \t\tbouncex.push(['add to cart', {\n\t\t\t'item:id': itemId\n\t\t}]);\n\t\t\n\t\tbouncex.setv('cart_set', true);\n\t\t\n\t\tif (isRevolutionUrl(itemURL)){\n\t\t bouncex.push(['revolution_in_cart']);\n\t\t}\n\t\tif (isCrosswaveUrl(itemURL)){\n\t\t bouncex.push(['crosswave_in_cart']);\n\t\t}\n\n }, 10);\n \n\n}\n\nfunction trackRecommendATC() {\n \tbouncex.et.onVisible('.quick-add-to-cart',function(){\n \t jQuery('.quick-add-to-cart').on('click.bx',function(){\n var URL = jQuery(this).parents('.chakra-linkbox').find('a').attr('href')\n console.log(URL)\n var ID = getItemIdFromURL(URL)\n console.log(ID)\n \n \t\tbouncex.push(['add to cart', {\n\t\t\t'item:id': ID\n\t\t}]);\n\n})\n \t \n \t});\n}\n\nfunction setCartValue(elem){\n var footer = jQuery(elem).find('.chakra-modal__footer'), \n\t\tcartVal = jQuery(footer).find('.chakra-text').first().attr('aria-label');\n\t\n\tif (!!cartVal){\n\t cartVal = cartVal.trim().replace(/[$,]/g, \"\");\n\t bouncex.setVar('cart_value', cartVal);\n\t}\n}\n\nfunction setCartImages(){\n\tbouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n\t var img;\n\n\t\t// if adding item, not via minicart modal\n\t\tif (newVal > oldVal && jQuery('#chakra-modal-minicart-drawer').length === 0) {\n\t\t\t\n\t\t\tvar body = jQuery('.chakra-modal__body');\n\t\t\timg = jQuery(body).find('img:eq(0)').attr('src');\n\t\t\titems = JSON.parse(bouncex.vars.cart_images) || [];\n \n\t\t\tif (!img){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\titems.push(img);\n\t\t\tbouncex.setVar('cart_images', JSON.stringify(items));\n\t\t} else if (jQuery('#chakra-modal-minicart-drawer').length > 0){\n\t\t\t// in cart modal\n\t\t\tvar cartItems = jQuery('#chakra-modal--body-minicart-drawer .chakra-linkbox:has(a img)'),\n\t\t\timages = [];\n \n\t\t\tcartItems.each(function(i) {\n\t\t\t\tvar cartImages = jQuery(cartItems).eq(i).find('a img');\n\t\t\t\tvar quantity = parseInt(jQuery(cartItems).eq(i).find('.chakra-text:last').text());\n\t\t\t\timg = cartImages.attr('src');\n\t\t\t\tif (img) {\n\t\t\t\t\tif (quantity === 1) {\n\t\t\t\t\t\timages.push(img);\n\t\t\t\t\t} else if (quantity === 2) {\n\t\t\t\t\t\timages.push(img, img);\n\t\t\t\t\t} else if (quantity > 2) {\n \t\t\t\t\t\timages.push(img, img, img);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tbouncex.setVar('cart_images', JSON.stringify(images));\n\t\t}\t\n\n\t});\t\n}\n\nfunction setCouponEligible(elem){\n var body = jQuery(elem).find('.chakra-modal__body'),\n itemURLs = jQuery(body).find('.chakra-link'),\n skus = ['1650', '1650A', '1785', '1785A', '1548'];\n\n itemURLs.each(function(i, e){\n var itemURL = jQuery(e).attr('href') || '',\n itemID = getItemIdFromURL(itemURL);\n \n if (itemID && (itemID[0] === 'B' || skus.indexOf(itemID) > -1)){\n bouncex.setVar('coupon_eligible', false);\n }\n });\n \n}\n\n/** ****** track empty cart *********/\nfunction trackEmptyCart() {\n\tif (bouncex.vars.cart_set && bouncex.vars.cart_qty === 0) {\n\t\tbouncex.push(['empty_cart', {}]);\n\t\tbouncex.setVar('cart_set', false);\n\t}\n}\n\n/** ****** cart replenishment *********/\n// ONLY NEEDED FOR COOKIE REPLEN\n// function replenish(cart) {\n// \tbouncex.utils.cookies.create({\n// \t\tname: COOKIE_NAME,\n// \t\tvalue: cart.token\n// \t});\n// \twindow.location.href = window.location.pathname + '?bx_replen=true';\n// }\n\n/** ****** Initiate cart tracking *********/\nfunction initCartTracking() {\n// \tbouncex.et.cart.init({\n// \t\treplenish: replenish,\n// \t\treplenishmentType: 'cookie'\n// \t});\n\t\n bouncex.et.cart.init({\n replenish: function () { },\n replenishmentType: 'single'\n });\n\n\n\tbouncex.et.onVarChange('cart_qty', trackEmptyCart);\n\tbouncex.et.onVisible('.chakra-modal__content-container', trackATC);\n\tbouncex.et.onVisible('.chakra-modal__content-container', trackRecommendATC);\n\ttrackEmptyCart();\n\tsetCartImages();\n}\n\n/** ****** pagetypes *********/\nfunction productPage(){\n return CLEAN_URL.indexOf('/product/') > -1 && CLEAN_URL.indexOf('/category/') === -1;\n}\n\nfunction categoryPage(){\n var validCatURLS = ['/category/products/', '/parts/', '/category/shop/'];\n for (var i = 0; i < validCatURLS.length; i++){\n if (CLEAN_URL.indexOf(validCatURLS[i]) > -1){\n return true;\n }\n }\n return false;\n}\n\nfunction searchPage(){\n return CLEAN_URL.indexOf('/search') > -1;\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction initializeUserTracking() {\n if (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\n return;\n }\n\n var userEmail;\n\n bouncex.et.onTrue(\n function () {\n userEmail = jQuery('.chakra-text:contains(\"@\")').text() || jQuery('[type=\"email\"]').val() || jQuery('.order-summary-email').text();\n return bouncex.utils.validate.email(userEmail);\n },\n function () {\n bouncex.push([\n 'user',\n {\n 'email': userEmail,\n 'source': 'LoggedIn'\n }\n ]);\n bouncex.setVar('logged_in_identified', true);\n },\n 5\n );\n}\n\n\n/** ****** itiniate tracking code *********/\nfunction initTracking(){\n initializeUserTracking()\n bouncex.log('initializing new tracking 10/17, updated 10/25');\n\t\n\tinitCartTracking();\n\t\n\tif (productPage()){\n\t trackItem();\n\t return;\n\t} \n\t\n\tif (categoryPage() || searchPage()){\n\t trackCategory();\n\t return;\n\t}\n}\n\nif (isValidDomain()){\n bouncex.setTimeout2(initTracking, 3000);\n}","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/en-us/cart"}]]},"category":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/category/products/"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"checkout-begin"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"var valid_paths = ['/', '/en-us', '/en-us/'];\nvalid_paths.indexOf(window.location.pathname) > -1;"}]]},"product":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/product"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/category"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search"}]]}},"els":{"PDP_add_to_cart_actions":".prices-add-to-cart-actions >div:eq(0)","PDP_product_image":".swiper-wrapper:has(figure)","PDP_quantity":".quantity-container","PDP_subscribe_and_save":"[test=\"regularEligible\"] p:eq(1)"},"vars":[{"name":"cart_items","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n var cart = jQuery('li.cart');\n if(cart.text().length && window.location.href.indexOf('address-information') === -1 && window.location.href.indexOf('review-and-pay') === -1){\n return cart.text().trim().split(' ')[0];\n }\n return null;\n})();\n","trigger":""},{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('[aria-label=\"header.button.assistive_msg.my_account\"][aria-controls]').length > 0 || jQuery('.order-summary-email').text().indexOf('@') > -1;","trigger":""},{"name":"prod_name","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('h1.chakra-heading').first().text().trim();","trigger":""},{"name":"price","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.chakra-container .price-sale').first().text().replace(/[$,]/g, \"\");\n","trigger":""},{"name":"ibx_test","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"window.location.href.indexOf('ibx_test') > -1 || null","trigger":""},{"name":"product_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts === 'product';","trigger":""},{"name":"email_coupon","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function() {\n var o;\n if (window.location.href.indexOf('coupon_code=') > -1) {\n o = window.location.href;\n } else {\n o = (bouncex.cookie && bouncex.cookie.lp)? decodeURIComponent(bouncex.cookie.lp) : window.location.href;\n }\n var e = 'coupon_code'.replace(/[\\[]/, '\\\\[').replace(/[\\]]/, '\\\\]');\n var t = '[\\\\?&]' + e + '=([^&#]*)'\n , i = new RegExp(t)\n , a = i.exec(o);\n return null == a ? false : decodeURIComponent(a[1]);\n})()","trigger":""},{"name":"email_expired","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function() {\n var o = window.location.href;\n var e = 'expdate'.replace(/[\\[]/, '\\\\[').replace(/[\\]]/, '\\\\]');\n var t = '[\\\\?&]' + e + ':([^&#]*)'\n , i = new RegExp(t)\n , a = i.exec(o);\n if (a == null) {\n return null;\n } else {\n var expiration = decodeURIComponent(a[1]).split('');\n var month = expiration[0] + expiration[1];\n var day = expiration [2] + expiration [3];\n var year = expiration [4] + expiration [5] + expiration [6] + expiration[7];\n var expirationDate = new Date(year, parseInt(month) - 1, day);\n var today = new Date();\n if (today >= expirationDate) {\n return true;\n } else {\n return false;\n }\n }\n})();","trigger":""},{"name":"product_category","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.chakra-breadcrumb__list-item').last().text().trim();","trigger":""},{"name":"filtered_products_tracked","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"0","code":"(function(){\n if(bouncex.vars.product_category){\n return JSON.parse(window.localStorage.getItem('bxProdHist')) && JSON.parse(window.localStorage.getItem('bxProdHist')).filter(function(prod){ return prod.category.categoryName === bouncex.vars.product_category;}).length;\n }\n \n return false;\n})();","trigger":""},{"name":"isr_test","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"window.location.href.indexOf('isr_test') > -1 || null;","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if(bouncex.website.pts === 'checkout'){\n \treturn Number(jQuery('.grand-total-sum').first().text().trim().replace(/[$,]/g, \"\"));\n }\n if(bouncex.website.pts === 'cart'){\n \treturn jQuery('dt:contains(Total price)').next().text().trim().replace(/[$,]/g, \"\");\n }\n return null; \n})();","trigger":""},{"name":"mobile_nav_open","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('.main-menu.navbar-toggleable').hasClass('in');","trigger":""},{"name":"coupon_eligible","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"true","code":"null;","trigger":""},{"name":"out_of_stock","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"// (function(){\n// if(bouncex.vars.product_page === true){\n// var button = jQuery('article.full-width div.prod-detail__top-section div.button');\n// if(button.length >0 && button.hasClass('js-add-cart') === false){\n// if(button.hasClass('rf-btn--atc')){\n// return false;\n// }\n// return true;\n// }\n// }\n// return false;\n// })();","trigger":""},{"name":"user_tracked","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":""},{"name":"already_liked","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"(function(){\n\tif(bouncex.vars.product_page){\n\t\tvar found = false;\n\t\tif(localStorage.getItem('bxFavHist') != null) {\n JSON.parse(localStorage.getItem('bxFavHist')).forEach(function(v,i){\n var prodSku = jQuery('.prod-detail__title').length !== 0 ? jQuery('.prod-detail__title h1').text().trim().split('| ')[1] : jQuery('.product-info .title').text().trim().split('| ')[1]\n if(v.sku === prodSku){\n found = true;\n }\n });\n }\n\t\treturn found;\n }else{\n\t\treturn false;\n }\n})();\n","trigger":""},{"name":"isr_liked_items","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"window.localStorage.getItem('bxFavHist') ? JSON.parse(window.localStorage.getItem('bxFavHist')).length : null;","trigger":""},{"name":"private_browser","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"((sessionStorage.length === 0 && bouncex.browser.safari) || bouncex.browser.ios !== false) ? true : false","trigger":""},{"name":"sale_present","polling":"none","persist":"no","page_types":["product","category"],"testmode":true,"default":"false","code":"jQuery('.product-grid .list-col [data-target=\"#saleitem\"]').length > 0","trigger":""},{"name":"breadcrumb","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if(jQuery('.chakra-breadcrumb__list-item').length > 0){\n return jQuery('.chakra-breadcrumb__list-item').last().text().trim();\n }\n return false;\n})()","trigger":""},{"name":"category_title","polling":"none","persist":"no","page_types":["category"],"testmode":true,"default":"false","code":"bouncex.website.pts === \"category\" ? jQuery('.search-banner h1:first').text().trim().replace('&', '& ') : false","trigger":""},{"name":"pagetype","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"(function() {\n if (jQuery('.searchParent').length > 0) {\n return 'search';\n } else if (jQuery('.product-listing-page').length > 0 || jQuery('.full-width.parts').length > 0) {\n return 'category';\n } else if (jQuery('.product-detail-page').length > 0 || jQuery('.part-detail').length > 0) {\n return 'product';\n } else if (jQuery('form[action=\"/\"]').length > 0){\n return 'home';\n }\n})();\n","trigger":""},{"name":"imageurl","polling":"vars","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function(){\r\n\tvar imgUrl = jQuery('#main .swiper-wrapper .css-0 img').first().attr('src');\r\n\treturn encodeURI(imgUrl);\r\n})();","trigger":""},{"name":"sale_checked","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('#refinement-product-specials span.selected:contains(\"On Sale!\")').length > 0","trigger":""},{"name":"in_stock","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.chakra-button.add-to-cart').first().text().toLowerCase().indexOf('add to cart') > -1;\n ","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"","code":"null;","trigger":""},{"name":"ever_logged_in","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"on_sale","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function(){\n\tvar salePrice = jQuery('.chakra-container .price-sale:eq(0)').first().text().replace(/[$,]/g, \"\"),\n\t\tlistPrice = jQuery('.chakra-container .price-sale:eq(0) + .price-list').first().text().replace(/[$,]/g, \"\");\n\treturn !!salePrice && !!listPrice;\n})();","trigger":""},{"name":"cart_qty","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if (!jQuery('.cart-drawer-link .chakra-badge').length){\n return 0;\n }\n return jQuery('.cart-drawer-link .chakra-badge').first().text() || null;\n})();","trigger":""},{"name":"first_product_name_on_page","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('.prod-listing').first().find('h3 a').text() || false;","trigger":""},{"name":"review_submitted","polling":"all","persist":"visit","page_types":[],"testmode":true,"default":"false","code":"jQuery('.thank-you-page').text().indexOf('process your review') > -1 || null;","trigger":""},{"name":"full_price_item_in_cart","polling":"all","persist":"visit","page_types":[],"testmode":true,"default":"false","code":"(function(){\r\n var saleItemInCart, \r\n fullPriceInCart;\r\n \r\n if(jQuery('.cart .product-summary').length > 0){\r\n saleItemInCart = jQuery('.cart .product-summary .price .sale-red').length > 0;\r\n fullPriceInCart = jQuery('.cart .product-summary .price .sales:not(.sale-red)').length > 0\r\n } else if(bouncex.website.pts === \"cart\"){\r\n saleItemInCart = jQuery('.cart.cart-page .card .sale-red').length > 0\r\n fullPriceInCart = jQuery('.cart.cart-page .card .sales:not(.sale-red)').length > 0\r\n }\r\n if(bouncex.cookie.d != \"d\" && bouncex.website.pts != \"cart\"){\r\n return null;\r\n }\r\n \r\n if(window.location.pathname.indexOf('address-information') === -1 && window.location.pathname.indexOf('review-and-pay') === -1 && bouncex.website.pts !== \"checkout\" && window.location.href.indexOf(\"checkout-login\") == -1){\r\n if (bouncex.vars.cart_items > 0 && !fullPriceInCart){\r\n return false;\r\n } else if (fullPriceInCart) {\r\n return true;\r\n } \r\n return false; \r\n }\r\n return null\r\n})();","trigger":"pageload"},{"name":"total_full_price_items_in_cart","polling":"all","persist":"visit","page_types":[],"testmode":true,"default":"0","code":"(function(){\r\n\tvar total = 0;\r\n\t\r\n\tjQuery('.cart .product-summary .price .sales:not(.sale-red), .cart .product-info .price .sales:not(.sale-red)').each(function(_,b){\r\n\t\ttotal += Number(jQuery(b).parents('.card').find('.quantity').val())\r\n });\r\n return bouncex.vars.cart_qty === 0 ? 0 : bouncex.vars.cart_qty > 0 && total != 0 ? total : null\r\n})();","trigger":"pageload"},{"name":"full_price_reducedby_ten_percent","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function(){\n var price = bouncex.vars.price;\n \n if (!price){\n return null;\n }\n \n if (bouncex.vars.on_sale){\n return price;\n }\n return (price - (price * 0.10)).toFixed(2);\n})();","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function() {\n return bouncex.website.pts\n})();\n","trigger":"pageload"},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('p.chakra-text:contains(Thanks for joining our email list!)').length > 0 || null;","trigger":"pageload"},{"name":"cart_set","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_images","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"subscribe_option_present","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.attributes .ar-disclaimer:visible').length > 0;","trigger":"pageload"},{"name":"subscribe_option_selected","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.product-content og-offer[subscribed]').length > 0;","trigger":"pageload"},{"name":"cta_out_of_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.chakra-button.add-to-cart').first().text().toLowerCase().indexOf('out of stock') > -1 || jQuery('.chakra-button.add-to-cart').first().text().toLowerCase().indexOf('no longer available') > -1;","trigger":"pageload"},{"name":"bissell_onsite_testing","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.vwo-pdp-sticky-atc').length > 0;","trigger":"pageload"},{"name":"sticky_atc_visible","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('div.chakra-container[style*=\"will-change: auto; transform: none;\"] button.add-to-cart').length > 0;","trigger":"pageload"},{"name":"product_excludedfromdiscount","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"(function(){\n var ecommerceObject = bouncex.utils.getNestedProp('window.dataLayer').find(function(x){ return x.ecommerce });\n\n if(ecommerceObject){\n return ecommerceObject.ecommerce.detail.products[0].promotion_exclusion;\n } \n else return false;\n})();","trigger":"pageload"},{"name":"cookie_modal_visible","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('div[role=\"alertdialog\"][aria-describedby=\"onetrust-policy-text\"]:visible').length > 0;","trigger":"pageload"},{"name":"native_modal_expanded","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.chakra-modal__content').length > 0;","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":1,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"et_rid":"espemailid"},"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":1,"spatm":0,"preinit_cjs":"SinglePageApp.setCustomParams({\n shouldCheckSpa: function() {\n return true;\n },\n currentPageIdentifier: function() {\n return window.location.pathname;\n }\n});\n\n/** \n * Segments - Cartridge Boilerplate\n * This code belongs in pre-init.js. If you want to write code\n * that runs when the page loads but does not leverage the intercept\n * or mirror methods use the Event Tracking code block. Don't forget\n * to change testMode to false to set your code live.\n */\n\nvar segments = {\n /* PROPERTIES */\n testMode: false,\n interceptEnabled: true,\n mirrorEnabled: true,\n dlWatcherEnabled: false,\n /* METHODS */\n /* Intercept Events */\n useIntercept: function() {\n if (this.interceptEnabled) {\n bouncex.utils.shqInterceptEvent = {\n // true blocks event, defined functions run in place of default\n 'productView': false,\n 'cartAdd': true,\n 'cartEmpty': false,\n 'categoryView': false,\n 'purchase': false,\n 'coupon': false,\n 'search': false,\n 'checkout': false,\n 'email': false,\n 'phone': false\n };\n }\n },\n /* Mirror Events */\n useMirror: function() {\n if (this.mirrorEnabled) {\n bouncex.utils.shqMirrorEvent = {\n // defined functions run after designated shq_wknd_event to process event or source names\n 'reloadcampaigns': false,\n 'pageview': function() {\n // Search\n var sp = bouncex.utils.getParam('q');\n\n if (bouncex.website.pts === 'search' && sp) {\n _shq.push(['pageView', {\n pageType: 'search',\n searchPhrase: sp.replace(/\\+/gi, ' ')\n }]);\n }\n },\n 'add to cart': function() {\n var getAtcObj = bouncex.utils.getNestedProp('window.dataLayer', []).filter(function(e) {\n return e.event === 'addToCart';\n }).pop(),\n prodId = bouncex.utils.getNestedProp('ecommerce.add.products[0].id', '', getAtcObj),\n prodPrice = bouncex.utils.getNestedProp('ecommerce.add.products[0].price', '', getAtcObj),\n prodQty = bouncex.utils.getNestedProp('ecommerce.add.products[0].quantity', '', getAtcObj);\n\n if (getAtcObj && prodId && prodPrice && prodQty) {\n _shq.push(['onCartAdd', {\n CartId: null,\n Items: [{\n ProductId: prodId,\n UnitPrice: prodPrice,\n Quantity: prodQty\n }],\n Total: +prodPrice * +prodQty\n }]);\n }\n\n },\n 'view item': false,\n 'select_sku': false,\n 'item': false,\n 'eligible': false,\n 'pop': false,\n 'visit': false\n };\n }\n },\n dlFuncs: function(e) {\n // Write handle methods here:\n //PDP\n if (e.PageType && e.PageType === 'ProductPage') {\n //do PDP event\n }\n },\n useDLWatcher: function() {\n if (!!this.dlWatcherEnabled) {\n window.bouncex.et.onTrue(function() {\n return window.bouncex.utils.getNestedProp('window._shq.loaded') && !!window.dataLayer && !!bouncex.et.setInterval;\n }, function() {\n // instantiate DataLayerHandler Object\n var dlWatcher = new _shq.DataLayerHandler(window.dataLayer);\n // invoke watch method\n dlWatcher.watch(function(e) {\n segments.dlFuncs(e);\n }, {});\n });\n }\n },\n qspObjectify: function(url, search) {\n if (url) {\n var qs = url.split(\"?\").pop();\n if (qs.indexOf(\"http\") < 0) {\n var qsArr = qs.split(\"&\");\n var qsObj = qsArr.map(function(item, index) {\n var itemKey = item.split(\"=\").shift(),\n itemValue = item.split(\"=\").pop(),\n tempObj = {};\n tempObj[itemKey] = itemValue;\n return tempObj;\n });\n search = typeof search == \"string\" ? [search] : search;\n if (search) {\n var searchResults = [];\n qsObj.forEach(function(item, index) {\n var key = Object.keys(item).toString(); // this needs to be a string ;)\n if (search.includes(key)) {\n searchResults.push(item[key]);\n }\n });\n if (searchResults.length > 0) {\n return searchResults[0];\n } else {\n return undefined;\n }\n } else {\n return qsObj;\n }\n }\n }\n },\n /* Initialize Segments Tracking */\n init: function() {\n // test mode\n if (this.testMode && !bouncex.testmode.bxdev) return;\n // attach object to window & bouncex.utils\n if (window.bouncex.utils) bouncex.utils.segments = this;\n\n // initialize intercept and mirror, comment out if not needed\n this.useIntercept();\n this.useMirror();\n }\n}\n\nsegments.init();\n\n//To use dlFuncs call this in Event Tracking\n//bouncex.utils.segments.useDLWatcher();","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"Hit 'Send' to sign-up for automated, recurring BISSELL mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"btcxaeq6ae-1","enabled":1},"pde":true,"fmc":["US","CA"],"fme":true,"fmx":"","uid2":false,"sdk":{"android":{"enabled":false,"enabledVersions":[],"eventModifications":null},"ios":{"enabled":false,"enabledVersions":[],"eventModifications":null}},"onsite":{"enabled":1},"ads":{"enabled":0},"pubs":{"enabled":0},"websdk":{"enabled":0,"devMode":0},"ga4_property_id":"315656386","ga4_measurement_id":"G-WK85VKY8D6","tag_state_domain":"wd.bissell.com","tag_state_domain_enabled":true} ; bouncex.tag = 'tag3'; bouncex.$ = window.jQuery; bouncex.env = 'production'; bouncex.restrictedTlds = {"casl":{"ca":1},"gdpr":{"ad":1,"al":1,"at":1,"ax":1,"ba":1,"be":1,"bg":1,"by":1,"xn--90ais":1,"ch":1,"cy":1,"cz":1,"de":1,"dk":1,"ee":1,"es":1,"eu":1,"fi":1,"fo":1,"fr":1,"uk":1,"gb":1,"gg":1,"gi":1,"gr":1,"hr":1,"hu":1,"ie":1,"im":1,"is":1,"it":1,"je":1,"li":1,"lt":1,"lu":1,"lv":1,"mc":1,"md":1,"me":1,"mk":1,"xn--d1al":1,"mt":1,"nl":1,"no":1,"pl":1,"pt":1,"ro":1,"rs":1,"xn--90a3ac":1,"ru":1,"su":1,"xn--p1ai":1,"se":1,"si":1,"sj":1,"sk":1,"sm":1,"ua":1,"xn--j1amh":1,"va":1,"tr":1}}; bouncex.client = { supportsBrotli: 1 }; bouncex.assets = {"ads":"ba8ae19a5bf9548f3d50df1e54121805","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"c5ffeacd3b77d074a53f2878c1332dc9","onsite":"c05f8c5551fa6b964660ad61916291c1","sms":"e39203556bab2366e56296ce42e974a7","websdk":"9c2817e65e803cb8c86d0410c88f20c1","website_campaigns_2002":"1f968f6a08ce77450b7f60b9d5e19243"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_c81e76ee00d795b1eebf8d27949f8dc5.br.js'); runtime.setAttribute('async', 'async'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_593c276f770cc7539a00ca1a99a96e5c.br.js'); script.setAttribute('async', 'async'); document.body.appendChild(script); var deviceGraphScript = document.createElement('script'); deviceGraphScript.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/cjs_min_c84323e2726f3e99b307ab7740c6434b.js'); deviceGraphScript.setAttribute('async', 'async'); var dgAttrs = [{"Key":"id","Value":"c.js"},{"Key":"async","Value":"true"},{"Key":"data-apikey","Value":"2^HIykD"},{"Key":"data-cb","Value":"bouncex.dg.initPostDeviceGraph"},{"Key":"data-bx","Value":"1"},{"Key":"data-gm","Value":"1"},{"Key":"data-fire","Value":"1"}]; if (dgAttrs) { for (var i = 0; i < dgAttrs.length; i++) { deviceGraphScript.setAttribute(dgAttrs[i].Key, dgAttrs[i].Value); } } document.body.appendChild(deviceGraphScript); bouncex.initializeTag = function() {}; }; runtime.onload = bouncex.initializeTag; document.body.appendChild(runtime); } window._shq = window._shq || []; var eventSharingCartridge = document.createElement('script'); eventSharingCartridge.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/wknd_audiences_2648fa8509e4b3a98a2790bb8171ddc1.js'); eventSharingCartridge.setAttribute('async', 'async'); document.body.appendChild(eventSharingCartridge); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();