(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":5335,"name":"The Children's Place CA","cookie_name":"bounceClientVisit5335","domain":"childrensplace.comcahome","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"\n/* wrike 909738585 (redirects to) -> 783331164: reload campaigns if user identified, but no campaigns showing */\nif (!bouncex.vars.user_identified_ibx) {\n bouncex.et.onVarChange('user_identified_ibx', function(old, new_val) {\n var campaign_visible = false;\n for (var c_id in bouncex.campaigns) {\n if (bouncex.campaigns.hasOwnProperty(c_id) && bouncex.campaigns[c_id].ad_visible) {\n campaign_visible = true;\n break;\n }\n }\n \n /* RTV value was previously false, currently true, and no campaigns impressed */\n if (!old && new_val && !campaign_visible) {\n bouncex.reload_campaigns();\n }\n });\n}","force_https":false,"waypoints":false,"content_width":900,"gai":"","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,"mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"var PDP_ID;\n\n/* --------------------------------- HELPERS -------------------------------- */\nfunction getUrl() {\n return bouncex.utils.url.allowParams();\n}\n\nfunction setVarAndCookie(varName, value) {\n bouncex.setVar(varName, value);\n bouncex.setBounceCookie();\n}\n\nfunction isCollectionPage(url) {\n var collectionIdentifiers = ['collection', '/c/'];\n\n for (var id of collectionIdentifiers) {\n if (url.indexOf(id) > -1) {\n return true;\n }\n }\n return false;\n}\n\nfunction formatItemId(url) {\n var lang = getUrl().indexOf('fr.') > -1 ? 'fr' : 'en';\n var urlMatch = bouncex.utils.url.allowParams([], url).match(/\\d+[-|_]\\w+/g);\n return urlMatch ? urlMatch.pop().replace('-', '_') + '-' + lang : '';\n}\n\nfunction getCurrentProduct() {\n if (window.__NEXT_REDUX_STORE__ && typeof window.__NEXT_REDUX_STORE__.getState === 'function') {\n var state = window.__NEXT_REDUX_STORE__.getState();\n return bouncex.utils.getNestedProp('ProductDetail.currentProduct', {}, state);\n }\n return {};\n}\n\nfunction getSkuObj() {\n\tvar selectedColor = jQuery('.image-chips-selector-title-name').text(),\n\t\tselectedFit = jQuery('.fit-selector .item-selected-option').text(),\n\t\tselectedSize = jQuery('.size-selector .item-selected-option').text() || jQuery('.size-and-fit-detail-item input:checked').val() || jQuery('.size-and-fit-detail-item.item-selected-option input').val(),\n\t\tcurrentProduct = getCurrentProduct(),\n\t\tcolorArr = bouncex.utils.getNestedProp('colorFitsSizesMap', [], currentProduct),\n\t\tcolorObj,\n\t\tfitArr,\n\t\tfitObj,\n\t\tsizeArr,\n\t\tselectedSku,\n\t\tselectedGroupId;\n\n\t// If correct object has not loaded we can not fire select_sku events\n\tif (currentProduct && formatItemId(currentProduct.productId) !== PDP_ID) {\n\t\treturn;\n\t}\n\n\t// Find the selected color from the window obj color array.\n\t// If no color is selected (i.e. there is only one color) then\n\t// our colorObj will be the first element from the color array.\n\tif (selectedColor) {\n\t\tcolorArr.forEach(function(c){\n\t\t\tif (c.color.name === selectedColor){\n\t\t\t\tcolorObj = c;\n\t\t\t}\n\t\t});\n\t} else {\n\t\tcolorObj = colorArr[0] || {};\n\t}\n\n\tfitArr = colorObj && colorObj.fits || [];\n\n\t// find the selected fit from the colorObj fits array.\n\t// If no fit is selected (i.e. there is only one fit) then\n\t// our fitObj will be the first element from the fits array.\n\tif (selectedFit) {\n\t\tfitArr.forEach(function(f){\n\t\t\tif (f.fitName === selectedFit){\n\t\t\t\tfitObj = f;\n\t\t\t}\n\t\t});\n\t} else {\n\t\tfitObj = fitArr[0] || {};\n\t}\n\n\tsizeArr = fitObj && fitObj.sizes || [];\n\n\t// find the selected size from the size array\n\t// and grab the skuID and groupID from here\n\tsizeArr.forEach(function(variant){\n\t\tif (variant.sizeName === selectedSize) {\n\t\t\tselectedSku = variant.variantId;\n\t\t\tselectedGroupId = variant.prodPartNo;\n\t\t}\n\t});\n\n\treturn {\n\t\tselectedSku: selectedSku,\n\t\tselectedGroupId: selectedGroupId\n\t};\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\nfunction getProdName() {\n return jQuery('[itemprop=name], .product-title, [class^=title-wrapper] h2').contents().eq(0).text().trim();\n}\n\nfunction getItemImage() {\n var $imgUrls = jQuery('meta[property=\"og:image\"]');\n\n for (var i in $imgUrls) {\n var url = $imgUrls.eq(i).attr('content');\n\n if (url && url.indexOf('.mp4') < 0) {\n return url.replace('/w_200/', '/w_600/');\n }\n }\n}\n\nfunction getItem() {\n var url = getUrl();\n return {\n id: formatItemId(url),\n copy: getProdName(),\n category: jQuery('.breadcrum-container span:last').text() || 'Global',\n url: url,\n imageurl: getItemImage(),\n instock: !jQuery('.add-to-bag-button').attr('disabled'),\n abanexclude: jQuery('#productDetailsSection .product-badge').first().text().toLowerCase().indexOf('just a few left') > -1\n };\n}\n\nfunction fireViewItem(itemId) {\n var pushItem = {\n 'item:id': itemId,\n 'item:itemgroupid': itemId.split('-')[0]\n };\n\n bouncex.push(['view item', pushItem]);\n}\n\nfunction isExcluded(item) {\n return (\n item.url.indexOf('giftcard') > -1 ||\n bouncex.utils.getNestedProp('pageData.pageType') === 'outfit'\n );\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = getItem();\n return (\n !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.url &&\n !!item.imageurl\n );\n },\n function () {\n if (isExcluded(item)) {\n return;\n }\n\n if (isCollectionPage(item.url)) {\n fireCollectionPdpTracking(item);\n return;\n }\n\n bouncex.setTimeout2(function () {\n if (formatItemId(item.imageurl).indexOf(item.id) > -1) {\n bouncex.push(['item', item]);\n PDP_ID = item.id;\n initializeSkuEvents();\n fireViewItem(item.id);\n trackStylitics(item.id);\n }\n }, 1500);\n },\n 10\n );\n}\n\n// Collection pages do not have groupid's\nfunction fireCollectionPdpTracking(item) {\n item.imageurl = jQuery('.outfit-carousal-image.full-size-desktop-image').attr('src');\n\n if (!item.imageurl) {\n return;\n }\n\n bouncex.push(['item', item]);\n fireViewItem(item.id);\n}\n\nfunction trackStylitics(itemId) {\n jQuery('img[src*=\"content.stylitics\"]').each(function () {\n var el = jQuery(this),\n imageUrl = el.attr('src'),\n itemUrl = el.parent().parent().attr('href') || '';\n\n var withHost = itemUrl.indexOf(window.location.host) > -1 ? itemUrl : window.location.origin + itemUrl;\n\n if (imageUrl && itemUrl) {\n bouncex.push([\n 'view_collection',\n {\n image_url: bouncex.utils.url.allowParams([], imageUrl),\n item_url: withHost,\n item_id: itemId\n },\n ]);\n }\n });\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\nfunction initializeSkuEvents() {\n\tvar lastSkuFired,\n\t\tskuObj;\n\n\tbouncex.et.on(\n\t\tbouncex.document,\n\t\t'click.bxsku',\n\t\tfunction () {\n\t\t\tbouncex.et.onTrue(function () {\n\t\t\t\tskuObj = getSkuObj();\n\t\t\t\treturn skuObj && skuObj.selectedSku && skuObj.selectedSku !== lastSkuFired;\n\t\t\t}, function () {\n\t\t\t\tbouncex.push([\n\t\t\t\t\t'select_sku',\n\t\t\t\t\t{\n\t\t\t\t\t\t'item:id': formatItemId(skuObj.selectedGroupId),\n\t\t\t\t\t\t'item:itemgroupid': skuObj.selectedGroupId,\n\t\t\t\t\t\t'item:feedid': skuObj.selectedSku\n\t\t\t\t\t}\n\t\t\t\t]);\n\t\t\t\tlastSkuFired = skuObj.selectedSku;\n\t\t\t}, 5);\n\t\t},\n\t\t'.size-and-fit-detail-item, .color-title-container'\n\t);\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\nfunction getItemIdsCat() {\n var ids = [],\n $tiles = jQuery('.product-image a'),\n i = 0,\n id = '';\n\n for (i; i < $tiles.length; i++) {\n id = formatItemId($tiles.eq(i).attr('href') || '');\n if (!id || ids.indexOf(id) > -1) {\n continue;\n }\n\n ids[ids.length] = id;\n }\n\n return ids.join(',');\n}\n\nfunction getCategoryObject() {\n return {\n 'page:url': getUrl(),\n 'items:ids': getItemIdsCat()\n };\n}\n\nfunction initializeCategoryEvents() {\n var categoryObj;\n\n bouncex.et.onTrue(\n function () {\n categoryObj = getCategoryObject();\n return (\n !!categoryObj['items:ids'].length && !!categoryObj['page:url']\n );\n },\n function () {\n bouncex.push(['view category', categoryObj]);\n },\n 10\n );\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\nfunction fireAddToCart(itemId) {\n bouncex.push(['add to cart', { 'item:id': itemId }]);\n\n if (bouncex.vars.cart) {\n return;\n }\n\n setVarAndCookie('cart', true);\n}\n\nfunction trackGlobalAtc() {\n bouncex.et.onVisible(\n '.addedToBagWrapper.new-added-to-bag-modal',\n function (e) {\n var src = jQuery(e).find('.product img.product-image, img[alt=\"Product\"]').eq(0).attr('src'),\n itemId = src ? formatItemId(src) : '';\n\n if (itemId) {\n fireAddToCart(itemId);\n }\n }\n );\n}\n\nfunction emptyCart() {\n bouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n if (bouncex.vars.cart && newVal === 0 && oldVal > 0) {\n bouncex.push(['empty_cart']);\n setVarAndCookie('cart', false);\n }\n });\n}\n\nfunction isValidEmptyCart() {\n return (\n bouncex.vars.cart_qty === 0 &&\n !bouncex.utils.url.getParam('bx_cart') &&\n !bouncex.utils.getParam('bx_replen')\n );\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenish: function () {},\n replenishmentType: 'single'\n });\n\n // to handle universal cart edge cases\n if (bouncex.vars.cart) {\n bouncex.setTimeout2(function () {\n if (isValidEmptyCart()) {\n bouncex.push(['empty_cart']);\n setVarAndCookie('cart', false);\n }\n }, 2500);\n }\n emptyCart();\n}\n\n/* ------------------------------ QUICKVIEW ----------------------------- */\nfunction initializeQuickviewEvents() {\n bouncex.et.onVisible('.TCPModal__InnerContent.atb-innerContent', function (elem) {\n var itemId = elem.find('.add-to-bag-button.quick-view-drawer-redesign').attr('unbxdparam_variant');\n if (itemId) {\n fireViewItem(formatItemId(itemId));\n }\n }\n );\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\nfunction initializeUserTracking() {\n var userEmail;\n if (bouncex.vars.logged_in && !bouncex.vars.logged_in_identified) {\n userEmail = jQuery('.profile-tile-carousel-new .text-overflow-ellipsis').eq(0).text() || localStorage.getItem('userEmail');\n\n if (!bouncex.utils.validate.email(userEmail)) {\n return;\n }\n\n bouncex.push([\n 'user',\n {\n email: userEmail,\n source: 'LoggedIn'\n },\n ]);\n setVarAndCookie('logged_in_identified', true);\n }\n}\n\n/* --------------------------- Custom Save For Later Cart Event -------------------------- */\n\nfunction trackSaveForLater() {\n var saveForLaterSelectors = 'button[data-locator=\"Save For Later\"], li:has(.save-for-later-icon)',\n itemId,\n itemUrl;\n\n bouncex.et.onVisible(saveForLaterSelectors, function (el) {\n if (bouncex.state.mobile) {\n var upc = jQuery(el).closest('ul').find('div[data-locator=\"cartItemUpc\"]').text().trim().replace('UPC: ','');\n itemUrl = jQuery('img[unbxdparam_sku=\"' + upc + '\"]').closest('.newCartTile').find('.imageWrapper a').attr('href') || '';\n itemId = formatItemId(itemUrl);\n }\n\n bouncex.off(bouncex.document, 'click.bx', saveForLaterSelectors);\n bouncex.et.on(bouncex.document, 'click.bx', function(e){\n if (!bouncex.state.mobile) {\n itemId = formatItemId((jQuery(e.target).parents('.product-tile-wrapper').find('.imageWrapper a').attr('href') || '').split('/').pop());\n }\n\n if(itemId) {\n bouncex.push(['saveforlater', {\n 'item:id' : itemId\n }]);\n }\n }, saveForLaterSelectors);\n });\n}\n\n/* --------------------------- Custom Cancel Event -------------------------- */\nfunction initializeCustomCancelEvent() {\n if (bouncex.utils.url.getParam('instore_coupon')) {\n bouncex.push(['conversion', {}]);\n bouncex.push(['used_coupon', {}]);\n bouncex.push(['visit', { 'customer:hasconverted': 1 }]);\n }\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return getUrl().indexOf('childrensplace.com/ca') > -1;\n}\n\nfunction isValidLang() {\n var validLanguages = ['fr-CA', 'en'];\n return validLanguages.indexOf(jQuery('html').attr('lang')) > -1;\n}\n\nfunction isValidForTracking() {\n return isValidDomain() && isValidLang();\n}\n\nfunction init() {\n if (!isValidForTracking()) {\n return;\n }\n\n if (getUrl().indexOf('/account') > -1) {\n initializeUserTracking();\n }\n\n initializeCartEvents();\n initializeQuickviewEvents();\n initializeCustomCancelEvent();\n trackGlobalAtc();\n\n switch (bouncex.website.pts) {\n case 'category':\n case 'search':\n initializeCategoryEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\n\t\tcase 'cart':\n\t\t\ttrackSaveForLater();\n\t\t\tbreak;\n default:\n break;\n }\n}\n\ninit();\n","dge":true,"bxidLoadFirst":false,"pie":false,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/bag"}]]},"category":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/ca/c/"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/ca/outfit"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === '/ca/home';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"test-uat"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"rwd-prd"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":""}]]},"product":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/p/"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search/"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function() {\n if (bouncex.website.pts === 'checkout') {\n return null;\n }\n\n return jQuery('.account-info.user-name').length > 0 || !!jQuery('.user-profile-icon').length || !!jQuery('.loggedin-username-initials-block').length;\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":"no","page_types":[],"testmode":false,"default":"0","code":"Number(jQuery('.cartCount, .cart-count').eq(0).text().replace(/[^0-9.]/g, ''));","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (bouncex.website.pts === 'checkout' || bouncex.website.pts === 'cart') {\n return Number(jQuery('.balance-total-columns').text().replace(/[^0-9.]/g, ''));\n }\n\n let cartQty = Number(jQuery('.cartCount, .cart-count').text().replace(/[^0-9.]/g, ''));\n\n if (cartQty === 0) {\n return 0;\n }\n\n return Number(jQuery('.subTotal, .added-to-bag-subtotal').text().replace(/[^0-9.]/g, '')) || null;\n})();","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('.thank-you__label:visible').length > 0 || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"page_type","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"has_20_off_coupon","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.isObject(bouncex.cookie.cpn) && (bouncex.cookie.cpn['20_off'] || bouncex.cookie.cpn['25_off'] || bouncex.cookie.cpn['25_off_2024'] || bouncex.cookie.cpn['30_off_2024']) || null;","trigger":"pageload"},{"name":"user_identified_ibx","polling":"vars","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.url.getParam('utm_source') === \"wunderkind\" || !!bouncex.utils.url.getParam('om_rid') || !!bouncex.utils.url.getParam('ueh') || null;","trigger":"pageload"},{"name":"selected_language","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.url.allowParams().indexOf('fr.childrensplace') > -1 ? 'fr':'en';","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":0,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"bxid":"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 currentPageIdentifier: function() {\n return window.location.href;\n }\n});\n\n(function(){\n /* wrike 909738585 (redirects to) -> 783331164: cookie coupon from ibx clickthrough */\n var couponCode = bouncex.utils.url.getParam('coupon');\n if (couponCode.length > 0 && couponCode.indexOf('') < 0 && bouncex.utils.url.getParam('utm_source') === \"wunderkind\") {\n bouncex.updateBounceCookie(function (cookie) {\n if (!cookie) return;\n cookie.cpn = bouncex.utils.isObject(cookie.cpn) ? cookie.cpn : {};\n cookie.cpn['20_off'] = couponCode;\n });\n }\n})();","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":true,"fmc":["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":"","ga4_measurement_id":""} ; 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: 0 }; bouncex.assets = {"ads":"060c82010be32c8940e5ef98bcf77a22","creativesBaseStyles":"a53944a2","gpsAuction":"1375a7b38c31e98d14fe7f396b72da14","inbox":"02aca5df0e176b8810a86da97ac05424","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"0704dae1eb637cbeb4a847506058402d"}; 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.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_e6aef002e162dc3c3a947c6f327cd93d.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"}]; 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(); }})();