• Hi!
    I am also throwing my hat into the ring and ask for help. Google Analytics eCommerce Tracking broke after the ~6th of October on three different sites. They all have the same setup.

    I suspect this has to do with a WP / WooCommerce update or Google Analytics / GTM changed how they want the data layer to look like. I am not aware that GTM4WP was updated.

    I have set up everything in WordPress, GTM and GA according to this guide:
    https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking

    To comply with GDPR, I used Trigger Groups, combining the triggers from the guide with the Borlabs Opt-In Triggers: https://borlabs.io/kb/google-tag-manager/#ch_3 However, I removed them to debug. They are not the issue.

    But I am having the problem that the gtm4wp.orderCompletedEEC GA3 event does not contain any ecom purchase data – and therefore no transaction is created in GA3.

    My trigger: https://imgur.com/VZadCQJ
    My tag: https://imgur.com/s7TAZCu
    Datalayer for gtm4wp.orderCompletedEEC event:

    {
      event: "gtm4wp.orderCompletedEEC",
      gtm: {uniqueEventId: 13},
      visitorLoginState: "logged-in",
      visitorType: "administrator",
      pagePostType: "page",
      pagePostType2: "single-page",
      pagePostAuthor: "adminTZN",
      customerTotalOrders: 1,
      customerTotalOrderValue: "0.00",
      customerFirstName: "Franz",
      customerLastName: "Sauerstein",
      customerBillingFirstName: "Franz",
      customerBillingLastName: "Sauerstein",
      customerBillingCompany: "",
      customerBillingAddress1: "Musterstraße 123",
      customerBillingAddress2: "",
      customerBillingCity: "Musterstadt",
      customerBillingPostcode: "12345",
      customerBillingCountry: "DE",
      customerBillingEmail: "support@gtm4wp.com",
      customerBillingPhone: "004917663089857",
      customerShippingFirstName: "Franz",
      customerShippingLastName: "Sauerstein",
      customerShippingCompany: "",
      customerShippingAddress1: "Musterstraße 123",
      customerShippingAddress2: "",
      customerShippingCity: "Musterstadt",
      customerShippingPostcode: "12345",
      customerShippingCountry: "DE",
      cartContent: {
        totals: {
          applied_coupons: [],
          discount_total: 0,
          subtotal: 0,
          total: 0
        },
        items: []
      },
      orderData: {
        attributes: {
          date: "2021-10-19T09:47:02+00:00",
          order_number: "47588",
          order_key: "wc_order_8xJ0AdUIBPI3L",
          payment_method: "",
          payment_method_title: "",
          shipping_method: "Versandkostenfrei",
          status: "processing",
          coupons: "testing100"
        },
        totals: {
          currency: "EUR",
          discount_total: "23.81",
          discount_tax: "1.6667",
          shipping_total: "0",
          shipping_tax: "0",
          cart_tax: "-0.000434",
          total: "0.00",
          total_tax: "0",
          total_discount: "23.81",
          subtotal: "23.8",
          tax_totals: {
            DE-MWST. DE REDUZIERTER-PREIS-1: {
              amount: -0.000434,
              id: 23088,
              rate_id: 34,
              is_compound: false,
              label: "MwSt. DE reduzierter-preis",
              formatted_amount: "<span class=\"woocommerce-Price-amount a" +
                                "mount\"><bdi>-0,00<span class=\"woocomme" +
                                "rce-Price-currencySymbol\">&euro;</span>" +
                                "</bdi></span>"
            }
          }
        },
        customer: {
          id: 7779,
          billing: {
            first_name: "Franz",
            last_name: "Sauerstein",
            company: "",
            address_1: "Musterstraße 123",
            address_2: "",
            city: "Musterstadt",
            state: "",
            postcode: "12345",
            country: "DE",
            email: "support@gtm4wp.com",
            phone: "004917663089857"
          },
          shipping: {
            first_name: "Franz",
            last_name: "Sauerstein",
            company: "",
            address_1: "Musterstraße 123",
            address_2: "",
            city: "Musterstadt",
            state: "",
            postcode: "12345",
            country: "DE"
          }
        },
        items: [
          {
            id: "2512",
            name: "Luxus-Nuss Bruchschokolade",
            sku: "2512",
            category: "Bruchschokolade",
            price: 0,
            stocklevel: 10,
            quantity: 1
          },
          {
            id: "2109",
            name: "Schokotafel Vollmilch Cappuccino",
            sku: "2109",
            category: "Vollmilchschokolade",
            price: 0,
            stocklevel: 0,
            quantity: 1
          },
          {
            id: "4050",
            name: "Schoko-Teddy groß -personalisierbar-",
            sku: "4050",
            category: "personalisierte Schokolade",
            price: 0,
            stocklevel: -1,
            quantity: 1
          }
        ]
      },
      ecommerce: {
        currencyCode: "EUR",
        purchase: {
          actionField: {
            id: "47588",
            affiliation: "",
            revenue: 0,
            tax: 0,
            shipping: 0,
            coupon: "testing100"
          },
          products: [
            {
              id: "2512",
              name: "Luxus-Nuss Bruchschokolade",
              sku: "2512",
              category: "Bruchschokolade",
              price: 0,
              stocklevel: 10,
              quantity: 1
            },
            {
              id: "2109",
              name: "Schokotafel Vollmilch Cappuccino",
              sku: "2109",
              category: "Vollmilchschokolade",
              price: 0,
              stocklevel: 0,
              quantity: 1
            },
            {
              id: "4050",
              name: "Schoko-Teddy groß -personalisierbar-",
              sku: "4050",
              category: "personalisierte Schokolade",
              price: 0,
              stocklevel: -1,
              quantity: 1
            }
          ]
        }
      }
    }

    The GA3 tag is firing upon the gtm4wp.orderCompletedEEC event: https://imgur.com/6XLkuf1
    I am seeing the events in Google Analytics, but not the revenue in eCommerce Tracking: https://imgur.com/0uEUiQE

    The page: https://bengelmann.com/
    GA debug link: https://tagassistant.google.com/#/?id=GTM-5LKBH46&url=https%3A%2F%2Fbengelmann.com%2F%3Fgtm_debug%3D1634628391828&source=TAG_MANAGER&gtm_auth=gUj-2FB3AFryFUDDQMFk8A&gtm_preview=env-46

    How to place an order without paying: Use email adress support@gtm4wp.com, PW %@j6t*sddNC5wbHPPyehhlgs and coupon code TESTING100.

    I currently run Google Analytics WooCommerce Tracking in parallel, because I need to track orders.

    Thank you for taking a look!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter Franz92

    (@franz92)

    I just went through this again: https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking

    I am at a loss. I just don’t get why it’s not working. 🙁

    Thread Starter Franz92

    (@franz92)

    Hi @duracelltomi,
    I hope you are well. Does your plugin update include any chnanges how it interacts with CookieBot / Borlabs? I’ve updated, but the issue seems to persist. 🙂

    Edit: Here’s the GTM Debug Preview for another domain, where the same behaviour is showing: https://tagassistant.google.com/#/?id=GTM-N7KGFRS&url=https%3A%2F%2Fwww.absperren24.de%2Fkasse%2Forder-received%2F17904%2F%3Fkey%3Dwc_order_xSsZebj7wBmFn&source=TAG_MANAGER&gtm_auth=y0T_kNaycOaRkIIMWSucWQ&gtm_preview=env-28 All tags are fired correctly, no errors… but then in Google Analytics the events show up, but not the revenue / transaction data in the eCommerce report. Any clues?

    Update: It’s actually there, just had a big time lag!

    Best,
    Franz

    • This reply was modified 2 years, 4 months ago by Franz92.
    • This reply was modified 2 years, 4 months ago by Franz92.
    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Franz,

    Sorry for skipping this thread, I see I haven’t answered to your first post.
    I am checking your site with your updated GTM preview link now…

    Plugin Author Thomas Geiger

    (@duracelltomi)

    First you need to know is that GTM4WP will omit ecommerce data on the order received page if you visit the page for the same order multiple times. This is there to prevent multiple tracking of the same order.

    You mentioned that you are using trigger groups to manage consent based tag firing. This is unfortunately a bad approach as the trigger group will wait to all triggers to fire at least once. If GTM4WP fires the order completed event but Borlabs fires its own event ms or seconds later, there can be additional GTM events in between which overwrite the ecommerce data layer.

    Borlabs has a GTM variable template that you can use to prevent tag firing within a single trigger:

    https://borlabs.io/kb/google-tag-manager/#ch_7
    https://tagmanager.google.com/gallery/#/owners/Borlabs-Ben/templates/Borlabs-Cookie-GTM-Variable-Template

    I placed a test order (2021 -50415) on your site and ecommerce transaction data was present in the data layer and also transmitted to GA in an event hit.

    Thread Starter Franz92

    (@franz92)

    Hi Thomas,
    thank you for your reply!

    I’ve now switched to that setup. It seems to work. Thank you!

    Best,
    Franz

    Thread Starter Franz92

    (@franz92)

    Hi Thomas,
    thank you for your help and the updates.

    I have since removed trigger groups and used borlabs tutorial to set up tracking for Google Analytics and Facebook correctly today. I am excited to see if that does the trick!

    I have also removed the parallel tracking via the Google Analytics for WooCommerce plugin, so now all tracking happens via GTM4WP.

    I’ll report back to tomorrow and let you know if it works. 🙂

    Thread Starter Franz92

    (@franz92)

    Hi @duracelltomi ,
    I am afraid my joy was too early. The integration picks up some of the transaction events, but only 35% of the total number of transactions. I am at a loss at what could be wrong. I’ve followed all the directions. Especially only *some* transactions making it through confuses me!

    This is the current debugging link: https://tagassistant.google.com/#/?id=GTM-5LKBH46&url=https%3A%2F%2Fbengelmann.com%2F%3Fgtm_debug%3D1642415240479&source=TAG_MANAGER&gtm_auth=gUj-2FB3AFryFUDDQMFk8A&gtm_preview=env-46

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    When I only accept necessary cookies on your site, GA is not tracking at all.
    Do you have stats about users consents and the percentage of users NOT giving full consent?

    Thread Starter Franz92

    (@franz92)

    Hi, 57% accept the marketing cookies. Less than I thought, but still 50% more than tracked transactions. 🤔

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Could you check the following report in Universal Analytics?
    Behavior – Site content – All pages

    Filter this report to URLs containing “order-received”. All URLs will include the order ID as well.

    Please check whether specific Order IDs are missing from this report as well or only from ecommerce reports?

    If they are missing from both reports, there is a more generic issue since not only the transaction was not tracked but the pageview itself as well.

    Thread Starter Franz92

    (@franz92)

    Gladly!

    – 57% accept the marketing cookies
    – 9 unique order-received pages
    – 3 transactions conunted

    The transaction IDs and order numbers don’t match up, though – we are passing order numbers instead of woocommerces’ own transaction IDs.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    So you had 9 transactions and only 3 is counted however all order received pageviews appear?

    Can I somehow place an order on your site without the need to use my bank card?

    Thread Starter Franz92

    (@franz92)

    Yes, Thomas, that’s right.

    How to place an order without paying:

    [redacted by moderator]

    Please use as a city TESTING GOOGLE ANALYTICS UDPATE, so that the ERP catches and deletes it.

    Thank you!

    Plugin Author Thomas Geiger

    (@duracelltomi)

    I placed a test order on your site.

    I can see the proper data layer elements:

    `event: “gtm4wp.orderCompletedEEC”,
    ecommerce: {
    currencyCode: “EUR”,
    purchase: {
    actionField: {
    id: “48593”,
    affiliation: “”,
    revenue: 0,
    tax: 0,
    shipping: 0,
    coupon: “testing100”
    },
    products: [
    {
    id: “2217”,
    name: “Waldfrüchte Zartbitter 68%”,
    sku: “2217”,
    category: “Zartbitterschokolade”,
    price: 0,
    stocklevel: -1,
    quantity: 1
    }
    ]
    }
    }`

    However, I do not see any GA event firing on this GTM event.

    Is the previously posted GTM preview link still valid or you have published a new container version since then?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @franz92

    Please don’t offer to send or post logon credentials on these forums:

    https://wordpress.org/support/guidelines#the-bad-stuff

    You can contact the author on their own site and, once there, the discussion is between the two of you. However, it is not OK to enter or send site credentials on these forums. We don’t want to encourage others (who are less reputable) to do similar things. It’s a fine line, but one that we need to enforce. Thanks for your cooperation.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Google Analytics 3 Revenue Tracking broke’ is closed to new replies.