-->
"},"id":"4241b889-c2e9-4bf2-9b8f-4970e08902c5","definitionId":"html","type":"content"}],"width":""}]}],"source":{"id":"148191c4-0b1a-482a-a574-243bea1afca8","listFQN":"pages@mozu","path":"returnlabels","includeInactiveDocument":true,"publishState":"draft"}}],"hidden":false,"redirect_url":"","meta_description":""},"updateDate":"2019-09-05T14:51:35.991Z"}; var pageContext = pageContext; var lineItemData = function(lineItem, orderNumber) { var row = { productId: lineItem.product.productCode, quantity: lineItem.quantity, unitPrice: lineItem.product.price.price, currency: "" }; if(lineItem.product.variationProductCode) { row.sku = lineItem.product.variationProductCode; } if(orderNumber) { row.purchaseId = orderNumber; } return row; } window.monetateQ.push(['mui', 'f1822b4be8754d4891ac47688173e466']); switch(pageType) { case 'product': var productModel = pageModel; window.monetateQ.push(['setPageType', 'product']); window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); console.log('productModel', productModel); window.monetateQ.push([ "addProductDetails", [{ productId: productModel.productCode, sku: productModel.variationProductCode }] ]); break; case 'cart': var cartModel = pageModel; var cartItemRows = cartModel.items.map(function(row) { return lineItemData(row); }); window.monetateQ.push(['setPageType', 'cart']); window.monetateQ.push([ "addCartRows", cartItemRows ]); window.monetateQ.push(['addProducts', 'cart']); window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); break; case 'checkout': window.monetateQ.push(['setPageType', 'checkout']); window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); break; case 'confirmation': window.monetateQ.push(['setPageType', 'purchase']); window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); var orderModel = pageModel; var orderRows = orderModel.items.map(function(row){ return lineItemData(row, orderModel.orderNumber); }); window.monetateQ.push([ "addPurchaseRows", orderRows ]); break; case 'search': window.monetateQ.push(['setPageType', 'search']); window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); break; case 'category': window.monetateQ.push(['setPageType', 'category']); if(pageContext){ window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); } break; default: if ("returnlabels" === 'home') { window.monetateQ.push(['setPageType', 'home']); window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); }else{ if(pageType === 'web_page' ){ window.monetateQ.push(['setPageType', pageModel.name]); window.monetateQ.push(['customerId', 'f1822b4be8754d4891ac47688173e466']); } } break; } var breadcrumbObjects = [{"id":"page^^pages@mozu^^148191c4-0b1a-482a-a574-243bea1afca8","index":-1,"name":"returnlabels","nodeType":"page","originalCollection":"pages@mozu","originalDocumentListName":"pages@mozu","originalId":"148191c4-0b1a-482a-a574-243bea1afca8","url":"/returnlabels"}]; var breadcrumbs = breadcrumbObjects.map(function(crumb) { return crumb.name; }); if(breadcrumbs && breadcrumbs.length) { window.monetateQ.push([ 'addBreadcrumbs', breadcrumbs ]); } //window.monetateQ.push(['trackData']);