Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Can you spot errors in these two ecommerce analytics scripts?

Can you spot errors in these two ecommerce analytics scripts?

efthalia
New Member
11 0 0

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>

Replies 0 (0)