• There is an issue with the purchase event:
    the items.price value is incorrect because the integration is sending the line subtotal instead of the unit price. What’s happening

    In the purchase dataLayer, two different item objects are generated:

    1. orderData.items → correct data (unit price, quantity, etc.)
    2. 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.price uses the unit price, or
    • GA4 uses orderData.items instead of eventModel.items, or
    • The plugin stops overwriting item data with the line subtotal.

    Thanks!

    Images of error:

    https://ibb.co/DHcPhRSq
    https://ibb.co/KxpmggsH

The topic ‘Wrong Product price’ is closed to new replies.