Search code examples
e-commercegoogle-analytics-4

GA4: total revenue is 0 and Monetization screen not showing data


I'm trying to integrate ecommerce tracking to a website. The problem is the events are captured and I'm sending all the data. This is the data I'm sending

{
"event": "purchase",
"currency": "EUR",
"value": 21.85,
"items": [
    {
        "item_id": "3cd937-debc-416d-955f-8ccc84a751",
        "item_name": "anuy-namer",
        "affiliation": "",
        "coupon": "",
        "currency": "EUR",
        "discount": 0,
        "index": 1,
        "item_brand": "Fontastic",
        "item_category": "THeadset / Lautsprecher",
        "item_category2": "Unterhaltungk - Körer",
        "item_category3": "",
        "item_category4": "",
        "item_category5": "",
        "item_list_id": "31baa491-4c6f-8671-c808f0cb2100",
        "item_list_name": "Fontastic BT In-Ear Headset S1 blau Bluetooth-Kopfhörer",
        "item_variant": "Mit Begleiterliche Musikfans.",
        "location_id": "",
        "price": 14.95,
        "quantity": 1
    }
],
"transaction_id": "9826314a-46af-4304-a057-dc77f4a799b0",
"affiliation": "446c6345-9193-4841-9f4a-e06e8cf7220e",
"tax": "3.4917",
"shipping": "6.9000",
"coupon": "",
"gtm.uniqueEventId": 12

}

tbh I'm not sure if the data is wrong but the monetization reports only show number of purchasers and not anything else. It's all zeros. in the conversion screen the total revenue is not calculated.


Solution

  • It turned out that the setup wasn't correct. I needed to add custom trigger to the events so It can be captured. I also found some problem with the structure of the object, (currency,value , items) needed to be added inside ecommerce object.