(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":4994,"name":"Macy's","cookie_name":"bounceClientVisit4994","domain":"macys.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"/* enable.feature.COMPLIANCE_REFACTOR_ENABLED */\n/* enable.feature.SHARED_RUNTIME */\n/*** https://www.wrike.com/open.htm?id=930410723 ***/\nbouncex.defaultImpressionData = {\n method_type:'W',\n link_element: 'wunderkind spring 2023 email sign up',\n content_position: '',\n zone_type: 'emailsignup',\n zone_title: '',\n media_type: 'lightbox',\n attribute1:'',\n attribute2:'',\n attribute3:'',\n attribute4:'',\n};\n\nbouncex.utagEventDefaults = {\n 'impression' : {\n event_name : 'content view',\n impression_type : 'wunderkind email lightbox impression'\n },\n 'click' : {\n event_name : 'content link click',\n link_name : 'wunderkind email light box - Clicks to Claim 25% off'\n },\n 'submit' : {\n event_name : 'content link click',\n site_action : 'email signup',\n action_location: 'wunderkind spring 2023 email sign up'\n },\n 'submit error' : {\n event_name : 'error link',\n error_category : 'wunderkind email lightbox',\n error_code : '',\n error_label : '',\n error_message : '',\n error_scope : 'field',\n error_misc : ''\n },\n 'experiment' : {\n event_name : 'experiment',\n experimentation_ids : []\n },\n 'continue' : {\n event_name : 'wunderkind email lightbox_you are already on the list_continue shopping',\n custom_link_name : 'wunderkind email lightbox_you are already on the list_continue shopping'\n }\n};\n\n/**\n * @param {Object} eventConfig\n * @param {string} eventConfig.eventType - what user/campaign event triggered the report\n * @param {string} eventConfig.link_name - CTA message\n * @param {string} eventConfig.errorMsg - error message from submit API call\n * @param {Object} eventConfig.customProps - overrides for default event props\n * @param {Object} impressionData - customizations to impression_data\n */\n\nbouncex.utagReport = function(eventConfig, impressionData = {}) {\n var wkndEventData = Object.assign({}, bouncex.utagEventDefaults[eventConfig.eventType], eventConfig.customProps);\n var impression_data = Object.assign({}, bouncex.defaultImpressionData, impressionData);\n\n if (window.utag && typeof window.utag.link === 'function') {\n // backwards compatability\n switch(eventConfig.eventType) {\n case 'impression':\n case 'submit':\n wkndEventData.impression_data = [ impression_data ];\n break;\n case 'click':\n wkndEventData.link_name = eventConfig.link_name || wkndEventData.link_name;\n wkndEventData.impression_data = [ impression_data ];\n break;\n case 'submit error':\n wkndEventData.error_message = eventConfig.errorMsg || wkndEventData.error_message;\n break;\n case 'experiment':\n if (eventConfig.experimentation_ids) {\n wkndEventData.experimentation_ids = [ eventConfig.experimentation_ids ];\n }\n break;\n case 'continue':\n break;\n default:\n bouncex.log('custom js utagReport: no event type or invalid event type specified.');\n }\n\n window.utag.link(wkndEventData);\n bouncex.log('custom js utagReport \"' + eventConfig.eventType + '\": ', wkndEventData);\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":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\n\nvar CART_COOKIE_KEY = 'macys_online_uid';\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getUrl(params) {\n return bouncex.utils.url.allowParams(params);\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getJSONData() {\n var stringData = bouncex.utils.getNestedProp('__INITIAL_STATE__._PDP_BOOTSTRAP_DATA', '');\n return bouncex.parseJSON(stringData);\n}\n\nfunction getItemCategory(j) {\n var categories = bouncex.utils.getNestedProp('product.relationships.taxonomy.categories', [], j);\n var category = categories.filter(function (x) {\n return x.type === 'homecategory';\n })[0];\n return typeof category === 'object' && category.name || 'Global';\n}\n\nfunction getItemBrand(jsonData) {\n if (bouncex.utils.getNestedProp('product.detail.brand.brandBreakout', '', jsonData)) {\n return replaceInvalidChars(bouncex.utils.getNestedProp('product.detail.brand.name', '', jsonData));\n }\n return '';\n}\n\nfunction getParentCategoryUrl() {\n var baseUrl = window.location.origin,\n lastBreadcrumbUrl = jQuery('a.breadcrumbs-item').last().attr('href'),\n cleanUrl;\n\n if (!lastBreadcrumbUrl) {\n return '';\n }\n\n cleanUrl = bouncex.utils.url.allowParams('id', lastBreadcrumbUrl);\n return cleanUrl.indexOf('www.macys.com') > -1 ? cleanUrl : baseUrl + cleanUrl;\n}\n\nfunction getHighLevelCategory() {\n var breadCrumbMap = {\n 'Dresses': 'Dresses',\n 'Jewelry': 'Jewelry',\n 'Men': 'Mens',\n 'Women': 'Womens',\n 'Furniture': 'Furniture'\n },\n breadCrumbs = jQuery('[data-el=breadcrumb] a').text();\n\n for (var breadCrumbMatch in breadCrumbMap) {\n if (breadCrumbs.indexOf(breadCrumbMatch) > -1) {\n return breadCrumbMap[breadCrumbMatch];\n }\n }\n\n return jQuery('.breadcrumbs-item').first().text().trim();\n}\n\nfunction replaceInvalidChars(text) {\n return text.replaceAll('™', '™').replaceAll('®', '®').replaceAll('©', '©');\n}\n\nfunction getFinalSalePrice(j) {\n return bouncex.utils.getNestedProp('product.pricing.price.finalPrice.values.0.value', false, j);\n}\n\nfunction getPrice(j, type) {\n var priceTiers = bouncex.utils.getNestedProp('product.pricing.price.tieredPrice', false, j),\n price = false;\n\n priceTiers.forEach(function (tier) {\n if (tier.values[0].type === type) {\n price = tier.values[0].value;\n }\n });\n\n return price;\n}\n\nfunction getItem(jsonData) {\n var brand = getItemBrand(jsonData),\n salesPrice = getFinalSalePrice(jsonData) || getPrice(jsonData, 'discount'),\n originalPrice = getPrice(jsonData, 'regular');\n\n return {\n id: bouncex.utils.url.getParam('ID') || bouncex.utils.getNestedProp('product.id', false, jsonData),\n copy: replaceInvalidChars(bouncex.utils.getNestedProp('product.detail.name', false, jsonData)),\n category: getItemCategory(jsonData),\n url: getUrl(['ID']).replace('registry/wedding/', ''),\n price: salesPrice ? salesPrice.toFixed(2) : originalPrice.toFixed(2),\n originalPrice: salesPrice ? originalPrice.toFixed(2) : '', // do not pass originalPrice if not on sale\n brand: brand,\n highlevelcategory: getHighLevelCategory(),\n imageurl: (bouncex.utils.getNestedProp(['utag', 'data', 'meta.og:image']) || '').replace(/amp;/g, ''),\n instock: bouncex.utils.getNestedProp('product.availability.available', jQuery('.p-not-avail-lbl').length === 0, jsonData),\n parentcategoryurl: getParentCategoryUrl()\n };\n}\n\nfunction isExcluded(item) {\n return item.url.indexOf('gift-card') > -1 || bouncex.getBounceCookie('currency') !== 'USD';\n}\n\nfunction fireViewItem(id) {\n bouncex.push(['view item', {\n 'item:id': id\n }]);\n}\n\nfunction hasVariants(j) {\n var check = false;\n try {\n check = j.product.detail.numberOfColors !== '1' || j.product.traits.hasOwnProperty('sizes');\n } catch (e) {\n check = jQuery('.color-way-tier').length > 0 || jQuery('.size-list').length > 0;\n }\n\n return check;\n}\n\nfunction initializeItemEvents() {\n var item,\n jsonData = getJSONData();\n\n bouncex.et.onTrue(\n function () {\n item = getItem(jsonData);\n return !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.price &&\n !!item.url &&\n !!item.imageurl;\n },\n function () {\n if (isExcluded(item)) {\n return;\n }\n bouncex.push(['item', item]);\n\n fireViewItem(item.id);\n\n // fire select sku on page load for items that have no variations\n if (!hasVariants(jsonData)) {\n var feedId = getFeedId(jsonData);\n if (feedId) {\n fireSelectSku(item.id, feedId);\n }\n } else {\n initializeSkuEvents(item.id);\n }\n },\n 10\n );\n}\n\n/* ------------------------------- SKU TRACKING ----------------------------- */\n\nfunction initializeSkuEvents(groupId) {\n var jsonData = getJSONData(),\n lastFeedId;\n\n bouncex.on(bouncex.document, 'click.bx', function () {\n var feedId = getFeedId(jsonData);\n\n if (!!groupId && !!feedId && feedId !== lastFeedId) {\n fireSelectSku(groupId, feedId);\n lastFeedId = feedId;\n }\n }, '.swatch-itm, .color-swatch');\n}\n\nfunction fireSelectSku(groupId, feedId) {\n bouncex.push([\n 'select_sku',\n {\n 'item:id': groupId,\n 'item:itemgroupid': groupId,\n 'item:feedid': feedId\n }\n ]);\n}\n\nfunction getFeedId(j) {\n var upcObjs = bouncex.utils.getNestedProp('product.relationships.upcs', {}, j);\n var upcs = Object.values(upcObjs),\n selectedUpc = false;\n\n // items with different prices for different variants\n if (upcs[0] && upcs[0].hasOwnProperty('pricing')) {\n var name = jQuery('h1 [data-auto=\"product-name\"]').first().text().trim();\n selectedUpc = upcs.filter(function (upc) {\n return upc.detail.name === name;\n })[0];\n } else {\n // all other items\n var color = jQuery('.color-swatch-div.selected').attr('data-color-id');\n var size = jQuery('.swatch-itm.selected').attr('data-index');\n selectedUpc = upcs.filter(function (u) {\n var sizeMatch = size ? bouncex.utils.getNestedProp('traits.sizes.selectedSize', '', u) === Number(size) : true;\n var colorMatch = color ? bouncex.utils.getNestedProp('traits.colors.selectedColor', '', u) === Number(color) : true;\n return sizeMatch && colorMatch;\n })[0]; // for single sku items, this gets first/only upc always\n }\n\n return selectedUpc && selectedUpc.identifier.upcNumber;\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getCategoryIdsUtag() {\n return bouncex.utils.getNestedProp('utag.data.product_id', []).join(',');\n}\n\nfunction getCategoryIdsDatalayer() {\n var viewItemList = window.dataLayer.filter(function (e) {\n return e[1] === 'view_item_list';\n })[0];\n\n var items = bouncex.utils.getNestedProp('2.items', [], viewItemList);\n\n return items.map(function (item) {\n return item.item_id;\n }).join(',');\n}\n\nfunction getCategoryIds() {\n return getCategoryIdsUtag() || getCategoryIdsDatalayer();\n}\n\nfunction getCategoryObject() {\n return {\n 'page:url': getUrl(['keyword', 'cm_kws_ls', 'id']),\n 'items:ids': getCategoryIds(),\n };\n}\n\nfunction initializeCategoryEvents(eventName) {\n var categoryObj;\n\n bouncex.et.onTrue(\n function () {\n categoryObj = getCategoryObject();\n return !!categoryObj['items:ids'].length &&\n !!categoryObj['page:url'] &&\n categoryObj['page:url'].indexOf('gift-card') === -1;\n },\n function () {\n bouncex.push([eventName, categoryObj]);\n },\n 10\n );\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\n\nfunction fireAddToCart(itemId) {\n var token;\n\n bouncex.et.onTrue(\n function () {\n token = bouncex.getBounceCookie(CART_COOKIE_KEY);\n return token;\n }, function () {\n bouncex.push([\n 'add to cart',\n {\n 'item:id': itemId,\n 'cart:token': token\n }\n ]);\n\n if (bouncex.vars.cart_set) {\n return;\n }\n\n bouncex.setVar('cart_set', true);\n },\n 10\n );\n}\n\nfunction emptyCart() {\n bouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n if (bouncex.vars.cart_set && newVal === 0 && oldVal > 0) {\n bouncex.push(['empty_cart']);\n bouncex.setVar('cart_set', false);\n }\n });\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenishmentType: 'cookie',\n replenish: function (cart) {\n bouncex.utils.cookies.create({\n name: CART_COOKIE_KEY,\n value: cart.token,\n domain: '.macys.com'\n });\n\n replenComplete();\n }\n });\n\n function replenComplete() {\n var id = bouncex.utils.url.getParam('ID'),\n idParam = id ? '&ID=' + id : '';\n\n window.location.href = window.location.origin +\n window.location.pathname +\n '?bx_replen=true' +\n idParam;\n }\n\n bouncex.et.on(bouncex.document, 'ajaxComplete.wknd', trackAJAXCart);\n\n emptyCart();\n\n initCartAddToCartTracking();\n}\n\nfunction initCartAddToCartTracking() {\n bouncex.et.on(jQuery(bouncex.document), 'click.bxmovetobag', function (e) {\n var clickedClass = jQuery(e.target).attr('class') || '',\n id = jQuery(e.target).parents('.save-for-later-product').find('.webid .value').first().text().trim();\n\n if (!id) {\n return;\n }\n\n if (clickedClass.match(/sfl-?move-?to-?bag/g)) {\n fireAddToCart(id);\n return;\n }\n\n if (clickedClass.match(/sfl-?move-?to-?list/g) || clickedClass.match(/sfl-?remove-?item/g)) {\n bouncex.push([\n 'remove_from_sfl',\n {\n 'item:id': id\n }\n ]);\n }\n\n });\n}\n\nfunction trackAJAXCart(e, xhr, settings) {\n if (\n settings.url.indexOf('/xapi/bag/v1/add') > -1\n && !bouncex.utils.url.getParam('bx_cart')\n && xhr.status === 200\n ) {\n var id = getProdIdFromATCPayload(settings.data);\n if (id) {\n fireAddToCart(id);\n }\n }\n}\n\nfunction getProdIdFromATCPayload(p) {\n var data = bouncex.parseJSON(p);\n var qs = data.item && data.item.prodSelectionInfo;\n if (!qs) { return false; }\n var params = bouncex.utils.url.queryStringToObject(qs);\n return params.PseudoProdID;\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction getUserEmail() {\n return bouncex.utils.getNestedProp('utag.data.customer_email');\n}\n\nfunction initializeUserTracking() {\n var userEmail;\n\n if (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\n return;\n }\n\n userEmail = getUserEmail();\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 bouncex.setVar('logged_in_identified', true);\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\nfunction getSaveForLaterItems() {\n return jQuery('#save-for-later-items .webid .value').toArray().reduce(function (items, item) {\n items.push(jQuery(item).text().trim());\n return items;\n }, []);\n}\n\n\nfunction initializeSaveForLaterEvents() {\n if (!bouncex.vars.logged_in) {\n return;\n }\n\n var oldItems = getSaveForLaterItems();\n\n fireSaveForLater(oldItems.join(','));\n\n bouncex.setInterval2(function () {\n var newItems = getSaveForLaterItems();\n // if no change, don't fire anything\n if (newItems.join(',') === oldItems.join(',')) {\n return;\n }\n\n oldItems = newItems;\n if (newItems.length === 0) {\n if (jQuery('#save-for-later-header-and-item-count').text().indexOf('(0)') > -1) {\n fireSaveForLater(newItems.join(','));\n }\n return;\n }\n\n fireSaveForLater(newItems.join(','));\n }, 1000);\n}\n\nfunction fireSaveForLater(items) {\n bouncex.push(['save_for_later', {\n 'item:ids': items\n }]);\n}\n\n\nfunction isValidDomain() {\n return getUrl().indexOf('www.macys.com/') > -1;\n}\n\nfunction init() {\n if (!isValidDomain()) {\n return;\n }\n\n initializeUserTracking();\n initializeCartEvents();\n initializeSkuEvents();\n\n switch (bouncex.website.pts) {\n case 'category':\n initializeCategoryEvents('view category');\n break;\n case 'search':\n initializeCategoryEvents('view search');\n break;\n case 'product':\n initializeItemEvents();\n break;\n case 'cart':\n bouncex.setTimeout2(initializeSaveForLaterEvents, 1000);\n break;\n default:\n break;\n }\n}\n\ninit();","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":"/my-bag"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":".tbe.zeus.fds.com"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('utag.data.page_type') === 'browse';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"cm_kws="}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"Checkout"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/my-checkout"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":".tbe.zeus.fds.com"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/forgot-password"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('utag.data.page_type') === 'home page';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":".tbe.zeus.fds.com"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('utag.data.page_type') === 'product';"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/product/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"gift-card"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"cm_kws="},{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('utag.data.page_type') == 'search results'"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.getNestedProp('window.utag.data',[])['cp.SignedIn'] === '1';","trigger":""},{"name":"ever_logged_in","polling":"all","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 var count = 0;\n if (bouncex.website.pts === 'cart') {\n jQuery('.quantity-selector-input, .bag-product .js-changeQuantity [selected=\"selected\"]').each(function() {\n count += Number((jQuery(this).val() || '').replace(/[^0-9.]/g, ''));\n });\n return count;\n }\n\n return Number(jQuery('#bagCount, #bag-icon-counter').text().replace(/[^0-9.]/g, ''));\n})();","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":true,"default":"0","code":"(function() {\n if (!!jQuery('#empty-bag-message').length) {\n return 0;\n }\n\n return Number(jQuery('#quickBagSubTotal, [data-auto=\"subtotal\"], #cx-at-SUM_SUB_TOTAL-value').text().replace(/[^0-9.]/g, '')) || null;\n})();","trigger":""},{"name":"prod_price","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"prod_name","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"in_stock","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"submitted_onsite","polling":"none","persist":"permanent","page_types":[],"testmode":true,"default":"false","code":"","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":"visit","page_types":[],"testmode":false,"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').is(':visible');","trigger":"pageload"},{"name":"page_type","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"cart_items_qty","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_items_offset","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":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"welcome_code","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.getParam('supc') || null;","trigger":"pageload"},{"name":"starrewards_login","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var guid = window.utag.data['cp.macys_online_uid'];\n var rewardsObj = bouncex.parseJSON(window.localStorage.getItem('hnfsr_' + guid), false);\n var signedIn = (window.utag.data['cp.SignedIn'] === '1');\n return rewardsObj && rewardsObj.hasOwnProperty('encryptedLoyaltyId') && signedIn\n})()","trigger":"pageload"},{"name":"starrewards_login_ever","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.starrewards_login || null;","trigger":"pageload"},{"name":"quickreg_submit","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"window.location.href.indexOf('emails.macys.com') !== -1 && ((jQuery('.post-titlethanku5 + p').text() === \"We'll send you a confirmation email with your promo code shortly.\") || (jQuery('.post-titlenew1').text() === 'Looks like you’re\\n already in our system!!')) ? true : null;","trigger":"pageload"},{"name":"quickreg_submit_ever","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.quickreg_submit || null;","trigger":"pageload"},{"name":"is_subscribed","polling":"none","persist":"permanent","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":{"smtrctid":"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":"bouncex.utils.shqInterceptEvent = {\n productView: true,\n cartAdd: true,\n cartEmpty: true,\n categoryView: true,\n purchase: true,\n coupon: true,\n search: true,\n checkout: true,\n email: true,\n phone: true\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 Macy's marketing and support texts, like cart reminders.","eventSharing":false,"shqId":"","enabled":1},"pde":true,"fmc":["US"],"fme":true,"fmx":"","sdk":{"android":{"enabled":true,"enabledVersions":["1.2.0","1.2.1","1.2.5","1.3.0","1.3.2","1.3.3"],"eventModifications":[]},"ios":{"enabled":true,"enabledVersions":["1.0.6","1.0.7","1.0.8","1.2.0","1.2.5","1.3.0","1.3.2","1.3.3"],"eventModifications":[]}},"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":"0109586821763416266dd874f087ef69","creativesBaseStyles":"a53944a2","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_005dce26d317b1a438255f8f3d35049d.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(); }})();