Wrong Product price
-
There is an issue with the
purchaseevent:
theitems.pricevalue is incorrect because the integration is sending the line subtotal instead of the unit price. What’s happeningIn the purchase dataLayer, two different item objects are generated:
orderData.items→ correct data (unit price, quantity, etc.)eventModel.items→ incorrect data (replaces the unit price with the total line amount)
Example:
orderData.items = [ { item_id: 22859, item_name: "Mesa auxiliar Mini", price: 26.01, quantity: 2 } ]; eventModel.items = [ { id: 22859, name: "Mesa auxiliar Mini - Blanco", price: "52.01", quantity: 2 } ];GA4 ends up using the incorrect object (
eventModel.items), so the item price is recorded as 52.01€ instead of 26.01€, which inflates item revenue. Impact- GA4 shows wrong product prices
- Item revenue is multiplied incorrectly
- Ecommerce reports become inaccurate
What I need
ix this so:
eventModel.items.priceuses the unit price, or- GA4 uses
orderData.itemsinstead ofeventModel.items, or - The plugin stops overwriting item data with the line subtotal.
Thanks!
Images of error:
The topic ‘Wrong Product price’ is closed to new replies.