Hi,
I found out that the purchase event was not firing due to custom payment gateway.
So I tried to test the purchase event with another temporary payment method. I used WC built-in Cash on delivery method.
I don’t know if it is the payment method Cash on delivery, or if it is something else, but in the step between Checkout page and Thank you page, the transaction value will be set to 0.
Do you know what causes this? Does the plugin not work with Cash on delivery? Unfortunately I don’t have a possibility to test another payment gateway.
Here is the Data Layer on Checkout page (item: null might be because it is a virtual product):
pagePostType: “page”,
pageType: “checkout”,
postTitle: “Checkout”,
userLoggedIn: false,
ecommerce: {currency: “EUR”, value: 49, items: null},
pages: {
cart: “/de-cart”,
checkout: “/checkout”,
orderReceived: “/checkout/order-received”,
myAccount: “/my-account”
And here is the Data Layer on Thank you page:
pagePostType: “page”,
pageType: “checkout”,
postTitle: “Thank you”,
userLoggedIn: true,
user_id: 804,
ecommerce: {currency: “EUR”, value: 0, items: null},
pages: {
cart: “/de-cart”,
checkout: “/checkout”,
orderReceived: “/checkout/order-received”,
myAccount: “/my-account”
As you can see, the value gets lost after payment, so that the value won’t be reflected on GA4 as well.