(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":2294,"name":"Cole Haan","cookie_name":"bounceClientVisit2294","domain":"colehaan.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"bouncex.et.onVisible('.modal-content .modal-header:contains(\"Added to your bag\")', function(){\r\n var currVal = Number(bouncex.vars.cart_value);\r\n currVal += Number(jQuery('.modal-content .price').text().match(/\\d+/g)[0])\r\n bouncex.setVarAndReload('cart_value', currVal);\r\n})","force_https":false,"waypoints":false,"content_width":0,"gai":"UA-38317407-1","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":0},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* eslint sort-vars: 0 */\nvar ALLOWED_DOMAINS = ['www.colehaan.com'],\n\tSKU_SELECTOR = 'a.selectable:visible, a.unselectable:visible',\n\tCATEGORY_GRID_ITEM = 'div.product',\n\tQUICVKIEW_MODAL = '.product-quickview',\n\tCART_COOKIE = 'dwanonymous_29c8bd709bce117811b14d53deb17581',\n\tORIGINAL_PRICE_SELECTOR = '#pdp-container .strike-through.list span.value[itemprop=\"price\"]:first',\n\tSALE_PRICE_SELECTOR = '#pdp-container .prices .sales span.value[itemprop=\"price\"]';\n\n/******** helper functions *********/\nfunction isValidDomain() {\n\treturn ALLOWED_DOMAINS.indexOf(window.location.hostname) > -1;\n}\n\nfunction isEnglish(){\n\treturn jQuery('html').attr('lang') === 'en';\n}\n\nfunction isGiftCard() {\n\treturn window.location.pathname.indexOf('/gift-cards') > -1;\n}\n\nfunction isReferFriend() {\n\treturn window.location.pathname.indexOf('/refer') > -1;\n}\n\nfunction getPageUrl() {\t\n\treturn jQuery('link[rel=\"canonical\"]').attr('href');\n}\n\nfunction getPdpId() {\n\tvar url = getPageUrl(),\n\t\turlArr = url.split('/'),\n\t\titemId = urlArr[urlArr.length - 1].replace(/.html/g,'');\n\n\treturn itemId;\n}\n\nfunction getPageTitle() {\n\treturn jQuery('h1.product-name:visible').text().trim();\n}\n\nfunction getItemCategory() {\n\treturn bouncex.utils.getNestedProp('window.product.subcategory') || \n\t\tbouncex.utils.getNestedProp('window.product.category') ||\n\t\tjQuery('.breadcrumb-item:last').text().trim() ||\n\t\t'Global';\t\n}\n\nfunction getItemImage() {\n\tvar\timgUrl = jQuery('div.primary-images .image-index-0 img:first').attr('src');\n\n if (!imgUrl && bouncex.state.mobile){\n imgUrl = jQuery('div.primary-images .glide__slide--active .mobile-pdp-image').attr('src');\n }\n \n\treturn imgUrl && bouncex.utils.url.allowParams('', imgUrl).replace(/ /g, '%20');\n}\n\nfunction inStock(){\n var availableSizes = jQuery('.size-container a').filter(function(index, item){\n return jQuery(item).hasClass('selectable');\n });\n var availableWidths = jQuery('.width-container a').filter(function(index, item){\n return jQuery(item).hasClass('selectable');\n });\n return availableSizes.length > 0 || availableWidths.length > 0;\n}\n\nfunction getStars() {\n var stars = jQuery('#tt-teaser .TTteaser__icon--full').length + getHalfStar();\n return stars < 4 ? 0 : stars;\n}\n\nfunction getHalfStar() {\n var halfStar = jQuery('#tt-teaser .TTteaser__icon--half').length;\n return halfStar ? 0.5 : 0;\n}\n\nfunction getProductTileBadge() {\n return jQuery('#pdp-container .product-tile-badge').text().trim().split('\\n').pop() || '';\n}\n\nfunction getGroupId() {\n\treturn jQuery('.color-container a.selected').attr('data-stylenumber');\n}\n\nfunction getCategoryTitle() {\n\treturn jQuery('h1.page-title').text().trim();\n}\n\nfunction validateItem() {\n\tvar item = buildItem();\n\n\treturn item.id && item.imageurl && item.copy;\n}\n\nfunction setVarAndCookie(varName, value) {\n\tbouncex.setVar(varName, value);\n\tbouncex.setBounceCookie();\n\treturn;\n}\n\nfunction isValidIp(){\n return bouncex.state.geo.country === \"US\" || bouncex.state.geo.country === \"CA\";\n}\n\n/********** Tracking old price and sale price ***********/ \nfunction productOnSale(){\n\treturn jQuery('#pdp-container .strike-through.list span.value[itemprop=\"price\"]').length > 0;\n}\n/* If there is a strikethough price, return that */\n/* Otherwise return the original price */\nfunction getOriginalPrice(){\n\tif (jQuery(ORIGINAL_PRICE_SELECTOR).length > 0){\n\t\treturn jQuery(ORIGINAL_PRICE_SELECTOR).text().trim().replace('$', '');\n\t}\n\treturn jQuery(SALE_PRICE_SELECTOR).text().trim().replace('$', '');\n}\n\n/* If the product is on sale - return the sale price */\nfunction getSalePrice(){\n\tif(productOnSale()){\n\t\treturn jQuery(SALE_PRICE_SELECTOR).text().trim().replace('$', '');\n\t}\n\treturn false;\n}\n\n/******** item tracking *********/\nfunction trackItem() {\n\tbouncex.et.onTrue(validateItem, fireItemEvents, 10);\n}\n\nfunction buildItem() {\n\tvar item = {\n\t\tid: getPdpId(),\n\t\tcopy: getPageTitle(),\n\t\tcategory: getItemCategory(),\n\t\timageurl: getItemImage(),\n\t\turl: getPageUrl(),\n\t\tinstock: inStock(),\n\t\tstars: getStars(),\n\t\tbadge: getProductTileBadge(),\n\t\toldprice: getOriginalPrice(), \n\t\tsaleprice: getSalePrice()\n\t};\t\n\treturn item;\n}\n\nfunction fireItemEvents() {\n\tvar item = buildItem();\n\n\tbouncex.push(['item', item]);\n\tbouncex.push(['view item', {\n\t\t'item:id': item.id,\n\t\t'item:itemgroupid': item.id\n\t}]);\n\ttrackSku();\n}\n\n/******** catalog tracking *********/\nfunction trackSku() {\n\tif(jQuery(SKU_SELECTOR).length > 1){\t\t\n\t\tbouncex.et.onVarChange('sku', fireSelectSku);\n\t} else {\n\t\tfireSelectSku();\n\t}\n}\n\nfunction trackQvSku() {\n\tif(jQuery(SKU_SELECTOR).length > 1){\n\t\tbouncex.off(jQuery(SKU_SELECTOR), 'click.bx');\n\t\tbouncex.on(jQuery(SKU_SELECTOR), 'click.bx', function(){\n\t\t\tbouncex.setTimeout2(function(){\n\t\t\t\tfireSelectSku();\n\t\t\t\ttrackQvSku();\n\t\t\t}, 1500);\n\t\t});\n\t} else {\n\t\tfireSelectSku();\n\t}\n}\n\nfunction fireSelectSku() {\n\tvar groupId = getGroupId(),\n\t\tsku = bouncex.vars.sku,\n\t\tskuIsNum = !/\\D/.test(sku);\n\n\tif (sku && skuIsNum && bouncex.vars.prev_sku !== sku && groupId) {\n\t\tbouncex.push(['select_sku', {\n\t\t\t'item:id': groupId,\n\t\t\t'item:itemgroupid': groupId,\n\t\t\t'item:feedid': sku\n\t\t}]);\n\t\tsetVarAndCookie('prev_sku', sku);\n\t}\n}\n\n/*************** Category Tracking ***************/\nfunction getItemsIds() {\n\treturn jQuery(CATEGORY_GRID_ITEM).map(function () {\n\t\tvar itemId = jQuery(this).attr('data-pid');\n\t\t\n\t\tif(itemId) {\n\t\t\treturn itemId;\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': getCategoryTitle(),\n\t\t\t'page:url': getPageUrl()\n\t\t}]);\n\t\ttrackQuickview();\n\t}\n}\n\n/******** QuickView tracking *********/\nfunction trackQuickview() {\n\tbouncex.et.onVisible(QUICVKIEW_MODAL, function(){\n\t\tvar itemId = getGroupId();\n\t\t\n\t\tbouncex.push(['view item', {\n\t\t\t'item:id': itemId,\n\t\t\t'item:itemgroupid': itemId\n\t\t}]);\n\t\ttrackQvSku();\n\t});\t\n}\n\n/******** track Add To Cart *********/\nfunction trackAddToCart(e, x, s){\n\tif (s.url.indexOf('/Cart-AddProduct') > -1 && s.type === 'POST'){\n\t\tvar cookie;\n\n\t\tbouncex.et.onTrue(\n\t\t\tfunction(){\n\t\t\t\tcookie = bouncex.getBounceCookie(CART_COOKIE);\n\t\t\t\treturn cookie;\n\t\t\t}, function(){\n\t\t\t\tbouncex.push(['add to cart', {\n\t\t\t\t\t'item:id': getGroupId(),\n\t\t\t\t\t'cart:token': cookie\n\t\t\t\t}]);\n\t\t\t\tsetVarAndCookie('cart_set',true);\n\t\t\t}, \n\t\t20);\n\t}\n}\n\n/******** cart replenishment *********/\nfunction replenish(cart){\n\tbouncex.utils.cookies.create({\n\t\tname: CART_COOKIE, \n\t\tvalue: cart.token \n\t});\n\twindow.location.href = window.location.pathname + '?bx_replen=true';\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\tsetVarAndCookie('cart_set', false);\n\t}\n}\n\n/*************** Cart Tracking ***************/\nfunction initCartTracking() {\n\tbouncex.et.cart.init({\n\t\treplenish: replenish,\n\t\treplenishmentType: 'cookie'\n\t});\n\tbouncex.et.on(jQuery(document), 'ajaxComplete', trackAddToCart);\n\tbouncex.et.onVarChange('cart_qty', trackEmptyCart);\n}\n\n/******** track logged in user *********/\nfunction trackLoggedInUser() {\n window.dataLayer = window.dataLayer || [];\n\tvar email = (window.dataLayer.find(x => x.email) || {}).email;\n\tbouncex.et.onTrue(\n\t\tfunction () {\n\t\t\temail = (window.dataLayer.find(x => x.email) || {}).email;\n\t\t\treturn bouncex.utils.validate.email(email);\n\t\t},\n\t\tfunction () {\n\t\t\tbouncex.push([\n\t\t\t\t'user',\n\t\t\t\t{\n\t\t\t\t\temail: email,\n\t\t\t\t\tsource: 'LoggedIn'\n\t\t\t\t}\n\t\t\t]);\n\t\t\tbouncex.setVar('logged_in_identified', true);\n\t\t},\n\t\t5\n\t);\n}\n\n/******** itiniate tracking code *********/\nif (isValidDomain() && isEnglish() && isValidIp()) {\n\tinitCartTracking();\n\ttrackLoggedInUser();\n\n\tif(!isGiftCard() && !isReferFriend()){\n\t\tswitch (bouncex.website.pts) {\n\t\t\tcase 'product':\n\t\t\t\ttrackItem();\n\t\t\t\tbreak;\n\t\t\tcase 'category':\n\t\t\t\ttrackCategory();\n\t\t\t\tbreak;\n\t\t\tcase 'search':\n\t\t\t\ttrackQuickview();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\t\n\t}\n}\n","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"jQuery('html[data-pagetype=\"cart\"]').length > 0"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"jQuery('html[data-pagetype=\"category\"]').length > 0"}]]},"checkout":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"jQuery('html[data-pagetype=\"checkout\"]').length > 0"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"jQuery('html[data-pagetype=\"home\"]').length > 0"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"jQuery('html[data-pagetype=\"pdp\"]').length > 0"}]]},"search":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"jQuery('html[data-pagetype=\"search-results\"]').length > 0"}]]}},"els":null,"vars":[{"name":"logged_in","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\r\n if(bouncex.website.pts === \"cart\"){\r\n return null\r\n } else if (bouncex.website.pts === \"checkout\"){\r\n return jQuery('.checkout-sign-out-link:visible').length > 0;\r\n } else {\r\n return jQuery('.sign-in .my-account:visible').length > 0\r\n }\r\n})()\r\n ","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":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\r\n if (bouncex.website.pts === \"checkout\"){\r\n return null\r\n } else {\r\n return jQuery('.minicart-quantity:first').text().trim() || 0\r\n }\r\n})()","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\r\n if (jQuery('.minicart-footer span:contains(\"Subtotal\")').length > 0){\r\n return jQuery('.minicart-footer span:contains(\"Subtotal\")').parent().text().trim().match(/\\d+/g)[0]\r\n } if(bouncex.website.pts === \"cart\") {\r\n return jQuery('.sub-total:first').text().trim().slice(1) || 0\r\n }\r\n if(jQuery('.minicart-quantity:first').text().trim() === \"0\"){\r\n return 0;\r\n }\r\n return null\r\n})()","trigger":""},{"name":"prev_sku","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"sku","polling":"vars","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var url = jQuery('.quantity-select option:first').attr('data-url');\n return bouncex.utils.getParam('pid', url);\n})();","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","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":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","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":{"id":"espemailid"},"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":0,"spatm":1,"preinit_cjs":"var audiences = {\n /* PROPERTIES */\n testMode: false,\n interceptEnabled: false,\n mirrorEnabled: false,\n getCartView: function() {\n var cartProds = document.querySelectorAll('.cart .product-card-container .product-info'), items = [];\n for (var x = 0; cartProds.length > x; x++) {\n var price = cartProds[x].querySelector('[itemprop=\"price\"]').getAttribute('content'),\n removeEl = cartProds[x].querySelector('.remove-product') ? cartProds[x].querySelector('.remove-product').dataset : [],\n sku = bouncex.utils.getNestedProp('pid', null, removeEl),\n masterid = bouncex.utils.getNestedProp('masterid', null, removeEl),\n quantity = cartProds[x].querySelector('.quantity').value,\n prodId = sku ? sku: null;\n if (!prodId || !quantity || !price) {\n _shq.log('Not all data collected to fire cartView', 'error', [prodId,quantity,price,]);\n return;\n }\n items.push({ ProductId: prodId, UnitPrice: +price, Quantity: quantity });\n }\n var cartId = getPRCart().cart.cartId,\n subtotal = getPRCart().cart.orderSubTotal;\n _shq.push(['onCartView',{\n Items: items,\n Total: subtotal,\n CartId: cartId,\n }]);\n },\n useIntercept: function useIntercept() {\n if (!this.interceptEnabled) {\n return;\n }\n bouncex.utils.shqInterceptEvent = {\n // true blocks default event, defined functions run in place of default\n productView: function () {\n var pdpArr = window.dataLayer.filter(function (e) {\n return e.event === 'pdp';\n });\n if (pdpArr.length > 0) {\n var pdpData = bouncex.utils.getNestedProp('ecommerce.detail.products[0]',{},pdpArr[0]);\n var productID = pdpData.id;\n if (!productID) {\n return;\n }\n _shq.push(['onProductView', { productId: productID }]);\n }\n },\n cartAdd: function () {\n var pdpArr = window.dataLayer.filter(function (e) {\n return e.event === 'pdp';\n });\n if (pdpArr.length > 0) {\n var pdpData = bouncex.utils.getNestedProp('ecommerce.detail.products[0]',{},pdpArr[0]),\n productID = pdpData.id,\n sku = jQuery('[itemprop=\"productSKU\"]').text() || bouncex.vars.sku,\n price = Number(jQuery('[itemprop=\"price\"]').attr('content')).toFixed(2),\n quantity = 1;\n _shq.push(['onCartAdd',{\n Items: [\n {\n ProductId: sku,\n Quantity: quantity,\n UnitPrice: price,\n }]}\n ]);\n }\n },\n purchase: function (wkndEventParams) {\n var prodErr = false;\n var orderId = bouncex.utils.getNestedProp('obj.order_id', null, wkndEventParams);\n var purchTotal =Number(bouncex.utils.getNestedProp('obj.amount', 0, wkndEventParams)) - ( Number(bouncex.utils.getNestedProp('obj.tax', 0, wkndEventParams)) + Number(bouncex.utils.getNestedProp('obj.shipping', 0, wkndEventParams)) );\n var orderInfo = bouncex.utils.getNestedProp('obj.item', null, wkndEventParams);\n var orderArray = orderInfo && orderInfo.map(function (ea) {\n return { productId: ea.id, price: ea.price, qty: ea.quantity };\n });\n\n if (orderArray.length < 1) {\n prodErr = true;\n }\n\n if (!prodErr && orderId){\n _shq.push(['onPurchase',{\n 'orderItems' : orderArray,\n 'orderId': orderId,\n 'total': purchTotal.toFixed(2)\n }]);\n }else{\n _shq.push(['onPurchase',\n {\n 'orderId' : orderId || 'NoOrderId-' + randomNumber(),\n 'usebasket': true\n }]);\n }\n }\n };\n },\n /* Mirror Events: For firing events when WKND events fire.*/\n useMirror: function useMirror() {\n if (!this.mirrorEnabled) {\n return;\n }\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 if (window.pageType === 'search-results') {\n var term = bouncex.utils.url.getParam('q');\n if (!term) {\n return;\n }\n _shq.push(['onSearch',{\n searchPhrase: term,\n }]);\n }\n if(window.pageType === 'cart'){\n audiences.getCartView();\n }\n },\n };\n },\n /* Initialize audiences Tracking */\n init: function init() {\n // test mode\n if (this.testMode && !bouncex.testmode.bxdev) return;\n // attach object to bouncex.et\n if (!bouncex.et) {\n return;\n }\n bouncex.et.audiences = this;\n // initialize main functions\n this.useIntercept();\n this.useMirror();\n },\n};\n\naudiences.init();\n","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"Send this text to sign-up for automated, recurring Cole Haan marketing and support texts, like cart reminders.","eventSharing":false,"shqId":"all1sy6g1h-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":"264912922","ga4_measurement_id":"G-1JFSQ8BTY3","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":"005ab6b05ecd8ae76686b26c919990d4","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"75060a85c1a4aebcc6f779b9e84db722","onsite":"abbdf7a49be9b52b097917b7b527b262","sms":"e39203556bab2366e56296ce42e974a7","websdk":"3cdb3cd0b71927a211b8afdc85918cfd"}; 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_a105bfc38e137e962d06a9aa59c59485.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); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();