(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":4984,"name":"Pallet Forks","cookie_name":"bounceClientVisit4984","domain":"palletforks.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"/* enable.feature.DISABLE_IOS_ABSOLUTE */\n\n/* --------------------------- INITIALIZE SHOPIFY DYNAMIC COUPON AUTOAPPLY -------------------------- */\n/*\nfunction initShopifyCouponAutoApply() {\n var isShopifyHostedTheme = !!bouncex.utils.getNestedProp('Shopify.theme.id');\n\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}\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\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}\n\nfunction updateCouponVar(discount) {\n bouncex.setVar('coupon_auto_applied', discount);\n}\n\ninitShopifyCouponAutoApply();\n*/","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-45987289-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":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\n\nvar CLEAN_URL = bouncex.utils.url.allowParams();\n\n/* ---------------------------- HELPER FUNCTIONS ---------------------------- */\n\nfunction normalize(str) {\n return str.replace(/[^a-zA-Z0-9 ]/g, \"\").trim().toLowerCase();\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getViewItem() {\n\tvar product = bouncex.utils.getNestedProp('window.ShopifyAnalytics.meta.product', {});\n\treturn {\n\t\tid: product.id, // still tracking shopify product id as item id\n\t\tgroupId: bouncex.utils.getNestedProp('window.ShopifyAnalytics.meta.product.variants[0].sku', '') // track first sku on page as groupid because group id that matches feed not on site for \n\t};\n}\n\nfunction initializeItemEvents() {\n\tvar item;\n\n\tbouncex.et.onTrue(\n\t\tfunction () {\n\t\t\titem = getViewItem();\n\t\t\treturn (\n\t\t\t\t!!item.id && !!item.groupId\n\t\t\t);\n\t\t},\n\t\tfunction () {\n\t\t\tif (CLEAN_URL.indexOf('gift-card') > -1) {\n\t\t\t\treturn;\n\t\t\t}\n\n /* 07/12/24 - The itemId and groupId need to match */\n\t\t\tbouncex.push(['view item',{ 'item:id': item.id, 'item:itemgroupid': item.id }]);\n\t\t\tinitializeSkuEvents(item.id);\n\t\t},\n\t\t10\n\t);\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\n\nfunction initializeSkuEvents(itemId) {\n var variants = bouncex.utils.getNestedProp('window.ShopifyAnalytics.meta.product.variants', []);\n\n if (variants.length === 1) {\n\t\tbouncex.push([\n\t\t\t'select_sku',\n\t\t\t{\n\t\t\t\t'item:id': itemId,\n\t\t\t\t'item:itemgroupid': itemId,\n\t\t\t\t'item:feedid': variants[0].sku\n\t\t\t}\n\t\t]);\n\t\treturn;\n }\n\n var prevSku = '',\n to;\n\n /* Older logic - will remain disabled until we get an approval on the updated logic */\n // bouncex.on(bouncex.document, 'change.wknd', function(){\n // if (!to) {\n // var selectedShopifySku = bouncex.utils.getNestedProp('window.ShopifyAnalytics.meta.selectedVariantId');\n // var selectedSku = variants.find(function(v){\n // return v.id == selectedShopifySku; // strings and numbers \n // }).sku;\n // if (selectedSku && selectedSku !== prevSku) {\n // \t\tbouncex.push([\n // \t\t\t'select_sku',\n // \t\t\t{\n // \t\t\t\t'item:id': itemId,\n // \t\t\t\t'item:itemgroupid': itemId,\n // \t\t\t\t'item:feedid': selectedSku\n // \t\t\t}\n // \t\t]);\n // \t}\n // }\n // clearTimeout(to);\n // to = bouncex.setTimeout2(() => {\n // to = undefined;\n // }, 100);\n\n // }, '[name=\"id\"]');\n\n bouncex.off(bouncex.document, 'change.wknd');\n bouncex.on(bouncex.document, 'change.wknd', function(){\n if (!to) {\n var selectedValue1 = normalize(jQuery('strong[id*=\"selectedValue-1\"]').first().text()),\n selectedValue2 = normalize(jQuery('strong[id*=\"selectedValue-2\"]').first().text()),\n publicTitle,\n selectedSku = variants.find(function(v){\n publicTitle = normalize(v.public_title);\n /* Checks the selectedValues vs. the listed products within the variants variable */\n return publicTitle.indexOf(selectedValue1) > -1 && publicTitle.indexOf(selectedValue2) > -1;\n }).sku;\n \n bouncex.log('selectedSku', selectedSku);\n\n if (selectedSku && selectedSku !== prevSku) {\n \t\tbouncex.push([\n \t\t\t'select_sku',\n \t\t\t{\n \t\t\t\t'item:id': itemId,\n \t\t\t\t'item:itemgroupid': itemId,\n \t\t\t\t'item:feedid': selectedSku\n \t\t\t}\n \t\t]);\n \t}\n }\n clearTimeout(to);\n to = bouncex.setTimeout2(() => {\n to = undefined;\n }, 100);\n\n }, '[name=\"id\"]');\n\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n\treturn CLEAN_URL.indexOf('palletforks.com') > -1;\n}\n\nfunction isEn() {\n\treturn bouncex.html.attr('lang') === 'en';\n}\n\nfunction isValidForTracking() {\n\treturn isValidDomain() && isEn();\n}\n\nfunction customInit() {\n\tif (!isValidForTracking()) {\n\t\treturn;\n\t}\n\n\tswitch (bouncex.website.pts) {\n\t\tcase 'product':\n\t\t\tinitializeItemEvents();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n}\n\ncustomInit();\n","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":true,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/cart"}]]},"category":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('#product-search-results').length > 0;"}]]},"checkout":{"testmode":true,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/startcheckout"}]]},"home":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === '/';"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.product-main-secction').length > 0;"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/products/"}]]},"search":{"testmode":true,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search?q="}]]}},"els":{"blank_site_element":"","skip_link":"a.skip-to-content-link[href=\"#MainContent\"]"},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"wunderkind.user !== undefined","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":"wunderkind.cart.quantity;","trigger":""},{"name":"cart_value","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"wunderkind.cart.value;","trigger":""},{"name":"prod_price","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.sup-hide').first().text().replace(/[^0-9.]/g, '');","trigger":""},{"name":"prod_name","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.product-name').text().trim();","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.add-to-cart:enabled').length > 0;","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":true,"default":"false","code":"jQuery('.error-message').text().toLowerCase().indexOf('thank you! you\\'ve been successfully signed up') > -1 || null;","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":"replen_in_progress","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"selected_sku","polling":"vars","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if(jQuery(\"span.product-id\").length > 0) {\n return jQuery(\"span.product-id\").first().text();\n }\n return \"\";\n})();","trigger":"pageload"},{"name":"coupon_auto_applied","polling":"none","persist":"visit","page_types":[],"testmode":true,"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":0,"spatm":1,"preinit_cjs":"\nvar audiences = {\n testMode: false,\n interceptEnabled: true,\n mirrorEnabled: true,\n arrayObserverEnabled: false,\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 cartAdd: function(){\n var atcInfo = bouncex.utils.getNestedProp('klParsedData.data'),\n price =bouncex.utils.getNestedProp('klParsedData.data.Price'),\n prodId = atcInfo && atcInfo['Product ID'] ? atcInfo['Product ID']: '',\n qty = document.querySelector(\"select[id='quantity-select']\") ? document.querySelector(\"select[id='quantity-select']\").value: '';\n \n if(prodId && price && qty){\n _shq.push(['onCartAdd', {\n Items: [{\n ProductId: prodId,\n UnitPrice: price,\n Quantity: qty\n }]\n }]);\n }\n }\n };\n },\n /* Mirror Events: For firing events when WKND events fire.*/\n useMirror: function useMirror() {\n if (!this.mirrorEnabled) {\n return;\n }\n bouncex.utils.shqMirrorEvent = {\n // defined functions run after designated shq_wknd_event to process event or source names\n reloadcampaigns: false,\n 'pageview': (function(){\n if(bouncex.website.pts === 'category'){\n var catInfo = bouncex.utils.getNestedProp('klParsedData.data'),\n catCode = catInfo && catInfo['Category ID'] ? catInfo['Category ID']: '';\n if(catCode){\n _shq.push([ 'onCategory',{\n 'catName': catCode,\n 'catId': catCode\n }]);\n }\n }\n if (bouncex.utils.getNestedProp('location.href').indexOf('search') > -1) {\n var term = bouncex.utils.url.getParam('q');\n if(term){\n _shq.push(['onSearch',{\n searchPhrase: term,\n }]);\n }\n }\n })()\n };\n },\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 \n this.useIntercept();\n this.useMirror();\n \n }\n};\n\naudiences.init();","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 Attachments mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"kldjbam303-1","enabled":1},"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":"","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":"307911068","ga4_measurement_id":"G-J2ZEBJ00MV","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); } 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(); }})();