if (window.location.pathname.includes('/order-confirmation')) { const id = document.querySelector('.ec-confirmation__number').textContent.trim(); const total = parseFloat((document.querySelector('.ec-confirmation__order-confirmation-total').textContent).replace('$', '')); const product = document.querySelector('.ec-cart-item__title').textContent.trim(); const quantityVal = document.querySelector('.ec-cart-item__count-inner').textContent.trim(); const quantity = parseInt(quantityVal.split(' ')[1]); console.log( id, total, product, quantity ); window.tracker( "addTrans", id, "N/A", total, 0, 0, "N/A", "N/A", "N/A", "USD", ); window.tracker( "addItem", id, "N/A", total, "N/A", total, quantity, "USD", ); window.tracker("trackTrans"); }
top of page

Hemp News All In One Place. 

bottom of page