Skip to content

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

Use SKU from order item not from product

Michał Ociepka135b6704c2a7
diff --git a/saleor/core/analytics.py b/saleor/core/analytics.py
index 1fe9cc613f..291737fd06 100644
--- a/saleor/core/analytics.py
+++ b/saleor/core/analytics.py
@@ -42,7 +42,7 @@ def report_order(client_id, order):
items = [ga.Item(oi.product_name,
oi.get_price_per_item(),
quantity=oi.quantity,
- item_id=oi.product.sku)
+ item_id=oi.product_sku)
for oi in group]
trans = ga.Transaction('%s-%s' % (order.id, group.id), items,
revenue=group.get_total(), shipping=group.price)