• Resolved andersbolander

    (@andersbolander)


    Hi,

    I am using Google Tag Manager for WordPress to create the dataLayer and event for GA Enhanced Ecommerce tracking.

    It was working fine until a little while back, Nov 11th, when the transaction part of the EE tracking broke. The “thankyou” page no longer has an EE dataLayer and there is no event. Apparently the GTM plugin no longer recognises the thankyou page, so maybe you can advise on possible causes and remedies.

    BR
    Anders:)

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

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Contributor Krokedil

    (@krokedil)

    I’m saying that there is a problem when using the latest version of GTM4WP. This problem results in the customer not being redirected to the order received page correctly when purchase is finalized. Instead the checkout page is reloaded and the customer sees the Klarna Checkout “thank you for your order” message in the KCO iframe. At this stage the cart is not emptied and the tracking isn’t working correctly.

    The reason that this is happening is because of a change event that is triggered (in GTM4WP) when the WooCommerce checkout form is submitted, resulting in this ajax request not returning a success function. Since there is no success function returned, the customer is not redirected to the order received page.

    @sirrahikkala Are you saying that you have the same behavior in your store, without GTM4WP?

    Plugin Contributor Krokedil

    (@krokedil)

    We will get back to you in the support ticket we have.

    Since @andersbolander who started this thread is using GTM4WP and we know that this plugin together with KCO is generating a problem we will also try to solve that asap.

    Thread Starter andersbolander

    (@andersbolander)

    Thanks for taking this problem seriously. I am following the thread and can appreciate the complexity. I really do hope that it will be solved soon.

    Plugin Author Michael Bengtsson

    (@michaelbengtsson)

    @duracelltomi Im not entirely sure what we can do. The confirmation page flow should be similar to a customer loading the checkout page with a standard checkout solution, and filling in the form and hitting submit without changing the payment method. We set the payment method in the sessions and it should because of that already be set on the page. And stopping the process, and showing the form on this page shows that the radio button is checked, and everything looks alright from what i can tell. If you have a way to solve this, i think that would be the best way to go forward.

    Edit: I believe i might have found something we can do. I will look into this tomorrow and test and get back to you then

    Plugin Contributor Krokedil

    (@krokedil)

    Hi all,

    We now have a solution for this issue. We have released a new version (v1.11.6) that should take care of the problem and make it possible to use the Klarna Checkout plugin together with GTM4WP again.

    Detailed information about the problem & the fix
    November 11, version 1.11 of Google Tag Manager for WordPress was released. In this version jQuery( 'input[name=payment_method]:checked' ).trigger( 'change' ); was added, and triggered when the WooCommerce checkout form was submitted – if no payment method previously was selected.

    For the KCO plugin this event was triggered when the confirmation page was rendered (the regular WooCommerce checkout page, but after the KCO purchase was finalized and the WooCommerce checkout form was submitted).

    In the KCO plugin we listen to this change event since it might be needed to switch checkout template file when switching to/from KCO payment method. However, this listener is not needed on the KCO confirmation page. We have removed this listener in version 1.11.6 of the KCO plugin and it should now be compatible with GTM4WP.

    Thanks @krokedil for your support and help to resolve this issue.
    I will also maintain my Klarna test site and when a new plugin version is released in the future, I will do my best to test it with GTM4WP as soon as possible.

    Thread Starter andersbolander

    (@andersbolander)

    Thanks for your effort:-)

    I updated the Klarna plug in and all is fine. Transactions land in GA as they should.

    Hi!

    Looks like I still have this issue. I have reinstalled the GTM4WP but still no transactions showing and cart is not emptied.

    Could I please get some help here?

    Here is the site:

    https://banquet.se

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Enhanced Ecommerce dataLayer and event’ is closed to new replies.