• Hi,

    Please could you assist me with the below?

    There are two payment gateways active on my client’s website.

    All “Payment gateway 1” transactions are being captured by my Google Analytics tracking.

    No “Payment gateway 2” transactions are being captured by my Google Analytics tracking.

    Both payment gateways redirect to the “order-received” page but only the “Payment gateway 1” transactions are being captured by Google Analytics.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Curious to know how you get on.
    I’m currently having a problem where about 50% of my payment orders are being recorded. I’m on a .co.il domain. HotJar.com is recording all sales and I can see the user go to every page.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi @nabeel13,

    Does the plugin of Payment gateway 2 do any change in the checkout process? Altering the order received page, adding any in between pages?

    Thread Starter nabeel13

    (@nabeel13)

    Hi @duracelltomi

    Thanks for for the questions.

    Does the plugin of Payment gateway 2 do any change in the checkout process?” – Yes it does. Below are examples of checkout flows from both payment gateways:

    Checkout flow of “Payment gateway 1”:
    /checkout/
    /checkout/order-pay/123456/?key=wc_order_abc123
    /checkout/order-received/123456/?key=wc_order_abc123

    Checkout flow of “Payment gateway 2”:
    /checkout/
    /checkout/order-received/234567/?key=wc_order_abc234&status=confirmed&token=1234a-456b-789c-123d-123456abcd&orderid=12345a-12ab-1234-abcd-1234567abcd

    To answer your other questions “Altering the order received page” – I don’t know, I’m liaising with the developer to activate the Sandbox section so that I can check the /order-received page and check what is being pushed to the data layer. I will confirm as soon as I have completed this.

    adding any in between pages?” – No pages are added in between, only the “/order-pay” page has been removed as described above.

    Thread Starter nabeel13

    (@nabeel13)

    Hi @duracelltomi ,

    I’ve created a test website for “payment gateway 2”.

    I’ve completed a transaction. So could it be maybe that the data is being sent to Google Analytics before anything is being pushed to the data layer?

    Here is the tag summary: https://ibb.co/C2ZPcn9

    Here is what is available from the Data Layer:

    {
      event: "purchase",
      gtm: {uniqueEventId: 6, start: 1642689073855},
      pagePostType: "page",
      pagePostType2: "single-page",
      pagePostAuthor: "nabeel",
      new_customer: false,
      ecommerce: {
        currencyCode: "ZAR",
        purchase: {
          actionField: {
            id: "23",
            affiliation: "",
            revenue: 50,
            tax: 0,
            shipping: 0,
            coupon: ""
          },
          products: [
            {
              id: 15,
              name: "Sample Product",
              sku: "001",
              category: "Sample Products",
              price: 50,
              stocklevel: 999,
              variant: "",
              quantity: 1
            }
          ]
        },
        currency: "ZAR",
        items: [
          {
            item_id: 15,
            item_name: "Sample Product",
            item_brand: "",
            price: 50,
            item_category: "Sample Products",
            quantity: 1,
            google_business_vertical: "retail",
            id: "15"
          }
        ],
        transaction_id: "23",
        affiliation: "",
        value: 50,
        tax: 0,
        shipping: 0,
        coupon: ""
      }
    }
    Thread Starter nabeel13

    (@nabeel13)

    Hi @duracelltomi ,

    Just an update:

    On my client’s website:
    “Payment gateway 1” Google Analytics transactions captured for December 2021: All
    Payment gateway 2 Google Analytics transactions for December 2021: Zero

    On my test website:
    “Payment gateway 2” Google Analytics transactions captured for today: All

    Please could you advise as to why the pageview is being captured but not the transaction for “Payment gateway 2” on my client’s website, but the pageview and the transaction is being captured for “Payment gateway 2” on my test website?

    Any advice or speculation would be greatly appreciated.

    Thread Starter nabeel13

    (@nabeel13)

    Hi @duracelltomi ,

    I have found the problem.

    For “Payment Gateway 2” the following events are not loading on the “/order-complete” page:

    “purchase”
    “gtm4wp.orderCompletedEEC”.

    For “Payment Gateway 1” those two events are loading.

    I tested with essentially no plugins active except for Woocommerce, the payment gateway, and GTM4WP.

    What is the solution?

    Just tagging myself as I have the same issue

    Thread Starter nabeel13

    (@nabeel13)

    Hi @duracelltomi ,

    Any suggestions as to why the below events are not loading?
    “purchase”
    “gtm4wp.orderCompletedEEC”.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Missing Transactions’ is closed to new replies.