404 Not Found


404 Not Found – Case-Mate {} }); // ensure Flow data is available to send to datalayer const conditionallyCallCallback = (callback) => { if (window.FlowStateData && window.FlowStateData.country && window.FlowStateData.cart) { callback(); } else { const interval = setInterval(() => { if (window.FlowStateData && window.FlowStateData.country && window.FlowStateData.cart) { callback(); clearInterval(interval); } }, 200); } }; const flowCheckoutSetup = () => { const body = document.querySelector(‘body’); body.classList.add(‘flow-checkout’); const goBackLink = document.querySelector(‘.application__header a’); goBackLink.innerHTML = `casemate logo linking to homepage`; }; const pushToDatalayer = (eventName, orderData = null) => { const dataLayerData = { ‘event’: eventName, ‘flowCart’: window.FlowStateData.cart, ‘flowCurrency’: window.FlowStateData.country.default_currency, }; if (orderData) dataLayerData[‘flowOrderData’] = orderData; dataLayer.push(dataLayerData); }; Flow.set(‘on’, ‘ready’, () => { Flow.on(‘pageview.checkout_step_1’, function () { flowCheckoutSetup(); const callback = () => pushToDatalayer(‘Flow Checkout Step 1’); conditionallyCallCallback(callback); }); Flow.on(‘pageview.checkout_step_2’, function () { flowCheckoutSetup(); const callback = () => pushToDatalayer(‘Flow Checkout Step 2’); conditionallyCallCallback(callback); }); Flow.on(‘pageview.checkout_step_3’, function () { flowCheckoutSetup(); const callback = () => pushToDatalayer(‘Flow Checkout Step 3’); conditionallyCallCallback(callback); }); Flow.on(‘pageview.checkout_thank_you’, function ({order}) { const callback = () => pushToDatalayer(‘Flow Checkout Complete’); conditionallyCallCallback(callback); }); }) ]]> arrow-right Created with Sketch. 62000451-E5A8-4D53-9C9C-99CA334E157B@2x 80DBCA04-D5D2-4C2F-AA21-C079CB73A0A8 8A92C1BA-C3AD-48AC-8034-6167396F66BB AA28C8C4-A7AD-48CF-9C3A-B51596B64521@2x 0137F936-0B51-4FCA-A934-AC24EEE04905@2x 1 Path Created with Sketch. Path Created with Sketch. 69CD96FC-C00B-4DFB-8DE3-93926786ADDE F3329BBC-F37C-4451-877B-9653180AF287@3x Created with sketchtool. 00350F22-F946-4812-AF3A-98ACFBBCFACD ACC667C6-3890-4843-BC1E-0F965AC8B633 84063AAD-9878-4919-A386-D7CF201CF7E4@3x Created with sketchtool. 255E1533-21D1-4D4C-89E3-BCB8A8C12DB2@2x 98DF2797-38FF-4354-8A6A-3BE55B364A5F@2x 8F90AD5C-F596-4A65-B71C-D5C882EEA494@3x Created with sketchtool. user Created with Sketch. Skip to main content { const emailForm = document.getElementById(’email_signup’); if (window.KlaviyoSubscribe && emailForm) { KlaviyoSubscribe.attachToForms(‘#email_signup’, { hide_form_on_success: true, extra_properties: { $source: ‘$embed’, $method_type: “Klaviyo Form”, $method_id: ’embed’ } }); clearInterval(interval); } }, 1000); ]]> -1 || url.indexOf(‘order’) > -1) { __bva__products = []; var transactionData = { ‘transactionNumber’ : null, ‘transactionId’ : null, ‘transactionAffiliation’ : “Case-Mate”, ‘transactionCurrency’ : “USD”, ‘transactionTotal’ : Number(), ‘transactionTax’ : Number(), ‘transactionShipping’ : Number(), ‘transactionSubtotal’ : Number(), ‘products’: __bva__products, }; if (url.indexOf(‘thank_you’) > -1) { baseEvent = transactionData; baseEvent.pageType = ‘Transaction’; baseEvent.event = ‘Transaction’; } if (url.indexOf(‘order’) > -1) { baseEvent = transactionData; baseEvent.pageType = ‘Order Status’; baseEvent.event = ‘Order Status’; } } /* DATALAYER: Checkout */ /* DATALAYER: Template-Specific Events */ dataLayer.push(logState); dataLayer.push(baseEvent); /* DATALAYER: All Pages */ dataLayer.push({ ‘event’: ‘DataLayer Loaded’ }); }()); ]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *