(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":4329,"name":"BISSELL Canada ","cookie_name":"bounceClientVisit4329","domain":"canada.bissell.com","ct":"fp_local_storage","ally":1,"ei":0,"tcjs":"","cjs":"","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-2249291-3","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":0,"gmp":0,"whitelist_check":1},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"var COOKIE_NAME = \"dwanonymous_0d9770c29fa4398ba4d2dbfc959f26e7\";\n/************************** HELPERS ***************************/\nfunction getUrl() {\n return bouncex.utils.url.allowParams() || (window.location.origin + window.location.pathname);\n}\n\nfunction isValidForTracking() {\n var url = getUrl();\n\n return url.indexOf(\"canada.bissell.com\") > -1\n && url.indexOf(\"staging-canada.bissell.com\") < 0\n && jQuery(\"html\").attr(\"lang\").indexOf(\"en\") > -1\n && bouncex.state.geo.country_code === 'CA';\n}\n\nfunction getProdIdFromUrl(url) {\n url = url.split(\"bissell.com/\").pop().split('-').pop();\n var idCheck = /[0-9A-Z\\-]*/g;\n var match = url.match(idCheck);\n return match ? match[0] : \"\";\n}\n\nfunction getCategoryPageTitle() {\n return jQuery(\".breadcrumb-item\").last().text().trim() ||\n jQuery(\".display-1\").first().text().trim() || \n \"All Products\";\n}\n\nfunction noForeignCharacters(string) {\n string = string.split(\"®\").join(\"\").split(\"™\").join(\"\");\n return /^[\\x00-\\x7F]+$/.test(string);\n}\n\nfunction isRevolutionUrl(url) {\n\treturn url && url.indexOf('revolution') > -1;\n}\n\nfunction isCrosswaveUrl(url) {\n\treturn url && url.indexOf('crosswave') > -1;\n}\n\nfunction isExcluded(){\n var url = getUrl();\n \n return jQuery('button.add-to-cart:first[disabled]').text().indexOf(\"Exclusive to\") > -1 || \n isCrosswaveUrl(url) ||\n isRevolutionUrl(url);\n}\n\n/************************** ITEM ***************************/\nfunction getItem() {\n var pdpUrl = getUrl(),\n $disabledButton = jQuery('button.add-to-cart:first[disabled]');\n return {\n id: getProdIdFromUrl(pdpUrl),\n copy: jQuery('h1.product-name').text().trim(),\n category: jQuery(\".breadcrumb-item\").last().text().trim(),\n url: pdpUrl,\n imageurl: encodeURI(jQuery('div.slick-active img.slide-img:first').attr('src')) || \"\",\n instock: $disabledButton.length === 0,\n excluded: isExcluded()\n };\n}\n\n/************************* CATEGORY **************************/\nfunction getListIds() {\n\treturn jQuery('.grid-tile.product:visible').map(function () {\n\t\tvar id = jQuery(this).attr('data-pid');\n\t\tif(id && id.length > 0) {\n\t\t\treturn id;\n\t\t}\n\t}).toArray().join();\n}\n\n/*************************** CART ****************************/\nfunction replenish(cart) {\n bouncex.utils.cookies.create({ name: COOKIE_NAME, value: cart.token });\n window.location.href = window.location.pathname + \"?bx_replen=true\";\n}\n\nfunction trackATC(e, x, s){\n\tif (s.url.indexOf('/Cart-AddProduct') > -1 && s.type === 'POST'){\n\t\tvar id = bouncex.utils.url.getParam('pid', s.data),\n\t\t\tcookie;\n\t\tbouncex.et.onTrue(\n\t\t\tfunction(){\n\t\t\t\tcookie = bouncex.getBounceCookie(COOKIE_NAME);\n\t\t\t\treturn cookie;\n\t\t\t}, \n\t\t\tfunction(){\n\t\t\t\tbouncex.push(['add to cart', {\n\t\t\t\t\t'item:id': id,\n\t\t\t\t\t'cart:token': cookie\n\t\t\t\t}]);\n\n if (!bouncex.vars.cart_set) {\n bouncex.setv('cart_set', true);\n setBounceCookie();\n }\n\t\t\t}, \n\t\t5);\n\t} else if (s.url.indexOf('/Cart-MiniCartShow') > -1 && s.type === 'GET') {\n\t\tjQuery('.line-item-name a', x.responseText).each(function (i, el) {\n\t\t\tvar url = jQuery(el).attr('href');\n\t\t\tif (isRevolutionUrl(url)) {\n\t\t\t\tbouncex.push(['revolution_in_cart']);\n\t\t\t} else if (isCrosswaveUrl(url)) {\n\t\t\t\tbouncex.push(['crosswave_in_cart']);\n\t\t\t}\n\t\t});\n\t}\n}\n\nfunction emptyCartEvents() {\n bouncex.push([\"empty_cart\", {}]);\n bouncex.setv(\"cart_set\", false);\n setBounceCookie();\n}\n\nfunction emptyCartListener() {\n bouncex.et.onVarChange('cart_qty', function() {\n if (bouncex.vars.cart_qty === 0 && bouncex.vars.cart_set) {\n emptyCartEvents();\n }\n });\n}\n\nfunction initializeCartEvents() { \n bouncex.et.cart.init({\n replenishmentType: 'cookie',\n replenish: replenish,\n });\n\tbouncex.et.on(jQuery(document), 'ajaxComplete', trackATC);\n}\n\n/********************* USER EVENTS ***********************/\nfunction fireUserEmail(email) {\n if (bouncex.utils.validate.email(email)) {\n bouncex.push([ \"user\", { email: email, source: \"LoggedIn\" }]);\n bouncex.setv(\"logged_in_identified\", true);\n setBounceCookie();\n }\n}\n/******************* INITIALIZE EVENTS *********************/\n\nfunction initializeEvents() {\n if (bouncex.website.pts === \"product\") {\n var item;\n bouncex.et.onTrue(function() { \n item = getItem();\n return item.id && item.imageurl && item.category && noForeignCharacters(item.copy);\n }, function() { \n bouncex.push([\"item\", item]);\n bouncex.push([\"view item\", { \n \"item:id\": item.id, \n \"item:itemgroupid\": item.id\n }]);\n \n bouncex.push([\"select_sku\", { \n \"item:id\": item.id, \n \"item:itemgroupid\": item.id, \n \"item:feedid\": item.id \n }]);\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 }, 15);\n }\n\n if (bouncex.website.pts === \"category\") { \n var ids;\n bouncex.et.onTrue(function() {\n ids = getListIds();\n return ids.length;\n }, function() {\n var listTitle = getCategoryPageTitle();\n if (noForeignCharacters(listTitle)) {\n bouncex.push([\"view category\", {\n 'page:title': listTitle,\n \"page:url\": getUrl(),\n \"items:ids\": ids\n }]);\n }\n bouncex.et.onVisible(\".modal-content\", function() {\n var id = jQuery(\".product-id:visible\").text();\n if (id) {\n bouncex.push([\"view item\", { \"item:id\": id, \"item:itemgroupid\": id }]);\n }\n });\n }, 15);\n }\n \n //Login Page\n if (window.location.href.indexOf(\"/account\")) {\n var email;\n bouncex.et.onTrue(function() {\n email = jQuery(\"dt:contains(Email)\").parent().find(\"dd\").text();\n return email.length;\n }, function() {\n if (bouncex.vars.logged_in && !bouncex.vars.logged_in_identified) {\n if (bouncex.utils.validate.email(email)) {\n fireUserEmail(email);\n }\n }\n });\n }\n\n if (bouncex.website.pts === \"cart\" && bouncex.vars.cart_set) {\n bouncex.et.onVisible('.cart-empty h1:contains(Your Shopping Cart is Empty)',function() {\n emptyCartEvents();\n });\n }\n\n if (bouncex.website.pts === \"checkout\") {\n var checkoutEmail;\n bouncex.et.onTrue(function() {\n checkoutEmail = jQuery(\"span.order-summary-email\").text().trim();\n return checkoutEmail.length;\n }, function() {\n if (!bouncex.vars.logged_in_identified) {\n fireUserEmail(checkoutEmail);\n }\n });\n }\n\n}\n\nif (isValidForTracking()) {\n initializeEvents();\n initializeCartEvents();\n emptyCartListener();\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":"/cart"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.breadcrumbs').length > 0 && (document.querySelectorAll('.search-banner').length > 0 || document.querySelectorAll('.category-landing').length > 0);\n"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/products"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.homepage').length > 0;"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.product-detail').length > 0;"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search"}]]}},"els":{"product_grid_standard_placement":".product-grid .col:eq(5)"},"vars":[{"name":"logged_in","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.login-submenu').length > 0;","trigger":""},{"name":"ever_logged_in","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (bouncex.website.pts === 'checkout') {\n return Number(jQuery('.total-items-label').text().replace(/[^0-9.]/g, '')) || Number(jQuery('.order-product-summary .grand-total-label').text().replace(/[^0-9.]/g, ''));\n }\n return Number(jQuery('.minicart-quantity:visible').text().replace(/[^0-9.]/g, ''));\n})();","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(Number(jQuery('.total-price').text().replace(/[^0-9.]/g, '')) || Number(jQuery('.sub-total').text().replace(/[^0-9.]/g, ''))) || null;\n","trigger":""},{"name":"prod_price","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-detail .product-item-wrapper .price').length > 0 ? jQuery('.product-detail .product-item-wrapper .price .sales .value').text().replace(/[^0-9.]/g, '') : '0';","trigger":""},{"name":"prod_name","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-detail .product-name').text();","trigger":""},{"name":"in_stock","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-item-wrapper .add-to-cart:disabled').length === 0;\n\n","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('.email-signup-alert').length > 0 ? jQuery('.email-signup-alert').text().indexOf('Thank') > -1 : null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart_token","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_items","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#onetrust-banner-sdk:not([style*=\"display: none\"])').length > 0;","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_set","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cta_out_of_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-item-wrapper .add-to-cart').text().toLowerCase().indexOf('out of stock') > -1;\n","trigger":"pageload"},{"name":"product_page","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"bouncex.website.pts === 'product' || window.digitalData.pageData.pageType === 'product detail';\n","trigger":"pageload"},{"name":"sticky_atc_visible","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.product-detail > .sticky-atc-container').is(':visible') && window.scrollY > 75;","trigger":"pageload"},{"name":"cta_available_soon","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-item-wrapper .add-to-cart').text().toLowerCase().indexOf('available soon') > -1;","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":0,"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 bouncex.calling_url.indexOf('checkout-begin') > -1;\n },\n currentPageIdentifier: function() {\n return window.location.search;\n }\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: true,\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 Canada mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"dd2bk0ndkp-1","enabled":1},"pde":true,"fmc":["US","CA"],"fme":true,"fmx":"","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},"ga4_property_id":"307742297","ga4_measurement_id":"G-YP5MQHB2TF","tag_state_domain":"api.bounceexchange.com"} ; 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":"07d5b82cf97935025a59bf55f6552b1c","creativesBaseStyles":"a53944a2","gpsAuction":"0aafcb326e2e52aae2936349578031e7","inbox":"02aca5df0e176b8810a86da97ac05424","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"437a9f1c542faaacb49577b266dc4d73"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_6459738026535cda4232dc813c61447d.br.js'); runtime.setAttribute('async', 'async'); runtime.setAttribute('onload', 'bouncex.initializeTag()'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_efcf4183cfe60de21aa43976b713ebd6.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_3a843477d8e318f67237a66d0a58c542.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() {}; }; 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(); }})();