(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":4983,"name":"Titan Fitness","cookie_name":"bounceClientVisit4983","domain":"titan.fitness","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"/* */\n/* enable.feature.DISABLE_IOS_ABSOLUTE */\n\nbouncex.infoStore = {\n sessionStorageIdentifier: 'bxInfoStore',\n set: function(data) {\n var hashedData = bouncex.lz.compressToURI(JSON.stringify(data));\n try {\n sessionStorage.setItem(this.sessionStorageIdentifier, hashedData);\n } catch(e) {\n bouncex.err('session storage failure');\n }\n },\n \n get: function() {\n var info = sessionStorage.getItem(this.sessionStorageIdentifier);\n return info ? JSON.parse(bouncex.lz.decompressFromURI(info)) : '';\n },\n \n infoIsStored: function() {\n return !!sessionStorage.getItem(this.sessionStorageIdentifier);\n },\n \n populateFields: function(fields) {\n if (!this.infoIsStored()) return;\n \n var data = this.get();\n for (var field in fields) {\n if (fields.hasOwnProperty(field)) {\n fields[field].val(data[field]);\n }\n }\n }\n};\n\n/* --------------------------- INITIALIZE SHOPIFY DYNAMIC COUPON AUTOAPPLY -------------------------- */\n/*\nfunction initShopifyCouponAutoApply() {\n var isShopifyHostedTheme = !!bouncex.utils.getNestedProp('Shopify.theme.id');\n if (isShopifyHostedTheme) {\n bouncex.off(bouncex.window, 'bxCouponFetched.bx-cpn-auto-apply');\n bouncex.on(bouncex.window, 'bxCouponFetched.bx-cpn-auto-apply', function(event, params) {\n if (params.code !== bouncex.vars.coupon_auto_applied) {\n ajaxShopifyAutoApply(params.code);\n }\n });\n }\n}\nfunction ajaxShopifyAutoApply(discount) {\n var updateJSON = JSON.stringify({\n 'discounts': [discount],\n }),\n errorMessage = 'event tracking: error with shopify coupon auto-apply',\n discountUrl = '/discount/'+discount,\n updateUrl = '/cart/update.js';\n jQuery.ajax({\n url: discountUrl,\n method: 'GET',\n })\n .then(function(){\n jQuery.ajax({\n url: updateUrl,\n method: 'POST',\n contentType: 'application/json',\n dataType: 'text',\n data: updateJSON,\n })\n .then(function(){ updateCouponVar(discount); }, function(){ bouncex.log(errorMessage + ' POST ' + updateUrl); });\n }, function(){ bouncex.log(errorMessage + 'GET '+ discountUrl); });\n}\nfunction updateCouponVar(discount) {\n bouncex.setVar('coupon_auto_applied', discount);\n}\ninitShopifyCouponAutoApply();\n*/\n","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-54875448-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":"\r\n \r\n /* RPF code */\r\nbouncex.log(\"testing RPF40\");\r\n\r\nvar trackCount = 0;\r\n\r\n/* ---------------------------- SHARED VARIABLES ---------------------------- */\r\nvar CART_COOKIE_KEY = 'cart';\r\nvar CLEAN_URL = bouncex.utils.url.allowParams();\r\nvar pdpAtcSelector = 'div.c-buyButtons, div.am_rec_button_container button';\r\n\r\nfunction excludedByProductId(productId) {\r\n var EXCLUSIONS_IDS = [9206159311125, '9206159311125', '9338781466901'];\r\n\r\n return EXCLUSIONS_IDS.indexOf(productId) > -1;\r\n}\r\n\r\nfunction excludedPromixProducts() {\r\n return jQuery('.product__title p').first().text().trim().indexOf('Promix') > -1;\r\n}\r\n\r\n// implemented for SOTEC-14335 as a solution for excluding items on specific collections pages\r\nfunction excludedByProductType() {\r\n // these should be entered as lowercase so we can normalize what we check and avoid inconsistencies due to capitalization\r\n var excludedTypes = ['gear and apparel'];\r\n var productType = bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.type');\r\n\r\n return productType\r\n ? excludedTypes.indexOf(productType.toLowerCase()) > -1\r\n : false;\r\n}\r\n\r\nfunction isInStock(){\r\n var instockCheck = jQuery('div.c-buyButtons .product-form__buttons').last().text().trim().toLowerCase() == \"add to cart\" || jQuery('div.c-buyButtons .product-form__buttons').last().text().trim().toLowerCase() == \"place backorder\" || jQuery('div.c-buyButtons .product-form__buttons').last().text().trim().toLowerCase() == \"add all selections\";\r\n return instockCheck; \r\n}\r\n/* ------------------------------ ITEM TRACKING ----------------------------- */\r\n\r\nfunction getItem() {\r\n\t\r\n\tvar imgurl = jQuery('div.c-product-media-container .c-product__media img').attr('src');\r\n\tvar prodId = jQuery('[name=\"product-id\"]').val();\r\n\t\r\n return {\r\n id: prodId, /* evaluates unique item id */\r\n copy: jQuery('div.product__title p').first().text().trim(), /* evaluates item copy */\r\n category: jQuery('nav#uncomplicated-breadcrumbs a').eq(1).text(), /* evaluates item category */\r\n url: CLEAN_URL,\r\n imageurl: imgurl.includes(\"https\")?imgurl : \"https:\"+imgurl, /* evaluates item image */\r\n instock: isInStock(), /* bool evaluates if item is in stock */\r\n excluded: excludedByProductId(prodId) || excludedByProductType() || excludedPromixProducts(),\r\n price: jQuery('div.price__sale span.c-priceItem--sale').first().text().trim().replace(/[^\\d.]/g, '') || jQuery('span.c-product__priceAmount').first().text().trim().replace(/[^\\d.]/g, '')\r\n };\r\n}\r\n\r\nfunction getViewItem() {\r\n var item = getItem()\r\n\r\n\treturn {\r\n\t\tid: item.id,\r\n\t\tgroupId: item.id, //jQuery('.product__sku span:not(.visually-hidden)').first().text(), // track first sku on page as groupid because group id that matches feed not on site (08/24)\r\n\t\texcludedproduct: excludedByProductId(jQuery('[name=\"product-id\"]').val()),\r\n\t\texcluded: item.excluded\r\n\t};\r\n}\r\n\r\nfunction initializeItemEvents() {\r\n var item;\r\n\r\n bouncex.et.onTrue(\r\n function () {\r\n item = getItem();\r\n return !!item.id &&\r\n !!item.copy &&\r\n !!item.category &&\r\n !!item.url &&\r\n !!item.imageurl;\r\n },\r\n function () {\r\n // if we are excluding pages in addition to gift cards, create a helper function\r\n // if (excludedByProductId(jQuery('[name=\"product-id\"]').val())) {\r\n // return;\r\n // }\r\n\t\t\t\r\n\t\t\tif (excludedPromixProducts()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n bouncex.push(['item', item]);\r\n\t\t\t\r\n\t\t\t initializeViewItemEvents();\r\n\r\n \r\n /* SKU TRACKING */\r\n\t\t\t\tinitializeSkuEvents(item.id);\r\n\r\n \r\n /* Only use the following line if your integration uses a click or\r\n submit listener. If you're using AJAX, it can be removed. */\r\n\t\t\t initializeATCClickTracking();\r\n\t\t\t recommendedATC()\r\n },\r\n 10\r\n );\r\n}\r\n\r\nfunction initializeViewItemEvents() {\r\n\tvar item;\r\n\r\n\tbouncex.et.onTrue(\r\n\t\tfunction () {\r\n\t\t\titem = getViewItem();\r\n\t\t\t\r\n\t\t\treturn (\r\n\t\t\t\t!!item.id && !!item.groupId\r\n\t\t\t);\r\n\t\t},\r\n\t\tfunction () {\r\n\t\t\tif (CLEAN_URL.indexOf('gift-card') > -1) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tbouncex.push(['view item',{ 'item:id': item.id, 'item:itemgroupid': item.groupId }]);\r\n\t\t\t\r\n\t\t},\r\n\t\t10\r\n\t);\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\nfunction fireAddToCart(itemId) {\r\n var token;\r\n\r\n bouncex.et.onTrue(\r\n function () {\r\n token = bouncex.getBounceCookie(CART_COOKIE_KEY);\r\n return token;\r\n },\r\n function () {\r\n bouncex.push([\r\n 'add to cart',\r\n {\r\n 'item:id': itemId,\r\n 'cart:token': token\r\n }\r\n ]);\r\n\r\n if (bouncex.vars.cart) {\r\n return;\r\n }\r\n\r\n bouncex.setVar('cart', true);\r\n },\r\n 10\r\n );\r\n}\r\n\r\n\r\nfunction recommendedATC(){\r\n var prevProduct = null\r\n bouncex.et.onVisible('.cart-drawer-cart,.am_rec_button_container', function(){\r\n bouncex.on(jQuery(\".cart-drawer-cart,.am_rec_button_container\"),'click.bx', function(event) {\r\n var productTitle = jQuery(event.target).closest(\".widget_rec_item_infomation_basic_info\").find(\".widget_rec_item_infomation_basic_title\").text();\r\n \r\n if (prevProduct == productTitle)return;\r\n \r\n prevProduct = productTitle;\r\n \r\n if(productTitle){\r\n getProductID(productTitle);\r\n }else{\r\n bouncex.off(jQuery(\".cart-drawer-cart,.am_rec_button_containert\"), 'click.bx');\r\n recommendedATC();\r\n }\r\n });\r\n \r\n})}\r\n\r\nfunction getProductID(productTitle){\r\n var atcItem = dataLayer.map(function(event){ \r\n return event && event.ecommerce && event.ecommerce.add && event.ecommerce.add.products;\r\n }).flat();\r\n \r\n if(atcItem.length){\r\n \r\n var prod = atcItem.find(function(item){ \r\n return item && item.name.toLowerCase() === productTitle.toLowerCase();\r\n });\r\n \r\n if(prod && prod.product_id ){\r\n \r\n if(trackCount !== 0){\r\n trackCount = 0;\r\n fireAddToCart(prod.product_id);\r\n }\r\n }else{\r\n bouncex.setTimeout2(function(){\r\n if(trackCount<10){\r\n trackCount ++\r\n getProductID(productTitle)\r\n }\r\n },1000)\r\n }\r\n }\r\n}\r\n\r\n\r\n\r\nfunction initializeATCClickTracking(itemId) {\r\n bouncex.et.onVisible(pdpAtcSelector, function(){\r\n\tbouncex.et.on(jQuery(pdpAtcSelector), 'click.bxatc', function () {\r\n\t \r\n\tvar productId = jQuery(this).find('[name=\"product-id\"]').attr(\"value\");\r\n\tif(productId){\r\n\t\t fireAddToCart(productId);\r\n\t} else{\r\n\t\tfireAddToCart(itemId);\r\n\t}\r\n });\r\n });\r\n}\r\n\r\n\r\nfunction emptyCart() {\r\n bouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\r\n if (bouncex.vars.cart && newVal === 0 && oldVal > 0) {\r\n bouncex.log(\"newval\", newVal+\" oldval\",oldVal);\r\n \r\n bouncex.push(['empty_cart']);\r\n bouncex.setVar('cart', false);\r\n }\r\n });\r\n} \r\n\r\n\r\nfunction initializeCartEvents() {\r\n bouncex.et.cart.init({\r\n replenishmentType: 'cookie',\r\n replenish: function (cart) {\r\n bouncex.utils.cookies.create({\r\n name: CART_COOKIE_KEY,\r\n value: cart.token\r\n });\r\n replenComplete();\r\n }\r\n });\r\n\r\n\r\n function replenComplete() {\r\n window.location.href = CLEAN_URL + '?bx_replen=true';\r\n }\r\n\r\n emptyCart();\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/* ------------------------------ SKU TRACKING ------------------------------ */\r\n\r\n\r\nfunction initializeSkuEvents(itemId) {\r\n var variants = bouncex.utils.getNestedProp('window.ShopifyAnalytics.meta.product.variants', []);\r\n if (variants.length === 1) {\r\n\t\tbouncex.push([\r\n\t\t\t'select_sku',\r\n\t\t\t{\r\n\t\t\t\t'item:id': itemId,\r\n\t\t\t\t'item:itemgroupid': itemId,\r\n\t\t\t\t'item:feedid': variants[0].sku\r\n\t\t\t}\r\n\t\t]);\r\n\t\treturn;\r\n }\r\n\r\n var prevSku = '',\r\n timeout;\r\n\r\n bouncex.off(bouncex.document, 'change.wknd');\r\n bouncex.on(bouncex.document, 'change.wknd', function(){\r\n if (!timeout) {\r\n /* Must use sku not variant ID */\r\n var selectedSku = jQuery('.product__sku span:not(.visually-hidden)').first().text(),\r\n currentItemId = jQuery('[name=\"product-id\"]').val();\r\n\r\n // block select_sku on change of item id\r\n if (selectedSku && selectedSku !== prevSku && currentItemId === itemId) {\r\n prevSku = selectedSku;\r\n \t\tbouncex.push([\r\n \t\t\t'select_sku',\r\n \t\t\t{\r\n \t\t\t\t'item:id': itemId,\r\n \t\t\t\t'item:itemgroupid': itemId,\r\n \t\t\t\t'item:feedid': selectedSku\r\n \t\t\t}\r\n \t\t]);\r\n \t\t\r\n \t}\r\n }\r\n clearTimeout(timeout);\r\n timeout = bouncex.setTimeout2(() => {\r\n timeout = undefined;\r\n }, 100);\r\n\r\n }, '[name=\"id\"]');\r\n\r\n}\r\n\r\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\r\n\r\nfunction getItemIdsCat() {\r\n var ids = [];\r\n\r\n \r\n\t\t\r\n\t\tif (window.ShopifyAnalytics && window.ShopifyAnalytics.meta && window.ShopifyAnalytics.meta.products) {\r\n\t\tvar products = window.ShopifyAnalytics.meta.products;\r\n var itemId = products.map(product => product.id); /* evaluates item id of current product tile on category page */\r\n\r\n if (itemId && ids.indexOf(itemId) < 0) {\r\n ids.push(itemId);\r\n }\r\n }\r\n\r\n return ids.join(',');\r\n}\r\n\r\nfunction getCategoryObject() {\r\n return {\r\n // update URL to allow params if needed on a search page\r\n 'page:url': CLEAN_URL,\r\n 'items:ids': getItemIdsCat()\r\n };\r\n}\r\n\r\nfunction initializeCategoryEvents() {\r\n var categoryObj;\r\n\r\n bouncex.et.onTrue(\r\n function () {\r\n categoryObj = getCategoryObject();\r\n return !!categoryObj['items:ids'].length &&\r\n !!categoryObj['page:url'];\r\n },\r\n function () {\r\n bouncex.push(['view category', categoryObj]);\r\n },\r\n 10\r\n );\r\n}\r\n\r\n\r\n\r\nfunction initializeUserTracking() {\r\n bouncex.log(\"check for logged in and logged in id\", bouncex.vars.logged_in,\" \",bouncex.vars.logged_in_identified);\r\n if (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\r\n\tbouncex.log(\"user tracking not fired\");\r\n return;\r\n }\r\n\r\n var userEmail;\r\n\r\n bouncex.et.onTrue(\r\n function () {\r\n\t\tbouncex.log(\"user logged in\", bouncex.vars.logged_in_identified);\r\n\t\t var dl_user_data = window.dataLayer.find(item => item.event === \"dl_user_data\");\r\n userEmail = dl_user_data.user_properties.customer_email; /* string - evaluates user email address */\r\n return bouncex.utils.validate.email(userEmail);\r\n },\r\n function () {\r\n bouncex.push([\r\n 'user',\r\n {\r\n 'email': userEmail,\r\n 'source': 'LoggedIn'\r\n }\r\n ]);\r\n bouncex.setVar('logged_in_identified', true);\r\n\t\t\tbouncex.log(\"user logged in\", bouncex.vars.logged_in_identified);\r\n },\r\n 5\r\n );\r\n}\r\n\r\n\r\n\r\n\r\n/* --------------------------- RPF CODE -------------------------- */\r\n\r\n\r\n\r\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\r\n\r\nfunction isValidDomain() {\r\n\treturn CLEAN_URL.indexOf('titan.fitness') > -1;\r\n}\r\n\r\nfunction isEn() {\r\n\treturn jQuery('html').attr('lang') === 'en';\r\n}\r\n\r\nfunction isValidForTracking() {\r\n\treturn isValidDomain() && isEn();\r\n}\r\n\r\nfunction initializeTracking() {\r\n\tif (!isValidForTracking()) {\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tinitializeUserTracking();\r\n\tinitializeCartEvents();\r\n\r\n\tswitch (bouncex.website.pts) {\r\n\t\tcase 'RP_Product':\r\n\t\t\tinitializeItemEvents();\r\n\t\t\tbreak;\r\n\t\t\tcase 'RP_Category':\r\n\t\t\tinitializeCategoryEvents();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t}\r\n}\r\n\r\ninitializeTracking();\r\n\r\n\r\n\r\n","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"RP_Category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'collection'"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"?q="}]]},"RP_Checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkouts"}]]},"RP_Home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'home'"}]]},"RP_Product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'product'"}]]},"RP_Search":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'collection'"}],[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"?q="}]]},"cart":{"testmode":true,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/cart"}]]},"category":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"dw.ac._category !== ''"}]]},"checkout":{"testmode":true,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/startcheckout"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"staging"}]]},"home":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'home';"}]]},"product":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('window.ShopifyAnalytics.meta.page.pageType') === 'product';"}]]},"search":{"testmode":true,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"search?q="},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search"}]]}},"els":{"blank_site_element":"","skip_link":".skip-to-content-link[href=\"#MainContent\"]"},"vars":[{"name":"logged_in","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"!!window.ShopifyAnalytics && !!window.ShopifyAnalytics.meta && !!window.ShopifyAnalytics.meta.page && window.ShopifyAnalytics.meta.page.customerId !== undefined","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('div.cart-count-bubble span').first().text());","trigger":""},{"name":"cart_value","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"jQuery('div.checkout-section-subtotal div').eq(1).text().replace(/\\$/g, '');","trigger":""},{"name":"prod_price","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"(function () {\n var num = jQuery('.prices .strike-through').length ? jQuery('.product-info-inner .sales > [itemprop=\"price\"]').attr('content') : jQuery('.product-info-inner [itemprop=\"price\"]').attr('content') || '';\n \n if (jQuery('.set-item').length) {\n num = jQuery('.set-item').length > 0 && jQuery('.product-set-area .starting-price').first().text().trim().replace(/[^0-9.]/g, '');\n }\n\n return Number(num.replace(/[^0-9.]/g, '')) || 0;\n})();","trigger":""},{"name":"prod_name","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.product-name').first().text();","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.availability-msg .in-stock').length > 0 && jQuery('.backorder-lbl').length === 0;","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":true,"default":"false","code":"jQuery('.klaviyo-form span').first().text().indexOf('Thanks for subscribing') > -1 || 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":true,"default":"false","code":"(function(){\r\n if(window.google_tag_params && google_tag_params.ecomm_pagetype){\r\n const window_obj_pagetype = bouncex.utils.getNestedProp('google_tag_params.ecomm_pagetype', false), \r\n pageTypes = {\r\n 'category' : 'category',\r\n \"cart\":'cart',\r\n };\r\n if(pageTypes[window_obj_pagetype]){\r\n bouncex.website.pts = pageTypes[window_obj_pagetype];\r\n }\r\n \r\n }\r\n return bouncex.website.pts;\r\n})();","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"feed_id","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.product-info-inner [itemprop=\"sku\"]').first().text().trim();","trigger":"pageload"},{"name":"coupon_auto_applied","polling":"none","persist":"visit","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"rp_page_type","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"rp_feed_id","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product__sku span:not(.visually-hidden)').first().text()","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":"bouncex.off(bouncex.document, 'change.wknd');\nSinglePageApp.setCustomParams({\n shouldCheckSpa: function() {\n return decodeURIComponent(bouncex.calling_url).indexOf('/products/') > -1;\n }\n});\n\n\nvar audiences = {\n /* PROPERTIES */\n testMode: false,\n interceptEnabled: true,\n mirrorEnabled: true,\n isBouncexReady: function isBouncexReady(callback) {\n var intCount = 0;\n var cartAddSetInterval = setInterval(function () {\n if (typeof bouncex != \"undefined\" && !!bouncex.loaded && bouncex.et && typeof bouncex.et.onTrue === \"function\" && bouncex.website && bouncex.website\n ) {\n callback();\n clearInterval(cartAddSetInterval);\n }\n intCount++;\n if (intCount > 10) {\n _shq.log('Bouncex never loaded', 'error');\n clearInterval(cartAddSetInterval);\n }\n }, 200);\n },\n helpers: function helpers() {\n //finding the product on the site to get more inofrmatio\n function findProductData(pid) {\n var theProd = jQuery('.product-detail[data-pid=\"' + pid + '\"]'),\n productId = theProd.data(\"pid\"),\n price = theProd.find('[class*=\"price\"] .value').attr(\"content\"),\n qty = theProd.find(\"select#quantity-select\").val();\n if (!!productId || !!price || Number(qty) > 0) {\n return {\n ProductId: productId,\n UnitPrice: price,\n Quantity: qty,\n };\n }\n return false;\n }\n //Watching the network traffic for add to cart events\n function processAdd(event, xhr, settings) {\n if (\n (settings.url || \"\").indexOf(\"/Cart-AddProduct\") > -1 &&\n settings.type == \"POST\"\n ) {\n var atcData = settings.data,\n prodObj = bouncex.utils.url.getParam(\"pidsObj\", atcData),\n prodId = bouncex.utils.url.getParam(\"pid\", atcData);\n prods = null;\n if (!!prodId && !prodObj) {\n prods = { Items: [] };\n var getProd = findProductData(prodId);\n if (!!getProd) {\n prods.Items.push(getProd);\n }\n } else if (!!prodObj) {\n var products = JSON.parse(prodObj);\n prods = products.reduce(\n function (x, y) {\n var getProd = findProductData(y.pid);\n if (!!getProd) {\n x.Items.push(getProd);\n }\n return x;\n },\n { Items: [] }\n );\n }\n if (!!prods.Items) {\n _shq.push([\"onCartAdd\", { Items: prods.Items }]);\n }\n }\n }\n audiences.isBouncexReady(function () {\n if (bouncex.website.pts === \"product\") {\n var test = bouncex.et.on(\n jQuery(document),\n \"ajaxComplete\",\n processAdd\n );\n }\n });\n },\n /* Intercept Events: For overriding the default events that the cartridge attempts to make. */\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: false,\n cartAdd: true,\n cartEmpty: false,\n categoryView: false,\n purchase: function (wkData) {\n var wkPurchase = wkData.obj;\n if (!!wkPurchase) {\n var purchaseData = wkPurchase.item.reduce(\n function (x, y) {\n if (y.sku && !!Number(y.item_price) && y.quantity) {\n x.orderItems.push({\n productId: y.sku,\n price: Number(y.item_price).toFixed(2),\n qty: y.quantity,\n });\n x.total +=\n Number(y.item_price).toFixed(2) *\n Number(y.quantity);\n }\n return x;\n },\n { orderItems: [], total: 0, orderId: null }\n );\n purchaseData.orderId = bouncex.utils.getNestedProp(\n \"order_id\",\n \"no-orderid-\" + Math.floor(Math.random() * 100000000),\n wkPurchase\n );\n if (!!purchaseData.orderItems.length) {\n purchaseData.total = purchaseData.total.toFixed(2);\n _shq.push([\"onPurchase\", purchaseData]);\n } else {\n _shq.push([\n \"onPurchase\",\n {\n orderId:\n orderId || \"NoOrderId-\" + randomNumber(),\n usebasket: true,\n },\n ]);\n }\n }\n },\n coupon: false,\n search: false,\n checkout: false,\n email: false,\n phone: false,\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 //for search page \n if (bouncex.website.pts === \"category\" && bouncex.utils.url.getParam('q')) {\n var sp = decodeURI(bouncex.utils.url.getParam('q'));\n _shq.push(['onSearch', { searchPhrase: sp }]);\n }\n //for category\n if (bouncex.website.pts === 'category' && !bouncex.utils.url.getParam('q')) {\n var catUrlArr = window.location.pathname.split('/').filter(function (x) { return x = x; }).slice(-2),\n catOptions = ['catId', 'catName'],\n catData = catOptions.reduce(function (x, y, i) {\n var theCat = catUrlArr[i] ? catUrlArr[i] : catUrlArr[0];\n x[y] = theCat;\n return x;\n }, {});\n _shq.push(['onCategory', catData]);\n }\n },\n \"add to cart\": false,\n \"view item\": false,\n select_sku: false,\n item: false,\n eligible: false,\n pop: false,\n visit: false,\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 this.helpers();\n },\n};\n\naudiences.init();\n","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 Titan Fitness mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"cw4212tdqe-1","enabled":0},"pde":true,"fmc":["AW","AI","AG","AR","BS","BB","BZ","BM","BO","BQ","BR","CA","KY","CL","CO","CR","CU","CW","DM","DO","EC","SV","GF","GL","GD","GT","GP","HT","HN","JM","MQ","MX","MS","NI","PA","PY","PE","PR","PM","MF","BL","KN","LC","VC","SX","SR","TT","US","UM","UY","VE","VG","VI"],"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":"307818505","ga4_measurement_id":"G-GSHMQEZCGN","tag_state_domain":"api.bounceexchange.com","tag_state_domain_enabled":false} ; 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_4983":"048ed4595d05996068d7849b6f0994dd"}; 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(); }})();