Learn business growth with Google Analytics 4 Forums Google Analytics 4 Understanding GA4: Event Detection but Missing Revenue Integration

  • Understanding GA4: Event Detection but Missing Revenue Integration

    Posted by Noah on 20 August 2022 at 7:03 am

    I’m working on an Angular project and using angulartics2 for event tracking with google analytics. It seems to pick up and display all of my events just fine, but the total revenue keeps showing up as 0.00€. Anyone have any clue why this could be? It’s been showing like this for over a week now. I’ve attached the data that I’ve been sending (via the chrome GTM/GA Debug extension) and what I can see through google tag manager.

    Alexander replied 10 months, 2 weeks ago 3 Members · 2 Replies
  • 2 Replies
  • Harry

    28 August 2022 at 5:51 am

    It seems like your total revenue is showing up as 0.00€ because the actionField object isn’t present in your Google Analytics 4 script. The right format should look something like this:

    gtag(“event”, “purchase”, {
    transaction_id: “T_12345”,
    affiliation: “Google Merchandise Store”,
    value: 25.42,
    tax: 4.90,
    shipping: 5.99,
    currency: “USD”,
    coupon: “SUMMER_SALE”,
    items: [
    item_id: “SKU_12345”,
    item_name: “Stan and Friends Tee”,
    affiliation: “Google Merchandise Store”,
    coupon: “SUMMER_FUN”,
    currency: “USD”,
    discount: 2.22,
    index: 0,
    item_brand: “Google”,
    item_category: “Apparel”,
    item_category2: “Adult”,
    item_category3: “Shirts”,
    item_category4: “Crew”,
    item_category5: “Short sleeve”,
    item_list_id: “related_products”,
    item_list_name: “Related Products”,
    item_variant: “green”,
    location_id: “L_12345”,
    price: 9.99,
    quantity: 1


    This is the structure that Google Analytics 4 expects. In this case, make sure to cross-check your purchase code to see if it aligns with this example.

    For more detailed information, you may want to check out the ecommerce documentation here: https://developers.google.com/analytics/devguides/collection/ga4/reference/events#purchase.

  • Alexander

    2 May 2023 at 2:28 am

    There could be a few reasons why the total revenue keeps showing as 0.00€ in Google Analytics (GA) even though the events seem to be logged properly. One possible reason could be that the revenue data is not being sent correctly from Angulartics2 to GA. Ensure that you are setting the revenue value on the correct property and that the value is in the correct format.

    Another reason could be that there is an issue with how Google Analytics is set up to track ecommerce transactions. It’s important to understand that GA tracks ecommerce transactions separately from standard events. So, you will have to ensure that you have enabled ecommerce tracking in GA and that you are using a compatible ecommerce plugin on your website.

    Lastly, there may be an issue with the GTM/GA Debug extension that you are using. Try cross-checking the data that the debug extension is showing with the actual requests sent to GA. This can be done using the Network tab in the Chrome Developer Tools. If the requests contain the correct data, then the issue likely lies with how GA is set up. Otherwise, the issue could lie with your Angular application or Angulartics2.

Log in to reply.