Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add SKU in the google analytics traker

Michal Ociepka87800d49d167
diff --git a/order/templates/order/success.html b/order/templates/order/success.html
index 19f45e386a..275e8382c8 100644
--- a/order/templates/order/success.html
+++ b/order/templates/order/success.html
@@ -26,7 +26,7 @@
__ga('ecommerce:addItem', {
'id': '{{ item.id }}',
'name': '{{ item }}',
- 'sku': '{{ item.id }}',
+ 'sku': '{{ item.sku }}',
'category': '{{ item.product.category }}',
'price': '{{ item.unit_price_gross }}',
'quantity': '{{ item.quantity }}'