Personalized checkout and custom promotions with Shopify Scripts
Can you please tell me if you see a wrnong at these two scripts?
<script>
skroutz_analytics('ecommerce', 'addOrder', {
order_id: {{order.order_number}}, // Order ID. Required.
revenue: {{order.total_price}}, // Grand Total. Includes Tax and Shipping. Does not include payment costs.
shipping: {{order.shipping_price}}, // Total Shipping Cost. Does not include payment costs.
tax: {{order.tax_price}} // Total Tax.
});
</script>
<script>
skroutz_analytics('ecommerce', 'addItem', {
order_id: {{order.order_number}}, // Order ID. Required.
product_id: {{product.id}}, // Product ID. Required.
name: {{line_item.title}}, // Product Name. Required.
price: {{line_item.original_price}}, // Price per Unit. Required.
quantity: {{line.item_quantity}} // Quantity of Items. Required.
});
</script>
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025