During this critical time, the health of our employees and customers is our top priority.
As an Essential Business, some of locations are open and we are here to safely meet your equipment and media needs.
We are following safety Best Practices in these stores by requiring face masks and social distancing. Please click here for more information on store statuses.
Close
<% console.log(cart) %>
var dakisId = '<%= cart.id %>'; var dakisSubTotal = '<%= cart.subTotal %>'; var dakisTaxes = '<%= cart.totalTaxes %>'; var dakisTotal = '<%= cart.total %>'; var dakisShipping = '<%= cart.totalShipping %>'; var dakisCurrency = '<%= cart.currency.code %>'; ga('create', 'UA-10282335-1', 'auto'); ga('require', 'ecommerce'); ga('ecommerce:addTransaction', { 'id': dakisId, 'revenue': dakisSubTotal, 'shipping': dakisShipping, 'tax': dakisTaxes }); <% for (var i = 0; i < cart.items.length; i++ ) { ga('ecommerce:addItem', { 'id': cart.items[i].id, 'name': cart.items[i].text, 'price': cart.items[i].price, 'quantity': cart.items[i].quantity }); } %> ga('ecommerce:send');
var dakisMerchantId = '<%= cart.id %>'; var dakisId = '<%= cart.id %>'; var dakisEmail = '<%= cart.customer.email %>'; var dakisCountry = '<%= cart.addresses.billing.country_iso %>'; if(dakisCountry === "") { dakisCountry= "US" }; var datePurchased = new Date(); var deliveryDate = new Date(); deliveryDate.setDate(datePurchased.getDate() + 5); var yyyy = deliveryDate.getFullYear(); var mm = deliveryDate.getMonth() + 1; var dd = deliveryDate.getDate(); if(dd<10) { dd='0'+dd }; if(mm<10) { mm='0'+mm }; var delivery = yyyy+'-'+mm+'-'+dd; window.renderOptIn = function() { console.log({ "estimated_delivery_date": delivery}), window.gapi.load('surveyoptin', function() { window.gapi.surveyoptin.render( { // REQUIRED FIELDS "merchant_id": 169137285, "order_id": dakisId, "email": dakisEmail, "delivery_country": dakisCountry, "estimated_delivery_date": delivery }); }); } var script = document.createElement('script'); script.async = true; script.defer = true; script.setAttribute('src', 'https://apis.google.com/js/platform.js?onload=renderOptIn'); document.head.appendChild(script);
var dakisId = '<%= cart.id %>'; var dakisSubTotal = '<%= cart.subTotal %>'; var dakisTaxes = '<%= cart.totalTaxes %>'; var dakisTotal = '<%= cart.total %>'; var dakisShipping = '<%= cart.totalShipping %>'; var dakisCurrency = '<%= cart.currency.code %>'; var dakisItems = JSON.parse('<%= JSON.stringify(cart.items) %>'); var items = []; for (var i = 0; i < dakisItems.length; i++ ) { items.push({ item_name: dakisItems[i].text, item_id: dakisItems[i].id, price: dakisItems[i].price, quantity: dakisItems[i].quantity }) } dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "purchase", ecommerce: { transaction_id: dakisId, affiliation: "Online Store", value: dakisSubTotal, tax: dakisTaxes, shipping: dakisShipping, currency: dakisCurrency, items: items } });