(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":4619,"name":"CJ Pony Parts","cookie_name":"bounceClientVisit4619","domain":"cjponyparts.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-10270769-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":1},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\r\nvar CLEAN_URL = bouncex.utils.url.allowParams();\r\n\r\n/* ------------------------------ ITEM TRACKING ----------------------------- */\r\n\r\nfunction getItem() {\r\n var splitUrl = CLEAN_URL.split('/');\r\n \r\n return {\r\n id: splitUrl[splitUrl.length - 1] === '' ? splitUrl.slice(-2, -1)[0] || '' : \r\n splitUrl.pop(),\r\n copy: jQuery('meta[name=\"title\"]').attr('content') || '',\r\n category: jQuery('.breadcrumbs li:eq(-2)').text().trim(),\r\n url: CLEAN_URL,\r\n imageurl: jQuery('meta[property=\"og:image\"]').attr('content') || '',\r\n price: bouncex.vars.prod_price,\r\n instock: bouncex.vars.in_stock || jQuery('.stock.unavailable').text().indexOf('Out of Stock') === -1\r\n };\r\n}\r\n\r\nfunction fireViewItem(item) {\r\n var pushItem = {\r\n 'item:id': item.id\r\n };\r\n\r\n bouncex.push(['view item', pushItem]);\r\n\r\n} \r\n\r\nfunction isExcluded(item) {\r\n // Add additional logic regarding any other exclusions below.\r\n return item.url.indexOf('gift-card') > -1 &&\r\n item.url.indexOf('giftcard') > -1;\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.category.match(/[^\\x00-\\x80]+/) &&\r\n !!item.price &&\r\n !!item.url &&\r\n item.url.indexOf('/checkout/cart') === -1 &&\r\n !!item.imageurl;\r\n },\r\n function() {\r\n if (isExcluded(item)) {\r\n return;\r\n }\r\n bouncex.push(['item', item]);\r\n fireViewItem(item); \r\n initializeSkuEvents(item);\r\n \r\n initializeATCClickTracking(item.id);\r\n\r\n return;\r\n },\r\n 30\r\n );\r\n\r\n}\r\n\r\n/* ------------------------------ SKU TRACKING ------------------------------ */\r\n\r\nfunction initializeSkuEvents(item) {\r\n \r\n if (jQuery('#product-options-wrapper').length === 0) {\r\n bouncex.push([\r\n 'select_sku',\r\n {\r\n 'item:id': item.id,\r\n 'item:itemgroupid': item.id,\r\n 'item:feedid': item.id\r\n }\r\n ]);\r\n \r\n return;\r\n } \r\n \r\n bouncex.et.onVarChange('item_sku', function(oldVal, newVal) {\r\n if (newVal !== oldVal && !!oldVal) {\r\n bouncex.push([\r\n 'select_sku',\r\n {\r\n 'item:id': item.id,\r\n 'item:itemgroupid': newVal,\r\n 'item:feedid': newVal\r\n }\r\n ]);\r\n }\r\n\r\n return;\r\n });\r\n}\r\n\r\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\r\n\r\nfunction getItemIdsCat() {\r\n var ids = [],\r\n isTopCatLevel = jQuery('.subcategory-product-section .subcategory-product-left a').length > 0,\r\n $tiles = isTopCatLevel ? jQuery('.subcategory-product-section .subcategory-product-left a') : jQuery('.product-item-info > a'),\r\n i = 0,\r\n id = '';\r\n\r\n for (i; i < $tiles.length; i++ ) {\r\n id = ($tiles.eq(i).attr('href') || '').split('/p/').pop().replace(/[\\/]/g, '');\r\n\r\n if (!id || ids.indexOf(id) > -1) {\r\n continue;\r\n }\r\n\r\n ids[ids.length] = id;\r\n }\r\n\r\n return ids.join(',');\r\n}\r\n\r\nfunction getCategoryObject() {\r\n return {\r\n 'page:url': bouncex.utils.url.allowParams('?q'),\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 30\r\n );\r\n}\r\n\r\n/* ------------------------------- CART EVENTS ------------------------------ */\r\n\r\nfunction fireAddToCart(itemId) {\r\n bouncex.push(['add to cart', {'item:id': itemId}]);\r\n}\r\n\r\nfunction getComparePageItemId ($element) {\r\n var $productTile,\r\n $productName;\r\n \r\n $productTile = jQuery($element).parents('.product.info');\r\n \r\n if (!$productTile.length) {\r\n return;\r\n }\r\n \r\n $productName = $productTile.find('.product-item-name a');\r\n \r\n if ($productName.length) {\r\n return ($productName.attr('href') || '').split('/p/')[1].replaceAll('/','');\r\n }\r\n}\r\n\r\nfunction initializeATCClickTracking(itemId) {\r\n var $crossSellProducts,\r\n $crossSellProductLink,\r\n crossSellId,\r\n i;\r\n \r\n bouncex.et.on(jQuery('button[title=\"Add to Cart\"], button.tocart'), 'click.bxatc', function() {\r\n if (jQuery(this).parents('.products-related').length) {\r\n return;\r\n }\r\n \r\n if (!itemId) {\r\n itemId = getComparePageItemId(jQuery(this));\r\n }\r\n \r\n if (jQuery('.products-crosssell input[type=\"checkbox\"]:checked').length > 0) {\r\n $crossSellProducts = jQuery('.products-crosssell li .product-item-info');\r\n \r\n for (i = 0; i < $crossSellProducts.length; i++) {\r\n if ($crossSellProducts.eq(i).find('input[type=\"checkbox\"]:checked').length > 0) {\r\n $crossSellProductLink = $crossSellProducts.eq(i).find('.product-item-link');\r\n crossSellId = $crossSellProductLink.attr('href') || '';\r\n crossSellId = crossSellId.split('/p/')[1].replaceAll('/','');\r\n fireAddToCart(crossSellId);\r\n }\r\n }\r\n }\r\n \r\n fireAddToCart(itemId);\r\n });\r\n\r\n}\r\n\r\nfunction emptyCart() {\r\n bouncex.et.onVarChange('cart_qty', function(oldVal, newVal) {\r\n if (newVal === 0 && newVal < oldVal && oldVal > 0 && jQuery('.counter-number').length) {\r\n bouncex.push(['empty_cart']);\r\n }\r\n\r\n return;\r\n });\r\n\r\n}\r\n\r\nfunction initializeCartEvents() {\r\n bouncex.et.cart.init({\r\n replenish: function() { return; },\r\n replenishmentType: 'single'\r\n });\r\n \r\n bouncex.setTimeout2(function() { \r\n emptyCart();\r\n }, 1500);\r\n}\r\n\r\n/* ------------------------------ USER TRACKING ----------------------------- */\r\n\r\nfunction getUserEmail() {\r\n return jQuery('.box-information .box-content').text().trim().split(' ').pop();\r\n}\r\n\r\nfunction initializeUserTracking() {\r\n var userEmail;\r\n \r\n bouncex.et.onTrue(\r\n function() {\r\n return bouncex.vars.logged_in && !bouncex.vars.logged_in_identified;\r\n },\r\n function() {\r\n userEmail = getUserEmail();\r\n if (!bouncex.utils.validate.email(userEmail)) {\r\n return;\r\n }\r\n \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 \r\n return;\r\n },\r\n 100\r\n );\r\n\r\n}\r\n\r\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\r\n\r\nfunction isValidDomain() {\r\n return CLEAN_URL.indexOf('www.cjponyparts.com') > -1; \r\n}\r\n\r\nfunction isEn() {\r\n return jQuery('html').attr('lang') === 'en';\r\n}\r\n\r\nfunction isValidForTracking() {\r\n return isValidDomain() && isEn();\r\n}\r\n\r\nfunction init() {\r\n if (!isValidForTracking()) {\r\n return;\r\n }\r\n\r\n initializeUserTracking();\r\n initializeCartEvents();\r\n \r\n if (CLEAN_URL.indexOf('product_compare') > -1) {\r\n initializeATCClickTracking();\r\n }\r\n \r\n switch(bouncex.website.pts) {\r\n case 'category':\r\n\t\tcase 'search':\r\n initializeCategoryEvents();\r\n break;\r\n case 'product':\r\n initializeItemEvents();\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n}\r\n\r\ninit();\r\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":"!!document.querySelector('meta[name=\"title\"]') && document.querySelector('meta[name=\"title\"]').getAttribute('content') === \"Shopping Cart\";\n"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"(document.querySelectorAll('.page-products').length > 0 && document.querySelectorAll('.product-item-info').length > 0)"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/catalogsearch/result"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/sales-rebates/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/clearance-parts"}]]},"checkout":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"!!document.querySelector('meta[name=\"title\"]') && document.querySelector('meta[name=\"title\"]').getAttribute('content') === \"Checkout\"\n"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('link[rel=\"canonical\"][href=\"https://www.cjponyparts.com/\"]').length > 0;"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.catalog-product-view ').length > 0;\n"}],[{"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":"/catalogsearch/result"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function() {\n var cacheStorage = bouncex.utils.getNestedProp([\"mage-cache-storage\"], '', localStorage);\n var parsedData;\n var customerName;\n\t/* check that what we need to parse exists */\n if (cacheStorage.length > 0) {\n \tparsedData = JSON.parse(cacheStorage);\n customerName = bouncex.utils.getNestedProp('customer.fullname', '', parsedData);\n }\n /* customerName exists for logged_in user */\n return customerName.length > 0;\n})();","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":"visit","page_types":[],"testmode":false,"default":"0","code":"bouncex.website.pts === 'checkout' ? null : Number(jQuery('.counter-number').text());\n","trigger":""},{"name":"item_sku","polling":"vars","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"bouncex.website.pts === 'product' ? jQuery('div[itemprop=\"sku\"]').text().trim() : null;\n","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if (bouncex.website.pts === 'cart') {\n return Number(jQuery('.totals.sub .amount .price').text().replace(/[^0-9.]/g, ''));\n }\n if (bouncex.website.pts === 'checkout' && jQuery('.minicart-subtotal span').length > 0) {\n return Number(jQuery('.minicart-subtotal span').text().replace(/[^0-9.]/g, ''));\n }\n if (!jQuery('.subtotal .price').length > 0 && bouncex.website.pts !== 'cart') {\n return 0;\n }\n return Number(jQuery('.subtotal .price').text().replace(/[^0-9.]/g, '')) || null;\n\n}());","trigger":""},{"name":"prod_price","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('span[data-price-type=\"finalPrice\"]').first().text().replace(/[^0-9.]/g, '');\n","trigger":""},{"name":"prod_name","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.base[itemprop=\"name\"]').text();\n","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function() {\n if (\n !!jQuery('#product-options-wrapper').length ||\n jQuery('.stock.available').text().trim() === \"In Stock:\" ||\n !jQuery('.unavailable').length\n ) {\n return true;\n }\n \n return false;\n})()","trigger":""},{"name":"submitted_onsite","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"window.location.href.indexOf('/email-preferences') > -1 && jQuery('.message-success.success.message').text() === \"Thank you for your subscription.\" || null;\n","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart_token","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_items","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":true,"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":"user_email","polling":"vars","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.box-information .box-content').text().trim().split(' ').pop();","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":1,"preinit_cjs":"if (bouncex.testmode.bxdev) {\n SinglePageApp.setCustomParams({\n currentPageIdentifier: function () {\n return window.location.href;\n },\n });\n}\nlet segments = {\n /* PROPERTIES */\n testMode: false,\n interceptEnabled: false,\n mirrorEnabled: false,\n arrayObserverEnabled: false,\n /* METHODS */\n /* Intercept Events */\n useIntercept() {\n if (!this.interceptEnabled) {\n return;\n }\n bouncex.utils.shqInterceptEvent = {\n // true blocks event, defined functions run in place of default\n productView: false,\n cartAdd: false,\n cartEmpty: false,\n categoryView: false,\n purchase: function (wkData) {\n // use as needed\n let oid =\n bouncex.utils.getNestedProp('obj.order_id', null, wkData) ||\n 'no-orderid-' + Math.floor(Math.random() * 100000000);\n _shq.push([\n 'pageView',\n {\n pageType: 'purchase',\n orderId: oid,\n usebasket: true,\n },\n ]);\n },\n coupon: false,\n search: false,\n checkout: false,\n email: false,\n phone: false,\n };\n },\n /* Mirror Events */\n 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 (bouncex.website.pts === 'search') {\n _shq.push([\n 'onSearch',\n {\n searchPhrase: bouncex.utils.url\n .getParam('q')\n .replace(/[^a-zA-Z ]/g, ' '),\n },\n ]);\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 processObserver(e) {\n // Write handle methods here:\n while (e.length) {\n let event = e.shift();\n //event variable will contain the object to process.\n if (\n event?.event === 'productImpression' &&\n event?.page === 'listingPage'\n ) {\n const urlParts = (window?.location?.href || '').split('/'),\n collectionIndex = urlParts.findIndex((x) => x === 'c'),\n catData =\n collectionIndex > -1\n ? {\n catId: urlParts?.[collectionIndex + 1],\n catName: urlParts?.[collectionIndex - 1],\n }\n : false;\n if (!!catData) {\n _shq.push([\n 'onCategory',\n {\n catId: catData?.catId,\n catName: catData?.catName,\n },\n ]);\n }\n }\n if (event?.event === 'addToCart') {\n let atc = event?.ecommerce?.add?.products,\n Items = [];\n atc.reduce((x, y) => {\n return Items.push({\n ProductId: y?.id,\n UnitPrice: y?.price,\n Quantity: y?.quantity,\n });\n }, {});\n if (Items.length > 0) {\n _shq.push([\n 'onCartAdd',\n {\n Items,\n },\n ]);\n }\n }\n }\n },\n arrayObserver() {\n if (!this.arrayObserverEnabled) {\n return;\n }\n bouncex.et.onTrue(\n () => {\n return bouncex.utils.getNestedProp('window._shq.loaded');\n },\n () => {\n _shq.ArrayObserver(window.dataLayer, (e) => this.processObserver(e), {\n catchUp: true,\n });\n }\n );\n },\n cartTracker() {\n let Total = 0,\n Items = [];\n cartItems = [...document.querySelectorAll('.minicart-items .item')].map(\n (x) => {\n let pQ = x.querySelector('.minicart-price .price');\n if (!pQ) {\n return;\n }\n let price = pQ.textContent.replace(/[^0-9.]/g, ''),\n detail = x.querySelector('.cart-item-qty'),\n id = detail?.dataset?.cartItemId,\n qty = detail?.dataset?.itemQty;\n if (!!price && !!id && !!qty) {\n Items.push({ ProductId: id, UnitPrice: price, Quantity: qty });\n Total += price * qty;\n }\n return;\n }\n );\n if (Total && Items.length > 0) {\n _shq.push(['onCartView', { Items, Total }]);\n }\n },\n /* Initialize Segments Tracking */\n init() {\n // test mode\n if (this.testMode && !bouncex.testmode.bxdev) return;\n // attach object to window & bouncex.utils\n if (!bouncex.utils) {\n return;\n }\n bouncex.utils.segments = this;\n // initialize intercept, mirror, and arrayObserver, comment out if not needed\n this.useIntercept();\n this.useMirror();\n this.arrayObserver();\n const cartBtn = document.querySelector('.action.showcart');\n cartBtn\n ? cartBtn.addEventListener('click', () => this.cartTracker())\n : null;\n },\n};\n\nsegments.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 CJ Pony Parts mktg txts (like cart reminders) to this #, per terms.","eventSharing":false,"shqId":"vtuzh18phr-1","enabled":1},"pde":true,"fmc":["US"],"fme":true,"fmx":"#options_1654_text","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":"249447715","ga4_measurement_id":"G-SWQNZ008D1","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_756cfb1d158076d67943a971b41e5c68.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(); }})();